mtrofin
24c050e8bc
[wasm] WebAssembly.instantiate has a pair-returning overload
...
Additionally, fixed invalid check in WebAssembly.Module constructor.
The constructor takes precisely one argument.
BUG=v8:5875
Review-Url: https://codereview.chromium.org/2644993002
Cr-Commit-Position: refs/heads/master@{#42575}
2017-01-20 18:46:44 +00:00
mtrofin
2e3447bb66
[wasm] WebAssembly.compile: pass errors through promise resolver
...
BUG=v8:5876
Review-Url: https://codereview.chromium.org/2644893004
Cr-Commit-Position: refs/heads/master@{#42568}
2017-01-20 15:33:59 +00:00
gdeepti
6934db7ca7
[wasm] WebAssembly.Memory.grow() should handle the no instance case
...
- Currently WebAssembly.Memory.grow() assumes that it always has an instance associated with it,
fix to grow and reflect new size when no instance is associated with memory object.
- Correctness fixes for the js api, throw range errors instead of generic errors
BUG=chromium:680938
R=bradnelson@chromium.org , titzer@chromium.org
Review-Url: https://codereview.chromium.org/2638243002
Cr-Commit-Position: refs/heads/master@{#42432}
2017-01-18 04:45:07 +00:00
rossberg
4f556e9e4b
Add @@toStringTag for WebAssembly classes
...
R=titzer@chromium.org
BUG=
Review-Url: https://codereview.chromium.org/2625133005
Cr-Commit-Position: refs/heads/master@{#42379}
2017-01-16 15:31:40 +00:00
rossberg
ef555d08a9
Delay all exceptions in WebAssembly.instantiate
...
R=titzer@chromium.org
BUG=v8:5818
Review-Url: https://codereview.chromium.org/2637703004
Cr-Commit-Position: refs/heads/master@{#42372}
2017-01-16 13:13:42 +00:00
gdeepti
ccf0998d63
[wasm] Table.Grow should grow dispatch tables
...
- Table.Grow updates function, signature table sizes
- Updates generated code with new base addresses for function, signature tables
- Relocates size references for correct bounds check
R=bradnelson@chromium.org , titzer@chromium.org
Review-Url: https://codereview.chromium.org/2637643002
Cr-Commit-Position: refs/heads/master@{#42349}
2017-01-15 07:46:08 +00:00
mtrofin
f8fd6ec3dd
[wasm] JS-API: enable WebAssembly.instantiate tests; fix LinkError
...
We weren't throwing LinkError where appropriate
progress
BUG=v8:5835
Review-Url: https://codereview.chromium.org/2629523007
Cr-Commit-Position: refs/heads/master@{#42342}
2017-01-13 20:47:44 +00:00
mtrofin
7c7434085e
[wasm] JS-APIs: more WebAssembly.compile tests
...
enabled TODO-ed compile tests
BUG=v8:5833
Review-Url: https://codereview.chromium.org/2628053004
Cr-Commit-Position: refs/heads/master@{#42293}
2017-01-12 21:30:39 +00:00
rossberg
022635bf0d
Implement Instance instances correctly; fix a few error cases
...
R=titzer@chromium.org
BUG=
Review-Url: https://codereview.chromium.org/2620263003
Cr-Commit-Position: refs/heads/master@{#42288}
2017-01-12 20:32:27 +00:00
mtrofin
53137df89a
[wasm] JS APIs & memory
...
- updated WebAssembly.Instance ctor uses in our tests to match spec
- disallowing mem section *and* mem import, as per spec
BUG=v8:5824
Review-Url: https://codereview.chromium.org/2627763002
Cr-Commit-Position: refs/heads/master@{#42278}
2017-01-12 16:48:09 +00:00
titzer
bbf00d80aa
[wasm] Implement WebAssembly.Module.exports function.
...
R=rossberg@chromium.org
BUG=v8:5814,chromium:575167
Review-Url: https://codereview.chromium.org/2623183002
Cr-Commit-Position: refs/heads/master@{#42233}
2017-01-11 14:40:25 +00:00
titzer
d5a0860e87
[wasm] Implement the WebAssembly.Module.imports function.
...
R=rossberg@chromium.org
BUG=v8:5813,chromium:575167
Review-Url: https://codereview.chromium.org/2620203005
Cr-Commit-Position: refs/heads/master@{#42231}
2017-01-11 14:17:54 +00:00
mtrofin
040f7434cc
[wasm] JS API tests for WebAssembly.validate
...
Also ensuring it is validation error to specify more than
one memory import.
BUG=v8:5824
Review-Url: https://codereview.chromium.org/2624853002
Cr-Commit-Position: refs/heads/master@{#42205}
2017-01-11 00:25:09 +00:00
rossberg
8e9c90baa0
Make .prototype properties of Wasm constructors read-only
...
R=titzer@chromium.org
BUG=v8:5817
Review-Url: https://codereview.chromium.org/2620783005
Cr-Commit-Position: refs/heads/master@{#42184}
2017-01-10 15:40:57 +00:00
titzer
01c464a5af
[wasm] Set JS API names and function lengths appropriately.
...
R=clemensh@chromium.org
BUG=chromium:575167
Review-Url: https://codereview.chromium.org/2590243003
Cr-Commit-Position: refs/heads/master@{#41885}
2016-12-21 09:03:35 +00:00
titzer
6e8338865a
[wasm] Implement correct 2-level namespace for imports.
...
R=clemensh@chromium.org
CC=rossberg@chromium.org
BUG=chromium:575167
Review-Url: https://codereview.chromium.org/2591753002
Cr-Commit-Position: refs/heads/master@{#41866}
2016-12-20 15:32:56 +00:00
titzer
b6a57e6ff5
[wasm] Add js-api test and fix property details for some functions.
...
R=clemensh@chromium.org
BUG=
Review-Url: https://codereview.chromium.org/2585193004
Cr-Commit-Position: refs/heads/master@{#41817}
2016-12-19 17:19:56 +00:00