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

Side by Side Diff: src/mips64/builtins-mips64.cc

Issue 1268783004: VectorICs: refactoring to eliminate "for queries only" vector ic mode. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix compilation error. 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 unified diff | Download patch
« no previous file with comments | « src/mips/builtins-mips.cc ('k') | src/type-feedback-vector.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 5
6 6
7 #include "src/v8.h" 7 #include "src/v8.h"
8 8
9 #if V8_TARGET_ARCH_MIPS64 9 #if V8_TARGET_ARCH_MIPS64
10 10
(...skipping 1422 matching lines...) Expand 10 before | Expand all | Expand 10 after
1433 Register vector = LoadWithVectorDescriptor::VectorRegister(); 1433 Register vector = LoadWithVectorDescriptor::VectorRegister();
1434 1434
1435 __ ld(key, MemOperand(fp, indexOffset)); 1435 __ ld(key, MemOperand(fp, indexOffset));
1436 __ Branch(&entry); 1436 __ Branch(&entry);
1437 1437
1438 // Load the current argument from the arguments array. 1438 // Load the current argument from the arguments array.
1439 __ bind(&loop); 1439 __ bind(&loop);
1440 __ ld(receiver, MemOperand(fp, argumentsOffset)); 1440 __ ld(receiver, MemOperand(fp, argumentsOffset));
1441 1441
1442 // Use inline caching to speed up access to arguments. 1442 // Use inline caching to speed up access to arguments.
1443 FeedbackVectorSpec spec(0, Code::KEYED_LOAD_IC); 1443 Code::Kind kinds[] = {Code::KEYED_LOAD_IC};
1444 FeedbackVectorSpec spec(0, 1, kinds);
1444 Handle<TypeFeedbackVector> feedback_vector = 1445 Handle<TypeFeedbackVector> feedback_vector =
1445 masm->isolate()->factory()->NewTypeFeedbackVector(&spec); 1446 masm->isolate()->factory()->NewTypeFeedbackVector(&spec);
1446 int index = feedback_vector->GetIndex(FeedbackVectorICSlot(0)); 1447 int index = feedback_vector->GetIndex(FeedbackVectorICSlot(0));
1447 __ li(slot, Operand(Smi::FromInt(index))); 1448 __ li(slot, Operand(Smi::FromInt(index)));
1448 __ li(vector, feedback_vector); 1449 __ li(vector, feedback_vector);
1449 Handle<Code> ic = 1450 Handle<Code> ic =
1450 KeyedLoadICStub(masm->isolate(), LoadICState(kNoExtraICState)).GetCode(); 1451 KeyedLoadICStub(masm->isolate(), LoadICState(kNoExtraICState)).GetCode();
1451 __ Call(ic, RelocInfo::CODE_TARGET); 1452 __ Call(ic, RelocInfo::CODE_TARGET);
1452 1453
1453 __ push(v0); 1454 __ push(v0);
(...skipping 414 matching lines...) Expand 10 before | Expand all | Expand 10 after
1868 } 1869 }
1869 } 1870 }
1870 1871
1871 1872
1872 #undef __ 1873 #undef __
1873 1874
1874 } // namespace internal 1875 } // namespace internal
1875 } // namespace v8 1876 } // namespace v8
1876 1877
1877 #endif // V8_TARGET_ARCH_MIPS64 1878 #endif // V8_TARGET_ARCH_MIPS64
OLDNEW
« no previous file with comments | « src/mips/builtins-mips.cc ('k') | src/type-feedback-vector.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698