Merge pull request #1315 from ethereum/lll-constructor

LLL: add bytecodesize keyword to push resulting bytecode size
This commit is contained in:
chriseth 2016-11-03 19:49:12 +01:00 committed by GitHub
commit 5d19727c2f

View File

@ -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