Skip to content
This repository has been archived by the owner on Jan 5, 2019. It is now read-only.

Adds support for Byzantium opcodes (WIP) #196

Merged
merged 2 commits into from
Aug 2, 2018

Conversation

lrettig
Copy link
Member

@lrettig lrettig commented Mar 15, 2018

Creating a PR to track this work in progress. Closes #163.

@lrettig lrettig changed the title Adds support for BYZANTIUM opcodes (WIP) Adds support for Byzantium opcodes (WIP) Mar 15, 2018
},
RETURNDATASIZE: {
name: 'getReturnDataSize',
async: true,
Copy link
Member

Choose a reason for hiding this comment

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

These two are not async.

opcodes.js Outdated
@@ -147,6 +149,8 @@ const codes = {
0xf2: ['CALLCODE', 0, 7, 1],
0xf3: ['RETURN', 0, 2, 0],
0xf4: ['DELEGATECALL', 0, 6, 1],
0xfa: ['STATICCALL', 0, 6, 1],
0xfd: ['REVERT', 0, 2, 0],

Copy link
Member

Choose a reason for hiding this comment

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

Should also explicitly handle 0xfe (INVALID), for clarity.

@axic
Copy link
Member

axic commented Aug 2, 2018

Even though this is not finished (not testing the additions), it is still better to merge them as the rest of evm2wasm is broken anyway.

@axic axic merged commit 0eb7f7b into ewasm:master Aug 2, 2018
@axic axic removed the in progress label Aug 2, 2018
@lrettig lrettig deleted the byzantium-opcodes branch August 3, 2018 13:09
@jalextowle
Copy link

I'm going to start working on this, if that's alright. I talked to @lrettig about it in the Gitter.

@lrettig
Copy link
Member Author

lrettig commented Aug 3, 2018

It's been merged. Let me know if you find anything missing; and as @axic indicated there are no tests for the new stuff, so that may be a good place to start.

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

Successfully merging this pull request may close these issues.

3 participants