From 9b09e484dc9f0990aea9742248fbe8012d8b30b3 Mon Sep 17 00:00:00 2001 From: Andrei Maiboroda Date: Mon, 23 Jul 2018 12:15:08 +0200 Subject: [PATCH] WIP trying to understand what's happening --- libevm/LegacyVM.cpp | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/libevm/LegacyVM.cpp b/libevm/LegacyVM.cpp index cf1934799bd..fada770c3cc 100644 --- a/libevm/LegacyVM.cpp +++ b/libevm/LegacyVM.cpp @@ -197,14 +197,20 @@ owning_bytes_ref LegacyVM::exec(u256& _io_gas, ExtVMFace& _ext, OnOpFunc const& // void LegacyVM::interpretCases() { - INIT_CASES - DO_CASES - { - // + //INIT_CASES + //DO_CASES + for (;;) + { + fetchInstruction(); + switch (m_OP) + { + { + // // Call-related instructions // - CASE(CREATE2) + // CASE(CREATE2) + case Instruction::CREATE2: { ON_OP(); if (!m_schedule->haveCreate2)