diff options
Diffstat (limited to 'deps/v8/test/mjsunit/es6/map-constructor-entry-side-effect2.js')
-rw-r--r-- | deps/v8/test/mjsunit/es6/map-constructor-entry-side-effect2.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/deps/v8/test/mjsunit/es6/map-constructor-entry-side-effect2.js b/deps/v8/test/mjsunit/es6/map-constructor-entry-side-effect2.js index 0c167c1bfa..de92b8d211 100644 --- a/deps/v8/test/mjsunit/es6/map-constructor-entry-side-effect2.js +++ b/deps/v8/test/mjsunit/es6/map-constructor-entry-side-effect2.js @@ -38,6 +38,7 @@ function TestMapConstructorEntrySideEffect(ctor) { ctor.prototype.set = originalPrototypeSet; } +%PrepareFunctionForOptimization(TestMapConstructorEntrySideEffect); TestMapConstructorEntrySideEffect(Map); TestMapConstructorEntrySideEffect(Map); TestMapConstructorEntrySideEffect(Map); @@ -45,7 +46,9 @@ TestMapConstructorEntrySideEffect(Map); TestMapConstructorEntrySideEffect(Map); assertOptimized(TestMapConstructorEntrySideEffect); +// This call would deopt TestMapConstructorEntrySideEffect(WeakMap); +%PrepareFunctionForOptimization(TestMapConstructorEntrySideEffect); TestMapConstructorEntrySideEffect(WeakMap); TestMapConstructorEntrySideEffect(WeakMap); %OptimizeFunctionOnNextCall(TestMapConstructorEntrySideEffect); |