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

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

Issue 149403003: A64: Synchronize with r19234. (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/a64
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 | « test/mjsunit/regress/binop-in-effect-context-deopt.js ('k') | test/mjsunit/regress/regress-340125.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/regress/call-function-in-effect-context-deopt.js
diff --git a/test/mjsunit/regress/regress-array-pop-deopt.js b/test/mjsunit/regress/call-function-in-effect-context-deopt.js
similarity index 84%
copy from test/mjsunit/regress/regress-array-pop-deopt.js
copy to test/mjsunit/regress/call-function-in-effect-context-deopt.js
index 9a0d35d3aa61b0bd3a05971b90f7c7544084d76c..9a36c141b7bc6c00ec8ed8b558588abac21beb0f 100644
--- a/test/mjsunit/regress/regress-array-pop-deopt.js
+++ b/test/mjsunit/regress/call-function-in-effect-context-deopt.js
@@ -27,15 +27,15 @@
// Flags: --allow-natives-syntax
-var o = [6,7,8,9];
-
-function f(b) {
- var v = o.pop() + b;
- return v;
+function f(deopt, osr) {
+ var result = "result";
+ %_CallFunction(0, 0, function() {});
+ var dummy = deopt + 0;
+ if (osr) while (%GetOptimizationStatus(f) == 2) {}
+ return result;
}
-assertEquals(10, f(1));
-assertEquals(9, f(1));
-assertEquals(8, f(1));
+assertEquals("result", f(3, false));
+assertEquals("result", f(3, false));
%OptimizeFunctionOnNextCall(f);
-assertEquals("61", f("1"));
+assertEquals("result", f("foo", true));
« no previous file with comments | « test/mjsunit/regress/binop-in-effect-context-deopt.js ('k') | test/mjsunit/regress/regress-340125.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698