Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(230)

Unified Diff: test/mjsunit/regress/regress-556543.js

Issue 1450883003: [turbofan] Check for dead node in the common operator reducer. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/compiler/common-operator-reducer.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/regress/regress-556543.js
diff --git a/test/mjsunit/array-push12.js b/test/mjsunit/regress/regress-556543.js
similarity index 56%
copy from test/mjsunit/array-push12.js
copy to test/mjsunit/regress/regress-556543.js
index f4c15b484b41197c9007113ecf8f91fe909cc5d3..9e9bedd6f553c4701164fd1dac66f4f2df13324d 100644
--- a/test/mjsunit/array-push12.js
+++ b/test/mjsunit/regress/regress-556543.js
@@ -4,20 +4,14 @@
// Flags: --allow-natives-syntax
-var a = [];
-for (var i = -20; i < 0; ++i) {
- a[i] = 0;
-}
-
-function g() {
- [].push.apply(a, arguments);
-}
-
function f() {
- g();
+ for (var __v_2 = 0; __v_2 < __v_5; ++__v_2) {
+ for (var __v_5 = 0; __v_3 < 1; ++__v_8) {
+ if (true || 0 > -6) continue;
+ for (var __v_3 = 0; __v_3 < 1; ++__v_3) {
+ }
+ }
+ }
}
-
-g();
-g();
%OptimizeFunctionOnNextCall(f);
f();
« no previous file with comments | « src/compiler/common-operator-reducer.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698