Index: src/full-codegen/ia32/full-codegen-ia32.cc |
diff --git a/src/full-codegen/ia32/full-codegen-ia32.cc b/src/full-codegen/ia32/full-codegen-ia32.cc |
index b4e36a66919c3cff80658b5c7588115f38d8063b..2b7cfd3ad7f9d32b12c25b4f1783159274208bd8 100644 |
--- a/src/full-codegen/ia32/full-codegen-ia32.cc |
+++ b/src/full-codegen/ia32/full-codegen-ia32.cc |
@@ -3156,35 +3156,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()); |