aboutsummaryrefslogtreecommitdiffstats
path: root/liblll/CodeFragment.cpp
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2016-10-23 20:51:41 +0800
committerAlex Beregszaszi <alex@rtfs.hu>2016-11-02 06:19:06 +0800
commit200cbc08dd52b4853612d7e726724a554face650 (patch)
tree2ebf39e8b9e4f9878b590675eb7c98a09c203092 /liblll/CodeFragment.cpp
parent1a2c150e3b2f98ef44834aca281692734b74c0db (diff)
downloaddexon-solidity-200cbc08dd52b4853612d7e726724a554face650.tar.gz
dexon-solidity-200cbc08dd52b4853612d7e726724a554face650.tar.zst
dexon-solidity-200cbc08dd52b4853612d7e726724a554face650.zip
LLL: add bytecodesize keyword to push resulting bytecode size
Diffstat (limited to 'liblll/CodeFragment.cpp')
-rw-r--r--liblll/CodeFragment.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/liblll/CodeFragment.cpp b/liblll/CodeFragment.cpp
index bc53d777..39b6376c 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