[strong] Add more function arity tests
authorarv <arv@chromium.org>
Tue, 12 May 2015 17:37:34 +0000 (10:37 -0700)
committerCommit bot <commit-bot@chromium.org>
Tue, 12 May 2015 17:37:25 +0000 (17:37 +0000)
This is a follow up to https://codereview.chromium.org/1115263004/

BUG=v8:3956
LOG=N
R=rossberg@chromium.org

Review URL: https://codereview.chromium.org/1141603002

Cr-Commit-Position: refs/heads/master@{#28379}

test/mjsunit/strong/function-arity.js

index 0bd8969..e85688a 100644 (file)
@@ -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';