Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optimize Baseline interpreter by using padded code #315

Merged
merged 4 commits into from
Jun 4, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
baseline: Use "infinite" interpreter loop
Guaranteed to terminate because padded code ends with STOP.
  • Loading branch information
chfast committed Jun 4, 2021
commit 5d7cade8bb486685e9d6197272ccdbd7ff2ea455
2 changes: 1 addition & 1 deletion lib/evmone/baseline.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,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 padded code ends with STOP.
{
if constexpr (TracingEnabled)
{
Expand Down