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

Use evmc::MockedHost moar #7831

Merged
merged 8 commits into from
Dec 3, 2019
Merged

Use evmc::MockedHost moar #7831

merged 8 commits into from
Dec 3, 2019

Conversation

chfast
Copy link
Member

@chfast chfast commented Nov 28, 2019

This reuses some data structs and features already defined in evmc::MockedHost in EVMHost implementation. It is up to discussion if this should be continued and if the direction is right in general.

Depends on #7848.

@chfast chfast requested review from axic, chriseth and christianparpart and removed request for axic November 28, 2019 12:17
@chriseth
Copy link
Contributor

If these things are part of EVMC anyway, then we should use them!

@axic
Copy link
Member

axic commented Nov 28, 2019

If these things are part of EVMC anyway, then we should use them!

It was added lately: ethereum/evmc#334

@axic
Copy link
Member

axic commented Nov 28, 2019

Some older clang fails on this: https://travis-ci.org/ethereum/solidity/jobs/618167425

@axic
Copy link
Member

axic commented Nov 28, 2019

Rebased on develop and fixed my original commit message. Before merging, we should update to EVMC master which:

  • drops the second commit ("add nonce")
  • and introduces const specifiers on some of the host

@axic
Copy link
Member

axic commented Dec 2, 2019

@chfast @chriseth @ekpyron this is ready for a round of review and hopefully merging

Note: easier to review commit-by-commit

test/EVMHost.cpp Outdated Show resolved Hide resolved
test/EVMHost.cpp Outdated Show resolved Hide resolved
Copy link
Member Author

@chfast chfast left a comment

Choose a reason for hiding this comment

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

LGTM

@axic
Copy link
Member

axic commented Dec 2, 2019

Compared to #7854, which ran release_soltest as 12m10s, this PR (together with the other EVMC changes) reduces time to 11m20s.

It is a 7% time reduction.

@chriseth chriseth merged commit 37d776a into develop Dec 3, 2019
@chriseth chriseth deleted the mocked-host branch December 3, 2019 20:27
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