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

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

Issue 1857133003: [turbofan] Restrict types in load elimination. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Tweaks Created 4 years, 8 months 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 | « test/mjsunit/mjsunit.status ('k') | test/unittests/compiler/load-elimination-unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/regress/regress-599412.js
diff --git a/test/mjsunit/regress/regress-crbug-577112.js b/test/mjsunit/regress/regress-599412.js
similarity index 68%
copy from test/mjsunit/regress/regress-crbug-577112.js
copy to test/mjsunit/regress/regress-599412.js
index 504f921a335801a51fd1c0c1a39a8b08e8872722..d5c411d0f11a1b81139c4eaefdecfb169c3b007b 100644
--- a/test/mjsunit/regress/regress-crbug-577112.js
+++ b/test/mjsunit/regress/regress-599412.js
@@ -4,12 +4,19 @@
// Flags: --allow-natives-syntax
-Array.prototype.__proto__ = null;
-var prototype = Array.prototype;
+function h(a) {
+ if (!a) return false;
+ print();
+}
+
+function g(a) { return a.length; }
+g('0');
+g('1');
+
function f() {
- prototype.lastIndexOf({});
+ h(g([]));
}
-f();
+
f();
%OptimizeFunctionOnNextCall(f);
f();
« no previous file with comments | « test/mjsunit/mjsunit.status ('k') | test/unittests/compiler/load-elimination-unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698