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

Export and benchmark build_jumpdest_map() #305

Merged
merged 2 commits into from
Apr 22, 2021

Conversation

chfast
Copy link
Member

@chfast chfast commented Apr 22, 2021

No description provided.

@chfast chfast requested a review from yperbasis April 22, 2021 09:32
@chfast chfast merged commit 43e8ed5 into master Apr 22, 2021
@chfast chfast deleted the baseline_export_build_jumpdest_map branch April 22, 2021 13:56
@@ -23,11 +19,13 @@ JumpdestMap build_jumpdest_map(const uint8_t* code, size_t code_size)
if (op == OP_JUMPDEST)
m[i] = true;
else if (op >= OP_PUSH1 && op <= OP_PUSH32)
i += static_cast<size_t>(op - OP_PUSH1 + 1);
i += op - size_t{OP_PUSH1 - 1};
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wonder why don't we just have some kind of push_size() helper if this is used in other places too?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure, is it?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have not found other case in lib/evmone.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants