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.h" | 10 #include "src/debug.h" |
(...skipping 1380 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1391 __ Bind(&loop); | 1391 __ Bind(&loop); |
1392 __ Ldr(receiver, MemOperand(fp, argumentsOffset)); | 1392 __ Ldr(receiver, MemOperand(fp, argumentsOffset)); |
1393 | 1393 |
1394 // Use inline caching to speed up access to arguments. | 1394 // Use inline caching to speed up access to arguments. |
1395 FeedbackVectorSpec spec(0, Code::KEYED_LOAD_IC); | 1395 FeedbackVectorSpec spec(0, Code::KEYED_LOAD_IC); |
1396 Handle<TypeFeedbackVector> feedback_vector = | 1396 Handle<TypeFeedbackVector> feedback_vector = |
1397 masm->isolate()->factory()->NewTypeFeedbackVector(&spec); | 1397 masm->isolate()->factory()->NewTypeFeedbackVector(&spec); |
1398 int index = feedback_vector->GetIndex(FeedbackVectorICSlot(0)); | 1398 int index = feedback_vector->GetIndex(FeedbackVectorICSlot(0)); |
1399 __ Mov(slot, Smi::FromInt(index)); | 1399 __ Mov(slot, Smi::FromInt(index)); |
1400 __ Mov(vector, feedback_vector); | 1400 __ Mov(vector, feedback_vector); |
1401 Handle<Code> ic = KeyedLoadICStub(masm->isolate()).GetCode(); | 1401 Handle<Code> ic = |
| 1402 KeyedLoadICStub(masm->isolate(), LoadICState(kNoExtraICState)).GetCode(); |
1402 __ Call(ic, RelocInfo::CODE_TARGET); | 1403 __ Call(ic, RelocInfo::CODE_TARGET); |
1403 | 1404 |
1404 // Push the nth argument. | 1405 // Push the nth argument. |
1405 __ Push(x0); | 1406 __ Push(x0); |
1406 | 1407 |
1407 __ Ldr(key, MemOperand(fp, indexOffset)); | 1408 __ Ldr(key, MemOperand(fp, indexOffset)); |
1408 __ Add(key, key, Smi::FromInt(1)); | 1409 __ Add(key, key, Smi::FromInt(1)); |
1409 __ Str(key, MemOperand(fp, indexOffset)); | 1410 __ Str(key, MemOperand(fp, indexOffset)); |
1410 | 1411 |
1411 // Test if the copy loop has finished copying all the elements from the | 1412 // Test if the copy loop has finished copying all the elements from the |
(...skipping 421 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1833 } | 1834 } |
1834 } | 1835 } |
1835 | 1836 |
1836 | 1837 |
1837 #undef __ | 1838 #undef __ |
1838 | 1839 |
1839 } // namespace internal | 1840 } // namespace internal |
1840 } // namespace v8 | 1841 } // namespace v8 |
1841 | 1842 |
1842 #endif // V8_TARGET_ARCH_ARM | 1843 #endif // V8_TARGET_ARCH_ARM |
OLD | NEW |