OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |