• jgruber's avatar
    [snapshot] Dynamically allocate builtin code objects in advance · b7b91142
    jgruber authored
    Our current deserializers (startup & partial) use a system of static memory
    reservations: required memory is determined at serialization time, which we
    then request before deserialization and dole out as-needed during
    deserialization.
    
    Lazy builtin deserialization needs a bit more flexibility. On the one hand, the
    amount of required memory varies since --lazy-deserialization can be switched
    on and off at runtime.
    
    On the other, builtin deserialization has been made order-independent, and we
    can encounter references to builtins before they have been deserialized.
    
    Both problems are solved by dynamically allocating required memory and
    initializing the builtins table with the (yet uninitialized) builtin Code
    objects.
    
    Bug: v8:6624
    Change-Id: Iee90992e91adb4ab45dae1acc81f64a108d12584
    Reviewed-on: https://chromium-review.googlesource.com/647748
    Commit-Queue: Jakob Gruber <jgruber@chromium.org>
    Reviewed-by: 's avatarYang Guo <yangguo@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#47789}
    b7b91142
Name
Last commit
Last update
..
DEPS Loading commit data...
OWNERS Loading commit data...
builtin-deserializer.cc Loading commit data...
builtin-deserializer.h Loading commit data...
builtin-serializer.cc Loading commit data...
builtin-serializer.h Loading commit data...
code-serializer.cc Loading commit data...
code-serializer.h Loading commit data...
deserializer.cc Loading commit data...
deserializer.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...