OLD | NEW |
1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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 #include "src/v8.h" | 5 #include "src/v8.h" |
6 | 6 |
7 #if V8_TARGET_ARCH_ARM64 | 7 #if V8_TARGET_ARCH_ARM64 |
8 | 8 |
9 #include "src/codegen.h" | 9 #include "src/codegen.h" |
10 #include "src/debug/debug.h" | 10 #include "src/debug/debug.h" |
(...skipping 1463 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1474 Register vector = LoadWithVectorDescriptor::VectorRegister(); | 1474 Register vector = LoadWithVectorDescriptor::VectorRegister(); |
1475 | 1475 |
1476 __ Ldr(key, MemOperand(fp, indexOffset)); | 1476 __ Ldr(key, MemOperand(fp, indexOffset)); |
1477 __ B(&entry); | 1477 __ B(&entry); |
1478 | 1478 |
1479 // Load the current argument from the arguments array. | 1479 // Load the current argument from the arguments array. |
1480 __ Bind(&loop); | 1480 __ Bind(&loop); |
1481 __ Ldr(receiver, MemOperand(fp, argumentsOffset)); | 1481 __ Ldr(receiver, MemOperand(fp, argumentsOffset)); |
1482 | 1482 |
1483 // Use inline caching to speed up access to arguments. | 1483 // Use inline caching to speed up access to arguments. |
1484 FeedbackVectorSpec spec(0, Code::KEYED_LOAD_IC); | 1484 Code::Kind kinds[] = {Code::KEYED_LOAD_IC}; |
| 1485 FeedbackVectorSpec spec(0, 1, kinds); |
1485 Handle<TypeFeedbackVector> feedback_vector = | 1486 Handle<TypeFeedbackVector> feedback_vector = |
1486 masm->isolate()->factory()->NewTypeFeedbackVector(&spec); | 1487 masm->isolate()->factory()->NewTypeFeedbackVector(&spec); |
1487 int index = feedback_vector->GetIndex(FeedbackVectorICSlot(0)); | 1488 int index = feedback_vector->GetIndex(FeedbackVectorICSlot(0)); |
1488 __ Mov(slot, Smi::FromInt(index)); | 1489 __ Mov(slot, Smi::FromInt(index)); |
1489 __ Mov(vector, feedback_vector); | 1490 __ Mov(vector, feedback_vector); |
1490 Handle<Code> ic = | 1491 Handle<Code> ic = |
1491 KeyedLoadICStub(masm->isolate(), LoadICState(kNoExtraICState)).GetCode(); | 1492 KeyedLoadICStub(masm->isolate(), LoadICState(kNoExtraICState)).GetCode(); |
1492 __ Call(ic, RelocInfo::CODE_TARGET); | 1493 __ Call(ic, RelocInfo::CODE_TARGET); |
1493 | 1494 |
1494 // Push the nth argument. | 1495 // Push the nth argument. |
(...skipping 428 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1923 } | 1924 } |
1924 } | 1925 } |
1925 | 1926 |
1926 | 1927 |
1927 #undef __ | 1928 #undef __ |
1928 | 1929 |
1929 } // namespace internal | 1930 } // namespace internal |
1930 } // namespace v8 | 1931 } // namespace v8 |
1931 | 1932 |
1932 #endif // V8_TARGET_ARCH_ARM | 1933 #endif // V8_TARGET_ARCH_ARM |
OLD | NEW |