bradnelson
21e46b05a2
[wasm] [asm.js] Fix various asm.js issues.
...
Several of the asm.js tests were disabled and wrong (mismatched number of args
on the stdlib functions).
Fixing issue around negation and float + doubles.
Renaming function for IsNegate to IsInvert (to reflect what it actually does).
Added tests for negate and invert.
BUG= https://bugs.chromium.org/p/v8/issues/detail?id=4203
R=aseemgarg@chromium.org ,jpp@chromium.org
Review-Url: https://codereview.chromium.org/2377903002
Cr-Commit-Position: refs/heads/master@{#39836}
2016-09-28 16:37:04 +00:00
bradnelson
e5f5ac7d2b
[wasm] asm.js - Remove Wasm.instantiateModuleFromAsm, use asm.js directly.
...
Make use of %IsAsmWasmCode in place of Wasm.instantiateModuleFromAsm,
in order to reduce the surface area of the Wasm object,
and to focus on testing asm.js coming in via the parser.
Ignore extra CONST_LEGACY assignment introduced by the parser
when modules have the form:
(function Foo(a, b, c) {..});
This requires both a validator and AsmWasmBuilder change.
Move stdlib use collection to import time,
to reject modules that import a function, even if not used.
BUG= https://bugs.chromium.org/p/v8/issues/detail?id=4203
LOG=N
R=jpp@chromium.org ,titzer@chromium.org
Review-Url: https://codereview.chromium.org/2264913002
Cr-Commit-Position: refs/heads/master@{#38806}
2016-08-23 04:07:23 +00:00
bradnelson
c5856779eb
[wasm] Forbid sign mismatch in asm typer.
...
asm.js forbids mixing signed and unsigned % or /.
We had been allowing these.
Fixes crash.
BUG=618602
BUG=v8:4203
R=aseemgarg@chromium.org
Review-Url: https://codereview.chromium.org/2107683002
Cr-Commit-Position: refs/heads/master@{#37350}
2016-06-28 21:01:36 +00:00
titzer
d167c3743d
[wasm] Mask shift counts on architectures that don't implicitly mask.
...
R=ahaas@chromium.org ,bradnelson@chromium.org
BUG=
Review URL: https://codereview.chromium.org/1845443003
Cr-Commit-Position: refs/heads/master@{#35136}
2016-03-30 12:40:22 +00:00
titzer
257bdfe543
[wasm] Fix asm.js semantics for divide by zero in WASM translation.
...
R=ahaas@chromium.org ,bradnelson@chromium.org
BUG=
Review URL: https://codereview.chromium.org/1839333002
Cr-Commit-Position: refs/heads/master@{#35134}
2016-03-30 11:37:44 +00:00
titzer
5134242378
[wasm] Enable more ASM->WASM tests.
...
R=jarin@chromium.org
BUG=
Review URL: https://codereview.chromium.org/1830703003
Cr-Commit-Position: refs/heads/master@{#35067}
2016-03-24 19:03:21 +00:00
titzer
3e0b6daf54
[wasm] Add more extensive tests for asm->wasm translation.
...
R=bradnelson@chromium.org
BUG=
Review URL: https://codereview.chromium.org/1825333004
Cr-Commit-Position: refs/heads/master@{#35045}
2016-03-23 23:19:22 +00:00