Index: src/compiler/typer.cc |
diff --git a/src/compiler/typer.cc b/src/compiler/typer.cc |
index c2aa1879ddf9e4efe9acf7153f17f14c3536bf8b..e426b5b0789164eac0bf2bc76a21fe23384398ac 100644 |
--- a/src/compiler/typer.cc |
+++ b/src/compiler/typer.cc |
@@ -1433,11 +1433,38 @@ Type* Typer::Visitor::JSCallFunctionTyper(Type* fun, Typer* t) { |
return Type::OtherObject(); |
// Array functions. |
+ case kArrayConcat: |
+ return Type::Receiver(); |
+ case kArrayEvery: |
+ return Type::Boolean(); |
+ case kArrayFill: |
+ case kArrayFilter: |
+ return Type::Receiver(); |
+ case kArrayFindIndex: |
+ return Type::Range(-1, kMaxSafeInteger, t->zone()); |
+ case kArrayForEach: |
+ return Type::Undefined(); |
+ case kArrayIncludes: |
+ return Type::Boolean(); |
case kArrayIndexOf: |
+ return Type::Range(-1, kMaxSafeInteger, t->zone()); |
+ case kArrayJoin: |
+ return Type::String(); |
case kArrayLastIndexOf: |
return Type::Range(-1, kMaxSafeInteger, t->zone()); |
+ case kArrayMap: |
+ return Type::Receiver(); |
case kArrayPush: |
return t->cache_.kPositiveSafeInteger; |
+ case kArrayReverse: |
+ case kArraySlice: |
+ return Type::Receiver(); |
+ case kArraySome: |
+ return Type::Boolean(); |
+ case kArraySplice: |
+ return Type::Receiver(); |
+ case kArrayUnshift: |
+ return t->cache_.kPositiveSafeInteger; |
// Object functions. |
case kObjectHasOwnProperty: |