Index: src/full-codegen/mips/full-codegen-mips.cc |
diff --git a/src/full-codegen/mips/full-codegen-mips.cc b/src/full-codegen/mips/full-codegen-mips.cc |
index b17cd73ae07f2f44553e27d42593dd53e186b46c..cc1fd3d841de99bdaef347d08529ed8eada274b2 100644 |
--- a/src/full-codegen/mips/full-codegen-mips.cc |
+++ b/src/full-codegen/mips/full-codegen-mips.cc |
@@ -3426,45 +3426,6 @@ void FullCodeGenerator::EmitIsDate(CallRuntime* expr) { |
} |
-void FullCodeGenerator::EmitDateField(CallRuntime* expr) { |
- ZoneList<Expression*>* args = expr->arguments(); |
- DCHECK(args->length() == 2); |
- DCHECK_NOT_NULL(args->at(1)->AsLiteral()); |
- Smi* index = Smi::cast(*(args->at(1)->AsLiteral()->value())); |
- |
- VisitForAccumulatorValue(args->at(0)); // Load the object. |
- |
- Register object = v0; |
- Register result = v0; |
- Register scratch0 = t5; |
- Register scratch1 = a1; |
- |
- if (index->value() == 0) { |
- __ lw(result, FieldMemOperand(object, JSDate::kValueOffset)); |
- } else { |
- Label runtime, done; |
- if (index->value() < JSDate::kFirstUncachedField) { |
- ExternalReference stamp = ExternalReference::date_cache_stamp(isolate()); |
- __ li(scratch1, Operand(stamp)); |
- __ lw(scratch1, MemOperand(scratch1)); |
- __ lw(scratch0, FieldMemOperand(object, JSDate::kCacheStampOffset)); |
- __ Branch(&runtime, ne, scratch1, Operand(scratch0)); |
- __ lw(result, FieldMemOperand(object, JSDate::kValueOffset + |
- kPointerSize * index->value())); |
- __ jmp(&done); |
- } |
- __ bind(&runtime); |
- __ PrepareCallCFunction(2, scratch1); |
- __ li(a1, Operand(index)); |
- __ Move(a0, object); |
- __ CallCFunction(ExternalReference::get_date_field_function(isolate()), 2); |
- __ bind(&done); |
- } |
- |
- context()->Plug(result); |
-} |
- |
- |
void FullCodeGenerator::EmitOneByteSeqStringSetChar(CallRuntime* expr) { |
ZoneList<Expression*>* args = expr->arguments(); |
DCHECK_EQ(3, args->length()); |