Commit c74383aa authored by bmeurer's avatar bmeurer Committed by Commit bot

[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}
parent 9b740cf6
...@@ -2365,7 +2365,7 @@ Type* Typer::Visitor::TypeConstant(Handle<Object> value) { ...@@ -2365,7 +2365,7 @@ Type* Typer::Visitor::TypeConstant(Handle<Object> value) {
switch (arity) { switch (arity) {
case SharedFunctionInfo::kDontAdaptArgumentsSentinel: case SharedFunctionInfo::kDontAdaptArgumentsSentinel:
// Some smart optimization at work... &%$!&@+$! // Some smart optimization at work... &%$!&@+$!
return Type::Any(zone()); break;
case 0: case 0:
return typer_->cache_.kAnyFunc0; return typer_->cache_.kAnyFunc0;
case 1: case 1:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment