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

Unified Diff: test/mjsunit/compiler/regress-621423.js

Issue 2084483002: [turbofan] Only consider inhabited types for constant folding in typed lowering. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 6 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 | « src/compiler/js-typed-lowering.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/compiler/regress-621423.js
diff --git a/test/mjsunit/regress/regress-crbug-577112.js b/test/mjsunit/compiler/regress-621423.js
similarity index 71%
copy from test/mjsunit/regress/regress-crbug-577112.js
copy to test/mjsunit/compiler/regress-621423.js
index 504f921a335801a51fd1c0c1a39a8b08e8872722..962176ffbff75281ae55fed8a05fb40158f0d6f1 100644
--- a/test/mjsunit/regress/regress-crbug-577112.js
+++ b/test/mjsunit/compiler/regress-621423.js
@@ -4,12 +4,18 @@
// Flags: --allow-natives-syntax
-Array.prototype.__proto__ = null;
-var prototype = Array.prototype;
+var a = [0, ""];
+a[0] = 0;
+
+function g(array) {
+ array[1] = undefined;
+}
+
function f() {
- prototype.lastIndexOf({});
+ g(function() {});
+ g(a);
}
-f();
+
f();
%OptimizeFunctionOnNextCall(f);
f();
« no previous file with comments | « src/compiler/js-typed-lowering.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698