aboutsummaryrefslogtreecommitdiff
path: root/deps/v8/test/mjsunit/regress/regress-718891.js
diff options
context:
space:
mode:
Diffstat (limited to 'deps/v8/test/mjsunit/regress/regress-718891.js')
-rw-r--r--deps/v8/test/mjsunit/regress/regress-718891.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/deps/v8/test/mjsunit/regress/regress-718891.js b/deps/v8/test/mjsunit/regress/regress-718891.js
index 209568dca3..80aa1ec705 100644
--- a/deps/v8/test/mjsunit/regress/regress-718891.js
+++ b/deps/v8/test/mjsunit/regress/regress-718891.js
@@ -24,6 +24,7 @@ function TestDontSelfHealWithDeoptedCode(run_unoptimized, ClosureFactory) {
// so that the closure doesn't leak in a dead register).
(() => {
var optimized_closure = ClosureFactory();
+ %PrepareFunctionForOptimization(optimized_closure);
// Use .call to avoid the CallIC retaining the JSFunction in the
// feedback vector via a weak map, which would mean it wouldn't be
// collected in the minor gc below.
@@ -40,6 +41,7 @@ function TestDontSelfHealWithDeoptedCode(run_unoptimized, ClosureFactory) {
// old->new remember set.
(() => {
var dummy = function() { return 1; };
+ %PrepareFunctionForOptimization(dummy);
%OptimizeFunctionOnNextCall(dummy);
dummy();
})();