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

Unified Diff: test/mjsunit/compiler/opt-next-call.js

Issue 863443003: Remove overzealous check from %OptimizeFunctionOnNextCall. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Added test cases. Created 5 years, 11 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
Index: test/mjsunit/compiler/opt-next-call.js
diff --git a/test/mjsunit/compiler/opt-next-call.js b/test/mjsunit/compiler/opt-next-call.js
index 6366c7d72e3d7f69662dfcab858ce5b09b29da81..3d7e74f62660d15524a3930b08892b9e951a53b1 100644
--- a/test/mjsunit/compiler/opt-next-call.js
+++ b/test/mjsunit/compiler/opt-next-call.js
@@ -11,3 +11,12 @@ function foo() {
%OptimizeFunctionOnNextCall(foo);
assertEquals("fooed", foo());
assertOptimized(foo);
+
+function bar() {
+ return "bared";
+}
+
+assertEquals("bared", bar());
+%OptimizeFunctionOnNextCall(bar);
+assertEquals("bared", bar());
+assertOptimized(bar);

Powered by Google App Engine
This is Rietveld 408576698