• yangguo's avatar
    Fix remaining issues in the custom snapshot. · 22e6958d
    yangguo authored
    Math functions:
    Some Math functions require typed arrays for their implementation. The embedded
    script may call those Math functions. The serializer needs to deal with this.
    Added assertion to make sure no other typed array is created when snapshotting.
    
    Number-string cache:
    We assume that the initial snapshot does not expand the number-string cache.
    This is no longer true for custom heap snapshots.
    
    Bound functions:
    Bound functions store the bound arguments in a COW fixed array, including the
    bindee function. COW arrays are serialized into the startup snapshot and
    referenced in the partial snapshot via partial snapshot cache. However, the
    bindee function is context-dependent and must not be part of the startup
    snapshot. There is no need for bound functions to use a COW array though.
    
    R=jochen@chromium.org
    
    Review URL: https://codereview.chromium.org/851073002
    
    Cr-Commit-Position: refs/heads/master@{#26072}
    22e6958d
Name
Last commit
Last update
benchmarks Loading commit data...
build Loading commit data...
include Loading commit data...
samples Loading commit data...
src Loading commit data...
test Loading commit data...
testing Loading commit data...
tools Loading commit data...
.clang-format Loading commit data...
.gitignore Loading commit data...
AUTHORS Loading commit data...
BUILD.gn Loading commit data...
ChangeLog Loading commit data...
DEPS Loading commit data...
LICENSE Loading commit data...
LICENSE.strongtalk Loading commit data...
LICENSE.v8 Loading commit data...
LICENSE.valgrind Loading commit data...
Makefile Loading commit data...
Makefile.android Loading commit data...
Makefile.nacl 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...