Skip to content

Commit c1fabc6

Browse files
committed
baseline: disable jumpdest analysis
1 parent a66479f commit c1fabc6

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

lib/evmone/baseline.cpp

+1-9
Original file line numberDiff line numberDiff line change
@@ -33,15 +33,7 @@ CodeAnalysis::JumpdestMap analyze_jumpdests(bytes_view code)
3333
// static_cast<int8_t>(op) <= OP_PUSH32 is always true and can be skipped.
3434
static_assert(OP_PUSH32 == std::numeric_limits<int8_t>::max());
3535

36-
CodeAnalysis::JumpdestMap map(code.size()); // Allocate and init bitmap with zeros.
37-
for (size_t i = 0; i < code.size(); ++i)
38-
{
39-
const auto op = code[i];
40-
if (static_cast<int8_t>(op) >= OP_PUSH1) // If any PUSH opcode (see explanation above).
41-
i += op - size_t{OP_PUSH1 - 1}; // Skip PUSH data.
42-
else if (INTX_UNLIKELY(op == OP_JUMPDEST))
43-
map[i] = true;
44-
}
36+
CodeAnalysis::JumpdestMap map(code.size(), true); // Allocate and init bitmap with ones.
4537

4638
return map;
4739
}

0 commit comments

Comments
 (0)