Index: src/hydrogen.cc |
diff --git a/src/hydrogen.cc b/src/hydrogen.cc |
index 8bfc52efb63a57235e6539536216a2369d72858b..34349574473ec2904d8a8381b5130275af9ca571 100644 |
--- a/src/hydrogen.cc |
+++ b/src/hydrogen.cc |
@@ -8547,6 +8547,18 @@ bool HOptimizedGraphBuilder::TryInlineBuiltinMethodCall( |
return true; |
} |
break; |
+ case kStringFromCharCode: |
+ if (argument_count == 2 && check_type == RECEIVER_MAP_CHECK) { |
+ AddCheckConstantFunction(expr->holder(), receiver, receiver_map); |
+ HValue* argument = Pop(); |
+ HValue* context = environment()->LookupContext(); |
+ Drop(1); // Receiver. |
+ HInstruction* result = |
+ HStringCharFromCode::New(zone(), context, argument); |
+ ast_context()->ReturnInstruction(result, expr->id()); |
+ return true; |
+ } |
+ break; |
case kMathExp: |
if (!FLAG_fast_math) break; |
// Fall through if FLAG_fast_math. |