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 0e5cf985b8d9286f4192c9d6c6db93fcbae0b2e7..cf59e66abdcb7aec5469fe61aff43f3c53ef31ff 100644 |
--- a/src/full-codegen/x64/full-codegen-x64.cc |
+++ b/src/full-codegen/x64/full-codegen-x64.cc |
@@ -2734,25 +2734,6 @@ void FullCodeGenerator::EmitClassOf(CallRuntime* expr) { |
} |
-void FullCodeGenerator::EmitValueOf(CallRuntime* expr) { |
- ZoneList<Expression*>* args = expr->arguments(); |
- DCHECK(args->length() == 1); |
- |
- VisitForAccumulatorValue(args->at(0)); // Load the object. |
- |
- Label done; |
- // If the object is a smi return the object. |
- __ JumpIfSmi(rax, &done); |
- // If the object is not a value type, return the object. |
- __ CmpObjectType(rax, JS_VALUE_TYPE, rbx); |
- __ j(not_equal, &done); |
- __ movp(rax, FieldOperand(rax, JSValue::kValueOffset)); |
- |
- __ bind(&done); |
- context()->Plug(rax); |
-} |
- |
- |
void FullCodeGenerator::EmitStringCharFromCode(CallRuntime* expr) { |
ZoneList<Expression*>* args = expr->arguments(); |
DCHECK(args->length() == 1); |