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

[WIP] Better generator for CALL* #299

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

[WIP] Better generator for CALL* #299

wants to merge 2 commits into from

Conversation

axic
Copy link
Member

@axic axic commented Jul 29, 2018

Depends on #298.

@axic axic force-pushed the generator-for-call branch 2 times, most recently from 585cfe3 to 6112f08 Compare July 30, 2018 08:43
@axic
Copy link
Member Author

axic commented Jul 30, 2018

This fails with:

Calling evm2wasm.js (input 16 bytes)...
(Calling evm2wasm.js with command: evm2wasm.js -e /tmp/hera.evm2wasm.evm.AWTs05 -o /tmp/hera.evm2wasm.wasm.36dVkq --charge-per-op)
Error:Error: validate failed:
arbitraryModuleName:61:19: error: type mismatch in call, expected [i64, i32, i32, i32, i32, i32, i32] but got [i32, i64, i32, i32, i32, i32]
        (i32.eqz (call $call(call $check_overflow_i64
                  ^^^^
arbitraryModuleName:70:6: error: type mismatch in function, expected [] but got [... i64, i32, i32, i32]
    (i64.store (i32.add (get_global $sp) (i32.const -248)) (i64.const 0)));; ...
     ^^^^^^^^^

evm2wasm.js failed
Transcompiling via evm2wasm.js failed
Calling evm2wasm.js (input 16 bytes)...
(Calling evm2wasm.js with command: evm2wasm.js -e /tmp/hera.evm2wasm.evm.0Rfz0P -o /tmp/hera.evm2wasm.wasm.fjIdGf --charge-per-op)
Error:Error: validate failed:
arbitraryModuleName:61:19: error: type mismatch in call, expected [i64, i32, i32, i32, i32, i32, i32] but got [i32, i64, i32, i32, i32, i32]
        (i32.eqz (call $callCode(call $check_overflow_i64
                  ^^^^
arbitraryModuleName:70:6: error: type mismatch in function, expected [] but got [... i64, i32, i32, i32]
    (i64.store (i32.add (get_global $sp) (i32.const -248)) (i64.const 0)));; ...
     ^^^^^^^^^

evm2wasm.js failed
Transcompiling via evm2wasm.js failed
Calling evm2wasm.js (input 6 bytes)...
(Calling evm2wasm.js with command: evm2wasm.js -e /tmp/hera.evm2wasm.evm.hF8g4J -o /tmp/hera.evm2wasm.wasm.Cf6kse --charge-per-op)
evm2wasm.js done (output 550 bytes)
Executing...
importGlobals
Trap condition: unreachable
Calling evm2wasm.js (input 14 bytes)...
(Calling evm2wasm.js with command: evm2wasm.js -e /tmp/hera.evm2wasm.evm.GgQEZN -o /tmp/hera.evm2wasm.wasm.em4Ywn --charge-per-op)
Error:Error: validate failed:
arbitraryModuleName:70:19: error: type mismatch in call, expected [i64, i32, i32, i32, i32, i32, i32, i32, i32] but got [i32, i64, i32, i32, i32, i32, i32, i32]
        (i32.eqz (call $callDelegate(call $check_overflow_i64
                  ^^^^
arbitraryModuleName:79:6: error: type mismatch in function, expected [] but got [... i32, i32, i32, i32]
    (i64.store (i32.add (get_global $sp) (i32.const -312)) (i64.const 0)));; ...
     ^^^^^^^^^

evm2wasm.js failed
Transcompiling via evm2wasm.js failed

@axic axic added ready and removed in progress labels Aug 1, 2018
@axic axic force-pushed the generator-for-call branch 2 times, most recently from 010ee94 to 2a8b672 Compare August 2, 2018 21:18
@axic axic changed the title Better generator for CALL* [WIP] Better generator for CALL* Aug 2, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant