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 9fe4bbac1c3f2cc4996794b95fa28a7019803a6e..4fa18d5aaa7aa17707d4a5f957af8683dbded407 100644 |
--- a/src/full-codegen/mips/full-codegen-mips.cc |
+++ b/src/full-codegen/mips/full-codegen-mips.cc |
@@ -4307,60 +4307,6 @@ void FullCodeGenerator::EmitRegExpConstructResult(CallRuntime* expr) { |
} |
-void FullCodeGenerator::EmitGetFromCache(CallRuntime* expr) { |
- ZoneList<Expression*>* args = expr->arguments(); |
- DCHECK_EQ(2, args->length()); |
- |
- DCHECK_NOT_NULL(args->at(0)->AsLiteral()); |
- int cache_id = Smi::cast(*(args->at(0)->AsLiteral()->value()))->value(); |
- |
- Handle<FixedArray> jsfunction_result_caches( |
- isolate()->native_context()->jsfunction_result_caches()); |
- if (jsfunction_result_caches->length() <= cache_id) { |
- __ Abort(kAttemptToUseUndefinedCache); |
- __ LoadRoot(v0, Heap::kUndefinedValueRootIndex); |
- context()->Plug(v0); |
- return; |
- } |
- |
- VisitForAccumulatorValue(args->at(1)); |
- |
- Register key = v0; |
- Register cache = a1; |
- __ lw(cache, ContextOperand(cp, Context::GLOBAL_OBJECT_INDEX)); |
- __ lw(cache, FieldMemOperand(cache, GlobalObject::kNativeContextOffset)); |
- __ lw(cache, |
- ContextOperand( |
- cache, Context::JSFUNCTION_RESULT_CACHES_INDEX)); |
- __ lw(cache, |
- FieldMemOperand(cache, FixedArray::OffsetOfElementAt(cache_id))); |
- |
- |
- Label done, not_found; |
- STATIC_ASSERT(kSmiTag == 0 && kSmiTagSize == 1); |
- __ lw(a2, FieldMemOperand(cache, JSFunctionResultCache::kFingerOffset)); |
- // a2 now holds finger offset as a smi. |
- __ Addu(a3, cache, Operand(FixedArray::kHeaderSize - kHeapObjectTag)); |
- // a3 now points to the start of fixed array elements. |
- __ sll(at, a2, kPointerSizeLog2 - kSmiTagSize); |
- __ addu(a3, a3, at); |
- // a3 now points to key of indexed element of cache. |
- __ lw(a2, MemOperand(a3)); |
- __ Branch(¬_found, ne, key, Operand(a2)); |
- |
- __ lw(v0, MemOperand(a3, kPointerSize)); |
- __ Branch(&done); |
- |
- __ bind(¬_found); |
- // Call runtime to perform the lookup. |
- __ Push(cache, key); |
- __ CallRuntime(Runtime::kGetFromCacheRT, 2); |
- |
- __ bind(&done); |
- context()->Plug(v0); |
-} |
- |
- |
void FullCodeGenerator::EmitHasCachedArrayIndex(CallRuntime* expr) { |
ZoneList<Expression*>* args = expr->arguments(); |
VisitForAccumulatorValue(args->at(0)); |