[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}
This commit is contained in:
arv 2015-05-12 10:37:34 -07:00 committed by Commit bot
parent bbca83c398
commit 547a641e2c

View 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';