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

Unified Diff: test/mjsunit/compiler/smi-stores-opt.js

Issue 152923006: Fix for a smi stores optimization on x64 with a test case. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: 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/x64/lithium-codegen-x64.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/smi-stores-opt.js
diff --git a/test/mjsunit/recursive-store-opt.js b/test/mjsunit/compiler/smi-stores-opt.js
similarity index 90%
copy from test/mjsunit/recursive-store-opt.js
copy to test/mjsunit/compiler/smi-stores-opt.js
index fb2649248dbabc642f864f671d0ce2273ad44bd7..ca0923abc99501096d182bcdcd05f6f4020de9c9 100644
--- a/test/mjsunit/recursive-store-opt.js
+++ b/test/mjsunit/compiler/smi-stores-opt.js
@@ -27,15 +27,23 @@
// Flags: --allow-natives-syntax
+var o = {a:1.5};
+o.a = 0;
+var a = o.a;
+
function g() {
- this.x = this;
+ return 1;
}
+var o2 = {a:{}};
+
function f() {
- return new g();
+ var result = {a: a};
+ var literal = {x:g()};
+ return [result, literal];
}
f();
f();
%OptimizeFunctionOnNextCall(f);
-f();
+assertEquals(1, f()[1].x);
« no previous file with comments | « src/x64/lithium-codegen-x64.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698