aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorchriseth <chris@ethereum.org>2016-11-04 02:49:12 +0800
committerGitHub <noreply@github.com>2016-11-04 02:49:12 +0800
commit5d19727c2fc6956e68fc266874fa2a02d627c4f4 (patch)
treeca7118fc5af66f2efc856d0b8b5092912372ca9b
parent90a4acc3a52a3bff22dbb713c808fe9c27eae550 (diff)
parent200cbc08dd52b4853612d7e726724a554face650 (diff)
downloaddexon-solidity-5d19727c2fc6956e68fc266874fa2a02d627c4f4.tar.gz
dexon-solidity-5d19727c2fc6956e68fc266874fa2a02d627c4f4.tar.zst
dexon-solidity-5d19727c2fc6956e68fc266874fa2a02d627c4f4.zip
Merge pull request #1315 from ethereum/lll-constructor
LLL: add bytecodesize keyword to push resulting bytecode size
-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