Reviewers: jarin,

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

[email protected]

Please review this at https://codereview.chromium.org/1221753002/

Base URL: https://chromium.googlesource.com/v8/v8.git@master

Affected files (+1, -1 lines):
  M src/compiler/typer.cc


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:


--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to