Index: src/full-codegen/x87/full-codegen-x87.cc |
diff --git a/src/full-codegen/x87/full-codegen-x87.cc b/src/full-codegen/x87/full-codegen-x87.cc |
index 28e14bcb242763d3bb29d4a3b4c02596efa966ec..c3e526579ff35142c4f8e7bd4b3ca0379b8ef994 100644 |
--- a/src/full-codegen/x87/full-codegen-x87.cc |
+++ b/src/full-codegen/x87/full-codegen-x87.cc |
@@ -3140,35 +3140,6 @@ void FullCodeGenerator::EmitTwoByteSeqStringSetChar(CallRuntime* expr) { |
} |
-void FullCodeGenerator::EmitSetValueOf(CallRuntime* expr) { |
- ZoneList<Expression*>* args = expr->arguments(); |
- DCHECK(args->length() == 2); |
- |
- VisitForStackValue(args->at(0)); // Load the object. |
- VisitForAccumulatorValue(args->at(1)); // Load the value. |
- __ pop(ebx); // eax = value. ebx = object. |
- |
- Label done; |
- // If the object is a smi, return the value. |
- __ JumpIfSmi(ebx, &done, Label::kNear); |
- |
- // If the object is not a value type, return the value. |
- __ CmpObjectType(ebx, JS_VALUE_TYPE, ecx); |
- __ j(not_equal, &done, Label::kNear); |
- |
- // Store the value. |
- __ mov(FieldOperand(ebx, JSValue::kValueOffset), eax); |
- |
- // Update the write barrier. Save the value as it will be |
- // overwritten by the write barrier code and is needed afterward. |
- __ mov(edx, eax); |
- __ RecordWriteField(ebx, JSValue::kValueOffset, edx, ecx, kDontSaveFPRegs); |
- |
- __ bind(&done); |
- context()->Plug(eax); |
-} |
- |
- |
void FullCodeGenerator::EmitToInteger(CallRuntime* expr) { |
ZoneList<Expression*>* args = expr->arguments(); |
DCHECK_EQ(1, args->length()); |