Initial still broken version.

This commit is contained in:
Daniel Kirchner
2023-01-05 20:05:11 +01:00
parent 9453edcbc0
commit ed74f3d2a0
39 changed files with 398 additions and 66 deletions
@@ -441,6 +441,9 @@ u256 EVMInstructionInterpreter::eval(
case Instruction::SWAP14:
case Instruction::SWAP15:
case Instruction::SWAP16:
case Instruction::CALLF:
case Instruction::RETF:
case Instruction::JUMPF:
{
yulAssert(false, "");
return 0;
+2 -1
View File
@@ -222,7 +222,7 @@ public:
{
Object obj;
obj.code = m_ast;
StackCompressor::run(m_dialect, obj, true, 16);
StackCompressor::run(m_dialect, nullopt /* TODO */, obj, true, 16);
break;
}
default:
@@ -251,6 +251,7 @@ private:
NameDispenser m_nameDispenser{m_dialect, m_reservedIdentifiers};
OptimiserStepContext m_context{
m_dialect,
nullopt, // TODO
m_nameDispenser,
m_reservedIdentifiers,
solidity::frontend::OptimiserSettings::standard().expectedExecutionsPerDeployment