File tree Expand file tree Collapse file tree 1 file changed +1
-9
lines changed Expand file tree Collapse file tree 1 file changed +1
-9
lines changed Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments