• bjaideep's avatar
    PPC/s390: [wasm] Separate compilation from instantiation · 8071e21c
    bjaideep authored
    Port c1d01aea
    
    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.
    
    R=mtrofin@chromium.org, joransiu@ca.ibm.com, jyan@ca.ibm.com, michael_dawson@ca.ibm.com, mbrandy@us.ibm.com
    
    BUG=v8:5072
    LOG=N
    
    Review-Url: https://codereview.chromium.org/2087453002
    Cr-Commit-Position: refs/heads/master@{#37116}
    8071e21c
assembler-s390.cc 106 KB