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 1405 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1416 __ Bind(&loop); | 1416 __ Bind(&loop); |
1417 __ Ldr(receiver, MemOperand(fp, argumentsOffset)); | 1417 __ Ldr(receiver, MemOperand(fp, argumentsOffset)); |
1418 | 1418 |
1419 // Use inline caching to speed up access to arguments. | 1419 // Use inline caching to speed up access to arguments. |
1420 FeedbackVectorSpec spec(0, Code::KEYED_LOAD_IC); | 1420 FeedbackVectorSpec spec(0, Code::KEYED_LOAD_IC); |
1421 Handle<TypeFeedbackVector> feedback_vector = | 1421 Handle<TypeFeedbackVector> feedback_vector = |
1422 masm->isolate()->factory()->NewTypeFeedbackVector(&spec); | 1422 masm->isolate()->factory()->NewTypeFeedbackVector(&spec); |
1423 int index = feedback_vector->GetIndex(FeedbackVectorICSlot(0)); | 1423 int index = feedback_vector->GetIndex(FeedbackVectorICSlot(0)); |
1424 __ Mov(slot, Smi::FromInt(index)); | 1424 __ Mov(slot, Smi::FromInt(index)); |
1425 __ Mov(vector, feedback_vector); | 1425 __ Mov(vector, feedback_vector); |
1426 Handle<Code> ic = KeyedLoadICStub(masm->isolate()).GetCode(); | 1426 Handle<Code> ic = |
| 1427 KeyedLoadICStub(masm->isolate(), LoadICState(kNoExtraICState)).GetCode(); |
1427 __ Call(ic, RelocInfo::CODE_TARGET); | 1428 __ Call(ic, RelocInfo::CODE_TARGET); |
1428 | 1429 |
1429 // Push the nth argument. | 1430 // Push the nth argument. |
1430 __ Push(x0); | 1431 __ Push(x0); |
1431 | 1432 |
1432 __ Ldr(key, MemOperand(fp, indexOffset)); | 1433 __ Ldr(key, MemOperand(fp, indexOffset)); |
1433 __ Add(key, key, Smi::FromInt(1)); | 1434 __ Add(key, key, Smi::FromInt(1)); |
1434 __ Str(key, MemOperand(fp, indexOffset)); | 1435 __ Str(key, MemOperand(fp, indexOffset)); |
1435 | 1436 |
1436 // Test if the copy loop has finished copying all the elements from the | 1437 // 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... |
1858 } | 1859 } |
1859 } | 1860 } |
1860 | 1861 |
1861 | 1862 |
1862 #undef __ | 1863 #undef __ |
1863 | 1864 |
1864 } // namespace internal | 1865 } // namespace internal |
1865 } // namespace v8 | 1866 } // namespace v8 |
1866 | 1867 |
1867 #endif // V8_TARGET_ARCH_ARM | 1868 #endif // V8_TARGET_ARCH_ARM |
OLD | NEW |