• jgruber's avatar
    [api] Add option to consume code cache on module compilation · 70b5fd3b
    jgruber authored
    This extends the ScriptCompiler::CompileModule function with a
    CompileOptions argument. Accepted values are kNoCompileOptions (in
    which case, behavior remains unmodified) and kConsumeCodeCache. If the
    latter is passed, we try to fetch the given module from the code
    cache.
    
    Since it is possible to compile the same source code as both a script
    and a module (and different code is generated for the two cases), a
    new is_module bit is added to the SerializedCodeData header to
    disambiguate between the two cases.
    
    Bug: v8:7685
    Cq-Include-Trybots: luci.chromium.try:linux_chromium_rel_ng
    Change-Id: I34b3642505577ed9ed0caedbee5876308c5a53ea
    Reviewed-on: https://chromium-review.googlesource.com/1073327
    Commit-Queue: Jakob Gruber <jgruber@chromium.org>
    Reviewed-by: 's avatarGeorg Neis <neis@chromium.org>
    Reviewed-by: 's avatarYang Guo <yangguo@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#53432}
    70b5fd3b
Name
Last commit
Last update
..
benchmarks Loading commit data...
cctest Loading commit data...
common Loading commit data...
debugger Loading commit data...
fuzzer Loading commit data...
inspector Loading commit data...
intl Loading commit data...
js-perf-test Loading commit data...
memory Loading commit data...
message Loading commit data...
mjsunit Loading commit data...
mkgrokdump Loading commit data...
mozilla Loading commit data...
preparser Loading commit data...
test262 Loading commit data...
torque Loading commit data...
unittests Loading commit data...
wasm-spec-tests Loading commit data...
webkit Loading commit data...
BUILD.gn Loading commit data...