summaryrefslogtreecommitdiff
path: root/deps/v8/test/mjsunit/array-bounds-check-removal.js
diff options
context:
space:
mode:
authorBen Noordhuis <info@bnoordhuis.nl>2013-02-25 22:45:23 +0100
committerBen Noordhuis <info@bnoordhuis.nl>2013-02-25 23:45:02 +0100
commitb15a10e7a014674ef6f71c51ad84032fb7b802e2 (patch)
tree3bb04a6cb05c7a37c385eda4521b8a9e7bcd736f /deps/v8/test/mjsunit/array-bounds-check-removal.js
parent34046084c0665c8bb2dfd84683dcf29d7ffbad2d (diff)
downloadandroid-node-v8-b15a10e7a014674ef6f71c51ad84032fb7b802e2.tar.gz
android-node-v8-b15a10e7a014674ef6f71c51ad84032fb7b802e2.tar.bz2
android-node-v8-b15a10e7a014674ef6f71c51ad84032fb7b802e2.zip
deps: downgrade v8 to 3.14.5
V8 3.15 and newer have stability and performance issues. Roll back to a known-good version.
Diffstat (limited to 'deps/v8/test/mjsunit/array-bounds-check-removal.js')
-rw-r--r--deps/v8/test/mjsunit/array-bounds-check-removal.js24
1 files changed, 0 insertions, 24 deletions
diff --git a/deps/v8/test/mjsunit/array-bounds-check-removal.js b/deps/v8/test/mjsunit/array-bounds-check-removal.js
index 7a7cb304de..df7988bdaa 100644
--- a/deps/v8/test/mjsunit/array-bounds-check-removal.js
+++ b/deps/v8/test/mjsunit/array-bounds-check-removal.js
@@ -178,29 +178,5 @@ short_test(a, 0);
assertTrue(%GetOptimizationStatus(short_test) != 1);
-// A test for when we would modify a phi index.
-var data_phi = [0, 1, 2, 3, 4, 5, 6, 7, 8];
-function test_phi(a, base, check) {
- var index;
- if (check) {
- index = base + 1;
- } else {
- index = base + 2;
- }
- var result = a[index];
- result += a[index + 1];
- result += a[index - 1];
- return result;
-}
-var result_phi = 0;
-result_phi = test_phi(data_phi, 3, true);
-assertEquals(12, result_phi);
-result_phi = test_phi(data_phi, 3, true);
-assertEquals(12, result_phi);
-%OptimizeFunctionOnNextCall(test_phi);
-result_phi = test_phi(data_phi, 3, true);
-assertEquals(12, result_phi);
-
-
gc();