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

Unified Diff: test/mjsunit/regress/comparison-in-effect-context-deopt.js

Issue 163623002: Comparison in effect context lazy deopt fix. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Address review comments 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.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/comparison-in-effect-context-deopt.js
diff --git a/test/mjsunit/compiler/smi-stores-opt.js b/test/mjsunit/regress/comparison-in-effect-context-deopt.js
similarity index 86%
copy from test/mjsunit/compiler/smi-stores-opt.js
copy to test/mjsunit/regress/comparison-in-effect-context-deopt.js
index ca0923abc99501096d182bcdcd05f6f4020de9c9..b28dff73a745dfc7445a6c093380c56f51b3fb76 100644
--- a/test/mjsunit/compiler/smi-stores-opt.js
+++ b/test/mjsunit/regress/comparison-in-effect-context-deopt.js
@@ -27,23 +27,21 @@
// Flags: --allow-natives-syntax
-var o = {a:1.5};
-o.a = 0;
-var a = o.a;
-
-function g() {
- return 1;
+function lazyDeopt() {
+ %DeoptimizeFunction(test);
+ return "deopt";
}
-var o2 = {a:{}};
+var x = { toString : lazyDeopt };
+
+function g(x) {
+ return "result";
+}
-function f() {
- var result = {a: a};
- var literal = {x:g()};
- return [result, literal];
+function test(x) {
+ return g(void(x == ""));
}
-f();
-f();
-%OptimizeFunctionOnNextCall(f);
-assertEquals(1, f()[1].x);
+test(x);
+%OptimizeFunctionOnNextCall(test);
+assertEquals("result", test(x));
« no previous file with comments | « src/hydrogen.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698