Index: src/crankshaft/hydrogen.cc |
diff --git a/src/crankshaft/hydrogen.cc b/src/crankshaft/hydrogen.cc |
index 697f97dda5e99dc37828c31794050f3a5a6dcb83..742c1497e2ec77e8112dec537e28a4e2f6d7ce0d 100644 |
--- a/src/crankshaft/hydrogen.cc |
+++ b/src/crankshaft/hydrogen.cc |
@@ -12312,29 +12312,6 @@ void HOptimizedGraphBuilder::GenerateToInteger(CallRuntime* call) { |
} |
-void HOptimizedGraphBuilder::GenerateToName(CallRuntime* call) { |
- DCHECK_EQ(1, call->arguments()->length()); |
- CHECK_ALIVE(VisitForValue(call->arguments()->at(0))); |
- HValue* input = Pop(); |
- if (input->type().IsSmi()) { |
- HValue* result = BuildNumberToString(input, Type::SignedSmall()); |
- return ast_context()->ReturnValue(result); |
- } else if (input->type().IsTaggedNumber()) { |
- HValue* result = BuildNumberToString(input, Type::Number()); |
- return ast_context()->ReturnValue(result); |
- } else if (input->type().IsString()) { |
- return ast_context()->ReturnValue(input); |
- } else { |
- Callable callable = CodeFactory::ToName(isolate()); |
- HValue* stub = Add<HConstant>(callable.code()); |
- HValue* values[] = {context(), input}; |
- HInstruction* result = New<HCallWithDescriptor>( |
- stub, 0, callable.descriptor(), ArrayVector(values)); |
- return ast_context()->ReturnInstruction(result, call->id()); |
- } |
-} |
- |
- |
void HOptimizedGraphBuilder::GenerateToObject(CallRuntime* call) { |
DCHECK_EQ(1, call->arguments()->length()); |
CHECK_ALIVE(VisitForValue(call->arguments()->at(0))); |