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

Unified Diff: test/mjsunit/regress/number-named-call-deopt.js

Issue 166503002: Test and fix for polymorphic named call deoptimization. (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/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/number-named-call-deopt.js
diff --git a/test/mjsunit/regress/regress-634-debug.js b/test/mjsunit/regress/number-named-call-deopt.js
similarity index 87%
copy from test/mjsunit/regress/regress-634-debug.js
copy to test/mjsunit/regress/number-named-call-deopt.js
index 17ca828c68cd4de35f6bf0608a980fe1adebb355..1598af12b4914aaab50171628c2d482351e09b84 100644
--- a/test/mjsunit/regress/regress-634-debug.js
+++ b/test/mjsunit/regress/number-named-call-deopt.js
@@ -27,15 +27,15 @@
// Flags: --allow-natives-syntax
-function f() {
- %SetAllocationTimeout(1, 0, false);
- a = new Array(0);
- assertEquals(0, a.length);
- assertEquals(0, a.length);
- %SetAllocationTimeout(-1, -1, true);
+function f(x, deopt, osr) {
+ var res = "result";
+ void(x.toString(10, deopt + 0));
+ if (osr) for (var i = 0; i < 100000; i++) { }
+ return res;
}
-f();
-f();
+f(4, 0, false);
+f(4, 0, false);
+f(4, 0, false);
%OptimizeFunctionOnNextCall(f);
-f();
+assertEquals("result", f(4, "deopt", true));
« 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