DescriptionX87: [wasm] Separate compilation from instantiation.
port c1d01aea117c62759cc2be1805493ed59218558c (r37086)
original commit message:
Compilation of wasm functions happens before instantiation. Imports are linked afterwards, at instantiation time. Globals and memory are also
allocated and then tied in via relocation at instantiation time.
This paves the way for implementing Wasm.compile, a prerequisite to
offering the compiled code serialization feature.
Currently, the WasmModule::Compile method just returns a fixed array
containing the code objects. More appropriate modeling of the compiled module to come.
Opportunistically centralized the logic on how to update memory
references, size, and globals, since that logic is the exact same on each
architecture, except for the actual storing of values back in the
instruction stream.
BUG=
Committed: https://crrev.com/fe70bda483d83d1dcd17b403ca80f1b3ae797c53
Cr-Commit-Position: refs/heads/master@{#37307}
Patch Set 1 #
Messages
Total messages: 8 (3 generated)
|