diff options
author | Ujjwal Sharma <usharma1998@gmail.com> | 2019-03-15 18:35:06 +0530 |
---|---|---|
committer | Refael Ackermann <refack@gmail.com> | 2019-03-28 16:36:18 -0400 |
commit | f579e1194046c50f2e6bb54348d48c8e7d1a53cf (patch) | |
tree | 9125787c758358365f74f9fd9673c14f57e67870 /deps/v8/test/mjsunit/compiler/math-floor-global.js | |
parent | 2c73868b0471fbd4038f500d076df056cbf697fe (diff) | |
download | android-node-v8-f579e1194046c50f2e6bb54348d48c8e7d1a53cf.tar.gz android-node-v8-f579e1194046c50f2e6bb54348d48c8e7d1a53cf.tar.bz2 android-node-v8-f579e1194046c50f2e6bb54348d48c8e7d1a53cf.zip |
deps: update V8 to 7.4.288.13
PR-URL: https://github.com/nodejs/node/pull/26685
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Michaƫl Zasso <targos@protonmail.com>
Reviewed-By: Refael Ackermann <refack@gmail.com>
Diffstat (limited to 'deps/v8/test/mjsunit/compiler/math-floor-global.js')
-rw-r--r-- | deps/v8/test/mjsunit/compiler/math-floor-global.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/deps/v8/test/mjsunit/compiler/math-floor-global.js b/deps/v8/test/mjsunit/compiler/math-floor-global.js index 9ee649cb2d..e5761e33e6 100644 --- a/deps/v8/test/mjsunit/compiler/math-floor-global.js +++ b/deps/v8/test/mjsunit/compiler/math-floor-global.js @@ -34,6 +34,7 @@ var test_id = 0; function testFloor(expect, input) { var test = new Function('n', '"' + (test_id++) + '";return flo(n)'); + %PrepareFunctionForOptimization(test); assertEquals(expect, test(input)); assertEquals(expect, test(input)); assertEquals(expect, test(input)); @@ -59,6 +60,7 @@ function test() { function ifloor(x) { return 1 / Math.floor(x); } + %PrepareFunctionForOptimization(ifloor); assertEquals(-Infinity, ifloor(-0)); assertEquals(-Infinity, ifloor(-0)); assertEquals(-Infinity, ifloor(-0)); @@ -155,6 +157,7 @@ function floorsum(i, n) { } return ret; } +%PrepareFunctionForOptimization(floorsum); assertEquals(-0, floorsum(1, -0)); %OptimizeFunctionOnNextCall(floorsum); // The optimized function will deopt. Run it with enough iterations to try |