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

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

Issue 179553002: Don't eliminate loads with incompatible representations. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Also take into account the instruction's type. Created 6 years, 10 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/hydrogen-load-elimination.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-346343.js
diff --git a/test/mjsunit/recursive-store-opt.js b/test/mjsunit/regress/regress-346343.js
similarity index 90%
copy from test/mjsunit/recursive-store-opt.js
copy to test/mjsunit/regress/regress-346343.js
index fb2649248dbabc642f864f671d0ce2273ad44bd7..e4c10663138db599a682880df98f3310e0754b63 100644
--- a/test/mjsunit/recursive-store-opt.js
+++ b/test/mjsunit/regress/regress-346343.js
@@ -27,15 +27,16 @@
// Flags: --allow-natives-syntax
-function g() {
- this.x = this;
+function f(o) {
+ for (var i = 1; i < 2; ++i) {
+ var y = o.y;
+ }
}
+f({y:1.1});
+f({y:1.1});
-function f() {
- return new g();
-}
-
-f();
-f();
-%OptimizeFunctionOnNextCall(f);
-f();
+function g(x) { f({z:x}); }
+g(1);
+g(2);
+%OptimizeFunctionOnNextCall(g);
+g(1);
« no previous file with comments | « src/hydrogen-load-elimination.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698