DescriptionFix remaining issues in the custom snapshot.
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
Committed: https://crrev.com/22e6958d63c56b332ed6e3a379e3bed25be2d1bf
Cr-Commit-Position: refs/heads/master@{#26072}
Patch Set 1 #Patch Set 2 : fixed assertion #Patch Set 3 : fix heap snapshot test expectation #
Messages
Total messages: 14 (4 generated)
|