From 547a641e2c12e89cfba3e260644de9c844869b5a Mon Sep 17 00:00:00 2001 From: arv Date: Tue, 12 May 2015 10:37:34 -0700 Subject: [PATCH] [strong] Add more function arity tests 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 | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/test/mjsunit/strong/function-arity.js b/test/mjsunit/strong/function-arity.js index 0bd8969..e85688a 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'; -- 2.7.4