From: arv Date: Tue, 12 May 2015 17:37:34 +0000 (-0700) Subject: [strong] Add more function arity tests X-Git-Tag: upstream/4.7.83~2661 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=547a641e2c12e89cfba3e260644de9c844869b5a;p=platform%2Fupstream%2Fv8.git [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} --- 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';