Index: src/compiler/typer.cc |
diff --git a/src/compiler/typer.cc b/src/compiler/typer.cc |
index ae79a73b4622e705d978c3a77be9cad1b522a684..973deb86603e1d39972944b7d33acf8b6cb218a8 100644 |
--- a/src/compiler/typer.cc |
+++ b/src/compiler/typer.cc |
@@ -1529,8 +1529,14 @@ Type* Typer::Visitor::JSCallFunctionTyper(Type* fun, Typer* t) { |
case kMathClz32: |
return t->cache_.kZeroToThirtyTwo; |
// String functions. |
+ case kStringCharCodeAt: |
+ return Type::Union(Type::Range(0, kMaxUInt16, t->zone()), Type::NaN(), |
+ t->zone()); |
case kStringCharAt: |
+ case kStringConcat: |
case kStringFromCharCode: |
+ case kStringToLowerCase: |
+ case kStringToUpperCase: |
return Type::String(); |
// Array functions. |
case kArrayIndexOf: |
@@ -1580,6 +1586,7 @@ Type* Typer::Visitor::TypeJSCallRuntime(Node* node) { |
case Runtime::kInlineRegExpConstructResult: |
return Type::OtherObject(); |
case Runtime::kInlineSubString: |
+ case Runtime::kInlineStringCharFromCode: |
return Type::String(); |
case Runtime::kInlineToInteger: |
return TypeUnaryOp(node, ToInteger); |