titzer
1e1f72f3a6
[wasm] Factor out WasmModuleInstance from ModuleEnv.
...
R=ahaas@chromium.org ,bradnelson@chromium.org
BUG=
Review URL: https://codereview.chromium.org/1637923002
Cr-Commit-Position: refs/heads/master@{#33541}
2016-01-27 11:04:40 +00:00
titzer
3b6b8119ff
[wasm] Add utilities to print out WASM ast directly from the bytes.
...
Motivated by finding a bug in a larger module, this CL adds the ability
to dump out a byte-by-byte, nested view of the decoded AST. This
byte-by-byte output uses the opcode enum to make it readable, but is
suitable for pasting into a byte[] in C or JS and thus making a regression
test.
Also fix a bug; the case of running out of registers for indirect calls.
R=ahaas@chromium.org
BUG=
Review URL: https://codereview.chromium.org/1616973004
Cr-Commit-Position: refs/heads/master@{#33442}
2016-01-21 16:11:19 +00:00
titzer
d1bc4f0e27
Reland of [wasm] Add tests for JS wrappers to test-run-wasm.
...
Fix: pass global object as receiver when calling WASM->JS.
R=bradnelson@chromium.org , ahaas@chromium.org
BUG=
Review URL: https://codereview.chromium.org/1581393003
Cr-Commit-Position: refs/heads/master@{#33286}
2016-01-14 09:49:04 +00:00
adamk
a3a6bd4128
Revert of [wasm] Add tests for JS wrappers to test-run-wasm. (patchset #1 id:1 of https://codereview.chromium.org/1581643004/ )
...
Reason for revert:
New test failed on nosnap builder (https://build.chromium.org/p/client.v8/builders/V8%20Linux%20-%20nosnap%20-%20debug/builds/4738 ):
Test: cctest/test-run-wasm-js/Run_CallJS_Add_jswrapped
Stderr:
abort: Sloppy function expects JSReceiver as receiver.
#
# Fatal error in ../../src/objects-inl.h, line 3221
# Check failed: !v8::internal::FLAG_enable_slow_asserts || (object->IsJSFunction()).
#
Original issue's description:
> [wasm] Add tests for JS wrappers to test-run-wasm.
>
> R=bradnelson@chromium.org , ahaas@chromium.org
> BUG=
>
> Committed: https://crrev.com/c52f5ced4e600a57c02301f2936b80f086613985
> Cr-Commit-Position: refs/heads/master@{#33274}
TBR=ahaas@chromium.org ,bradnelson@chromium.org,titzer@chromium.org
# Skipping CQ checks because original CL landed less than 1 days ago.
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
BUG=
Review URL: https://codereview.chromium.org/1587763002
Cr-Commit-Position: refs/heads/master@{#33275}
2016-01-13 21:01:58 +00:00
titzer
c52f5ced4e
[wasm] Add tests for JS wrappers to test-run-wasm.
...
R=bradnelson@chromium.org , ahaas@chromium.org
BUG=
Review URL: https://codereview.chromium.org/1581643004
Cr-Commit-Position: refs/heads/master@{#33274}
2016-01-13 19:56:56 +00:00