• 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
..
DEPS Loading commit data...
OWNERS Loading commit data...
builtin-deserializer-allocator.cc Loading commit data...
builtin-deserializer-allocator.h Loading commit data...
builtin-deserializer.cc Loading commit data...
builtin-deserializer.h Loading commit data...
builtin-serializer-allocator.cc Loading commit data...
builtin-serializer-allocator.h Loading commit data...
builtin-serializer.cc Loading commit data...
builtin-serializer.h Loading commit data...
builtin-snapshot-utils.cc Loading commit data...
builtin-snapshot-utils.h Loading commit data...
code-serializer.cc Loading commit data...
code-serializer.h Loading commit data...
default-deserializer-allocator.cc Loading commit data...
default-deserializer-allocator.h Loading commit data...
default-serializer-allocator.cc Loading commit data...
default-serializer-allocator.h Loading commit data...
deserializer.cc Loading commit data...
deserializer.h Loading commit data...
embedded-empty.cc Loading commit data...
macros.h Loading commit data...
mksnapshot.cc Loading commit data...
natives-common.cc Loading commit data...
natives-external.cc Loading commit data...
natives.h Loading commit data...
object-deserializer.cc Loading commit data...
object-deserializer.h Loading commit data...
partial-deserializer.cc Loading commit data...
partial-deserializer.h Loading commit data...
partial-serializer.cc Loading commit data...
partial-serializer.h Loading commit data...
serializer-common.cc Loading commit data...
serializer-common.h Loading commit data...
serializer.cc Loading commit data...
serializer.h Loading commit data...
snapshot-common.cc Loading commit data...
snapshot-empty.cc Loading commit data...
snapshot-external.cc Loading commit data...
snapshot-source-sink.cc Loading commit data...
snapshot-source-sink.h Loading commit data...
snapshot.h Loading commit data...
startup-deserializer.cc Loading commit data...
startup-deserializer.h Loading commit data...
startup-serializer.cc Loading commit data...
startup-serializer.h Loading commit data...