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

Unified Diff: test/mjsunit/strong/function-arity.js

Issue 1141603002: [strong] Add more function arity tests (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 7 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/strong/function-arity.js
diff --git a/test/mjsunit/strong/function-arity.js b/test/mjsunit/strong/function-arity.js
index 0bd89690c2fa896411d147b6a510ca274ed183f8..e85688aec80814711ad3143d6cbfa54ed4b9b5ff 100644
--- a/test/mjsunit/strong/function-arity.js
+++ b/test/mjsunit/strong/function-arity.js
@@ -290,6 +290,19 @@ function generateSpread(n) {
})();
+(function TestOptimized3() {
+ function f(x, y) {}
+ function g() {
+ 'use strong';
+ f(1);
+ }
+
+ g();
+ %OptimizeFunctionOnNextCall(f);
+ g();
+})();
+
+
// https://code.google.com/p/v8/issues/detail?id=4077
// (function NoParametersSuper() {
// 'use strong';
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698