• rossberg's avatar
    Upgrade Wasm JS API, step 1 · 386c747b
    rossberg authored
    Implements:
    - WebAssembly object,
    - WebAssembly.Module constructor,
    - WebAssembly.Instance constructor,
    - WebAssembly.compile async method,
    - and Module and Instance instance objects.
    
    Also, changes ErrorThrower to support capturing errors in a promise reject.
    
    Since we cannot yet compile without fixing the Wasm memory, and cannot validate a module without compiling, the Module constructor and compile method don't do anything yet but checking that their argument is a suitable BufferSource. Instead of a compiled module, the hidden state of a Module object currently is just that buffer.
    
    BUG=
    
    Review-Url: https://codereview.chromium.org/2084573002
    Cr-Commit-Position: refs/heads/master@{#37143}
    386c747b
Name
Last commit
Last update
..
base Loading commit data...
compiler Loading commit data...
heap Loading commit data...
interpreter Loading commit data...
libplatform Loading commit data...
wasm Loading commit data...
BUILD.gn Loading commit data...
DEPS Loading commit data...
cancelable-tasks-unittest.cc Loading commit data...
char-predicates-unittest.cc Loading commit data...
counters-unittest.cc Loading commit data...
locked-queue-unittest.cc Loading commit data...
run-all-unittests.cc Loading commit data...
test-utils.cc Loading commit data...
test-utils.h Loading commit data...
unittests.gyp Loading commit data...
unittests.isolate Loading commit data...
unittests.status Loading commit data...