Skip to content

Commit

Permalink
baseline: Use "infinite" interpreter loop
Browse files Browse the repository at this point in the history
Guaranteed to terminate because code must end with STOP.
  • Loading branch information
chfast committed Jun 2, 2021
1 parent 6d98168 commit 98debf9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/evmone/baseline.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ evmc_result execute(const VM& vm, ExecutionState& state, const CodeAnalysis& ana
const auto* const code = state.code.data();
const auto* const code_end = code + state.code.size();
auto pc = code;
while (pc != code_end)
while (true) // Guaranteed to terminate because code must end with STOP.
{
if constexpr (TracingEnabled)
{
Expand Down

0 comments on commit 98debf9

Please sign in to comment.