diff options
author | Michaël Zasso <targos@protonmail.com> | 2019-08-16 11:32:46 +0200 |
---|---|---|
committer | Michaël Zasso <targos@protonmail.com> | 2019-08-19 09:25:23 +0200 |
commit | e31f0a7d25668d3c1531294d2ef44a9f3bde4ef4 (patch) | |
tree | 6c6bed9804be9df6162b2483f0a56f371f66464d /deps/v8/test/mjsunit/regress/regress-2193.js | |
parent | ec16fdae540adaf710b1a86c620170b2880088f0 (diff) | |
download | node-new-e31f0a7d25668d3c1531294d2ef44a9f3bde4ef4.tar.gz |
deps: update V8 to 7.7.299.4
PR-URL: https://github.com/nodejs/node/pull/28918
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Jiawen Geng <technicalcute@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Diffstat (limited to 'deps/v8/test/mjsunit/regress/regress-2193.js')
-rw-r--r-- | deps/v8/test/mjsunit/regress/regress-2193.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/deps/v8/test/mjsunit/regress/regress-2193.js b/deps/v8/test/mjsunit/regress/regress-2193.js index 4ec050e10a..068476b1b0 100644 --- a/deps/v8/test/mjsunit/regress/regress-2193.js +++ b/deps/v8/test/mjsunit/regress/regress-2193.js @@ -40,12 +40,15 @@ function MakeClosure() { // Create two closures that share the same literal boilerplates. var closure1 = MakeClosure(); +%PrepareFunctionForOptimization(closure1); var closure2 = MakeClosure(); +%PrepareFunctionForOptimization(closure2); var expected = [1,2,3,3,4,5,6,7,8,9,bozo]; // Make sure we generate optimized code for the first closure after // warming it up properly so that the literals boilerplate is generated // and the optimized code uses CreateArrayLiteralShallow runtime call. +%PrepareFunctionForOptimization(closure1); assertEquals(0, closure1(false)); assertEquals(expected, closure1(true)); %OptimizeFunctionOnNextCall(closure1); @@ -53,6 +56,7 @@ assertEquals(expected, closure1(true)); // Optimize the second closure, which should reuse the optimized code // from the first closure with the same literal boilerplates. +%PrepareFunctionForOptimization(closure2); assertEquals(0, closure2(false)); %OptimizeFunctionOnNextCall(closure2); assertEquals(expected, closure2(true)); |