Index: src/full-codegen/x64/full-codegen-x64.cc |
diff --git a/src/full-codegen/x64/full-codegen-x64.cc b/src/full-codegen/x64/full-codegen-x64.cc |
index d08ec34329fc2c9acd3e5979a7fca72ddf92be09..68bb6498a1112deb49a9ff8a5eadd72b0914b334 100644 |
--- a/src/full-codegen/x64/full-codegen-x64.cc |
+++ b/src/full-codegen/x64/full-codegen-x64.cc |
@@ -3398,27 +3398,6 @@ void FullCodeGenerator::EmitToInteger(CallRuntime* expr) { |
} |
-void FullCodeGenerator::EmitToName(CallRuntime* expr) { |
- ZoneList<Expression*>* args = expr->arguments(); |
- DCHECK_EQ(1, args->length()); |
- |
- // Load the argument into rax and convert it. |
- VisitForAccumulatorValue(args->at(0)); |
- |
- // Convert the object to a name. |
- Label convert, done_convert; |
- __ JumpIfSmi(rax, &convert, Label::kNear); |
- STATIC_ASSERT(FIRST_NAME_TYPE == FIRST_TYPE); |
- __ CmpObjectType(rax, LAST_NAME_TYPE, rcx); |
- __ j(below_equal, &done_convert, Label::kNear); |
- __ bind(&convert); |
- __ Push(rax); |
- __ CallRuntime(Runtime::kToName); |
- __ bind(&done_convert); |
- context()->Plug(rax); |
-} |
- |
- |
void FullCodeGenerator::EmitStringCharFromCode(CallRuntime* expr) { |
ZoneList<Expression*>* args = expr->arguments(); |
DCHECK(args->length() == 1); |