From 200cbc08dd52b4853612d7e726724a554face650 Mon Sep 17 00:00:00 2001 From: Alex Beregszaszi Date: Sun, 23 Oct 2016 13:51:41 +0100 Subject: [PATCH] LLL: add bytecodesize keyword to push resulting bytecode size --- liblll/CodeFragment.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/liblll/CodeFragment.cpp b/liblll/CodeFragment.cpp index bc53d7777..39b6376c7 100644 --- a/liblll/CodeFragment.cpp +++ b/liblll/CodeFragment.cpp @@ -581,6 +581,10 @@ void CodeFragment::constructOperation(sp::utree const& _t, CompilerState& _s) { m_asm.appendJump(m_asm.errorTag()); } + else if (us == "BYTECODESIZE") + { + m_asm.appendProgramSize(); + } else if (us.find_first_of("1234567890") != 0 && us.find_first_not_of("QWERTYUIOPASDFGHJKLZXCVBNM1234567890_-") == string::npos) m_asm.append((u256)varAddress(s)); else