Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(880)

Unified Diff: src/full-codegen/ppc/full-codegen-ppc.cc

Issue 1267493006: Remove JSFunctionResultCache. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: rebase Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/full-codegen/mips64/full-codegen-mips64.cc ('k') | src/full-codegen/x64/full-codegen-x64.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/full-codegen/ppc/full-codegen-ppc.cc
diff --git a/src/full-codegen/ppc/full-codegen-ppc.cc b/src/full-codegen/ppc/full-codegen-ppc.cc
index 9c5c8f32dbe62dbde725dfbd6136e4d80f76bb24..35cb05124f38190493da2bcdaa7a9ac8e53b4c21 100644
--- a/src/full-codegen/ppc/full-codegen-ppc.cc
+++ b/src/full-codegen/ppc/full-codegen-ppc.cc
@@ -4286,56 +4286,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(r3, Heap::kUndefinedValueRootIndex);
- context()->Plug(r3);
- return;
- }
-
- VisitForAccumulatorValue(args->at(1));
-
- Register key = r3;
- Register cache = r4;
- __ LoadP(cache, ContextOperand(cp, Context::GLOBAL_OBJECT_INDEX));
- __ LoadP(cache, FieldMemOperand(cache, GlobalObject::kNativeContextOffset));
- __ LoadP(cache,
- ContextOperand(cache, Context::JSFUNCTION_RESULT_CACHES_INDEX));
- __ LoadP(cache,
- FieldMemOperand(cache, FixedArray::OffsetOfElementAt(cache_id)), r0);
-
- Label done, not_found;
- __ LoadP(r5, FieldMemOperand(cache, JSFunctionResultCache::kFingerOffset));
- // r5 now holds finger offset as a smi.
- __ addi(r6, cache, Operand(FixedArray::kHeaderSize - kHeapObjectTag));
- // r6 now points to the start of fixed array elements.
- __ SmiToPtrArrayOffset(r5, r5);
- __ LoadPUX(r5, MemOperand(r6, r5));
- // r6 now points to the key of the pair.
- __ cmp(key, r5);
- __ bne(&not_found);
-
- __ LoadP(r3, MemOperand(r6, kPointerSize));
- __ b(&done);
-
- __ bind(&not_found);
- // Call runtime to perform the lookup.
- __ Push(cache, key);
- __ CallRuntime(Runtime::kGetFromCacheRT, 2);
-
- __ bind(&done);
- context()->Plug(r3);
-}
-
-
void FullCodeGenerator::EmitHasCachedArrayIndex(CallRuntime* expr) {
ZoneList<Expression*>* args = expr->arguments();
VisitForAccumulatorValue(args->at(0));
« no previous file with comments | « src/full-codegen/mips64/full-codegen-mips64.cc ('k') | src/full-codegen/x64/full-codegen-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698