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

Side by Side Diff: src/mips/builtins-mips.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/ic/x64/ic-x64.cc ('k') | src/mips64/builtins-mips64.cc » ('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_MIPS 9 #if V8_TARGET_ARCH_MIPS
10 10
(...skipping 1426 matching lines...) Expand 10 before | Expand all | Expand 10 after
1437 Register vector = LoadWithVectorDescriptor::VectorRegister(); 1437 Register vector = LoadWithVectorDescriptor::VectorRegister();
1438 1438
1439 __ lw(key, MemOperand(fp, indexOffset)); 1439 __ lw(key, MemOperand(fp, indexOffset));
1440 __ Branch(&entry); 1440 __ Branch(&entry);
1441 1441
1442 // Load the current argument from the arguments array. 1442 // Load the current argument from the arguments array.
1443 __ bind(&loop); 1443 __ bind(&loop);
1444 __ lw(receiver, MemOperand(fp, argumentsOffset)); 1444 __ lw(receiver, MemOperand(fp, argumentsOffset));
1445 1445
1446 // Use inline caching to speed up access to arguments. 1446 // Use inline caching to speed up access to arguments.
1447 FeedbackVectorSpec spec(0, Code::KEYED_LOAD_IC); 1447 Code::Kind kinds[] = {Code::KEYED_LOAD_IC};
1448 FeedbackVectorSpec spec(0, 1, kinds);
1448 Handle<TypeFeedbackVector> feedback_vector = 1449 Handle<TypeFeedbackVector> feedback_vector =
1449 masm->isolate()->factory()->NewTypeFeedbackVector(&spec); 1450 masm->isolate()->factory()->NewTypeFeedbackVector(&spec);
1450 int index = feedback_vector->GetIndex(FeedbackVectorICSlot(0)); 1451 int index = feedback_vector->GetIndex(FeedbackVectorICSlot(0));
1451 __ li(slot, Operand(Smi::FromInt(index))); 1452 __ li(slot, Operand(Smi::FromInt(index)));
1452 __ li(vector, feedback_vector); 1453 __ li(vector, feedback_vector);
1453 Handle<Code> ic = 1454 Handle<Code> ic =
1454 KeyedLoadICStub(masm->isolate(), LoadICState(kNoExtraICState)).GetCode(); 1455 KeyedLoadICStub(masm->isolate(), LoadICState(kNoExtraICState)).GetCode();
1455 __ Call(ic, RelocInfo::CODE_TARGET); 1456 __ Call(ic, RelocInfo::CODE_TARGET);
1456 1457
1457 __ push(v0); 1458 __ push(v0);
(...skipping 412 matching lines...) Expand 10 before | Expand all | Expand 10 after
1870 } 1871 }
1871 } 1872 }
1872 1873
1873 1874
1874 #undef __ 1875 #undef __
1875 1876
1876 } // namespace internal 1877 } // namespace internal
1877 } // namespace v8 1878 } // namespace v8
1878 1879
1879 #endif // V8_TARGET_ARCH_MIPS 1880 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « src/ic/x64/ic-x64.cc ('k') | src/mips64/builtins-mips64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698