[turbofan] Return constant type for functions with unknown parameter count.

R=jarin@chromium.org

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

Cr-Commit-Position: refs/heads/master@{#29364}
This commit is contained in:
bmeurer 2015-06-30 00:35:07 -07:00 committed by Commit bot
parent 9b740cf601
commit c74383aa45

View File

@ -2365,7 +2365,7 @@ Type* Typer::Visitor::TypeConstant(Handle<Object> value) {
switch (arity) {
case SharedFunctionInfo::kDontAdaptArgumentsSentinel:
// Some smart optimization at work... &%$!&@+$!
return Type::Any(zone());
break;
case 0:
return typer_->cache_.kAnyFunc0;
case 1: