• rmcilroy's avatar
    [Interpreter] Introduce InterpreterCompilationJob · 785990e9
    rmcilroy authored
    Adds InterpreterCompilationJob as a sub-class of
    CompilationJob, to enable off-thread bytecode
    generation. Currently only used in
    Interpreter::MakeBytecode.
    
    As part of this change, CompilationJob is modified
    to make it less specific to optimized compilation,
    renaming the phases as follows:
     - CreateGraph -> PrepareJob
     - OptimizeGraph -> ExecuteJob
     - GenerateCode -> FinalizeJob
    
    RegisterWeakObjectsInOptimizedCode is also moved out
    of CompilationJob and instead becomes a static function
    on Compiler.
    
    BUG=v8:5203
    
    Committed: https://crrev.com/1fb6a7e697e8bc5b4af51647553741f966e00cdc
    Review-Url: https://codereview.chromium.org/2240463002
    Cr-Original-Commit-Position: refs/heads/master@{#38662}
    Cr-Commit-Position: refs/heads/master@{#38668}
    785990e9
hydrogen.cc 481 KB