Description[wasm] Compilation/Instantiation pipeline works off module object
Moved the compilation/instantiation pipeline to work off the
module object (JSObject), making the compiled module data (the
FixedArray) an implementation detail. This:
- simplifies the code by removing duplicate decode->compile->instantiate
sequences
- sets up the stage for "dressing up" the runtime model with
stronger typed APIs
- helps relanding this CL: https://codereview.chromium.org/2305903002/.
It turns out that GCs during the cloning/instantiation events cause
trouble, and centering the source of truth on the module object helps
address this issue.
In the process, clarified cctest setup for wasm-capable isolates,
and changed signatures for consistency (using ModuleOrigin througout).
BUG=
Committed: https://crrev.com/8e5ac62ddf17e85027b4eeb1056cddfbb70cace8
Cr-Commit-Position: refs/heads/master@{#39360}
Patch Set 1 #Patch Set 2 : fuzzer #Patch Set 3 : fuzzer(2) #Patch Set 4 : fixes #Patch Set 5 : rebase #
Messages
Total messages: 35 (25 generated)
|