• 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...
build_overrides Loading commit data...
docs Loading commit data...
gni Loading commit data...
include Loading commit data...
infra Loading commit data...
samples Loading commit data...
src Loading commit data...
test Loading commit data...
testing Loading commit data...
third_party Loading commit data...
tools Loading commit data...
.clang-format Loading commit data...
.editorconfig Loading commit data...
.git-blame-ignore-revs Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
.gn Loading commit data...
.vpython Loading commit data...
.ycm_extra_conf.py Loading commit data...
AUTHORS Loading commit data...
BUILD.gn Loading commit data...
CODE_OF_CONDUCT.md Loading commit data...
ChangeLog Loading commit data...
DEPS Loading commit data...
LICENSE Loading commit data...
LICENSE.fdlibm Loading commit data...
LICENSE.strongtalk Loading commit data...
LICENSE.v8 Loading commit data...
LICENSE.valgrind Loading commit data...
OWNERS Loading commit data...
PRESUBMIT.py Loading commit data...
README.md Loading commit data...
WATCHLISTS Loading commit data...
codereview.settings Loading commit data...
snapshot_toolchain.gni Loading commit data...