• Ross McIlroy's avatar
    [Compiler] Introduce IsCompiledScope which prevents flushing of compiled code · 10ea3f8a
    Ross McIlroy authored
    Introduces a IsCompiledScope object which can be used to check whether a
    function is compiled, and ensure it remains compiled for the lifetime
    of the scope without being uncompiled by bytecode flushing. The Compile
    functions are modified to take a scope so that calling code can ensure
    the function remains compiled for the lifetime they require.
    
    Also, don't allocate a feedback vector for asm-wasm code as this
    is never used, and will be reallocated if the asm-wasm code fails to
    instantiate the module and we fallback to regular JavaScript.
    
    Also restructure Compiler::PostInstantiation() to allocate the feedback
    vector once, and do the optimized code check before optimizing for
    always opt.
    
    BUG=v8:8395
    
    Change-Id: I3f1a71143fcae3d1a0c01eefe91ebb4b8594221a
    Reviewed-on: https://chromium-review.googlesource.com/c/1352295Reviewed-by: 's avatarJakob Gruber <jgruber@chromium.org>
    Reviewed-by: 's avatarMichael Starzinger <mstarzinger@chromium.org>
    Commit-Queue: Ross McIlroy <rmcilroy@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#57971}
    10ea3f8a
Name
Last commit
Last update
..
runtime-array.cc Loading commit data...
runtime-atomics.cc Loading commit data...
runtime-bigint.cc Loading commit data...
runtime-classes.cc Loading commit data...
runtime-collections.cc Loading commit data...
runtime-compiler.cc Loading commit data...
runtime-date.cc Loading commit data...
runtime-debug.cc Loading commit data...
runtime-forin.cc Loading commit data...
runtime-function.cc Loading commit data...
runtime-futex.cc Loading commit data...
runtime-generator.cc Loading commit data...
runtime-internal.cc Loading commit data...
runtime-interpreter.cc Loading commit data...
runtime-intl.cc Loading commit data...
runtime-literals.cc Loading commit data...
runtime-module.cc Loading commit data...
runtime-numbers.cc Loading commit data...
runtime-object.cc Loading commit data...
runtime-operators.cc Loading commit data...
runtime-promise.cc Loading commit data...
runtime-proxy.cc Loading commit data...
runtime-regexp.cc Loading commit data...
runtime-scopes.cc Loading commit data...
runtime-strings.cc Loading commit data...
runtime-symbol.cc Loading commit data...
runtime-test.cc Loading commit data...
runtime-typedarray.cc Loading commit data...
runtime-utils.h Loading commit data...
runtime-wasm.cc Loading commit data...
runtime-weak-refs.cc Loading commit data...
runtime.cc Loading commit data...
runtime.h Loading commit data...