Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(452)

Unified Diff: src/compiler/typer.cc

Issue 1221753002: [turbofan] Return constant type for functions with unknown parameter count. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler/typer.cc
diff --git a/src/compiler/typer.cc b/src/compiler/typer.cc
index 5d8b423290b05887fd62943af4831ae29a17416a..5f07300b0188a367cf3c21abe9e7a9e570099f1d 100644
--- a/src/compiler/typer.cc
+++ b/src/compiler/typer.cc
@@ -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:
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698