DescriptionX87: [TypeFeedbackVector] Root literal arrays in function literals slots.
port b8294aaa978e972978b8d82cedf63befad5d7af1 (r42264)
original commit message:
Literal arrays and feedback vectors for a function can be garbage
collected if we don't have a rooted closure for the function, which
happens often. It's expensive to come back from this (recreating
boilerplates and gathering feedback again), and the cost is
disproportionate if the function was inlined into optimized code.
To guard against losing these arrays when we need them, we'll now
create literal arrays when creating the feedback vector for the outer
closure, and root them strongly in that vector.
BUG=
Review-Url: https://codereview.chromium.org/2627973007
Cr-Commit-Position: refs/heads/master@{#42351}
Committed: https://chromium.googlesource.com/v8/v8/+/f9677ecf5ff55165c8b11b34ae8d9e75ba504990
Patch Set 1 #
Messages
Total messages: 8 (4 generated)
|