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/arm64/assembler-arm64.h" | 9 #include "src/arm64/assembler-arm64.h" |
10 #include "src/code-stubs.h" | 10 #include "src/code-stubs.h" |
(...skipping 564 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
575 __ Push(x1, x0); | 575 __ Push(x1, x0); |
576 | 576 |
577 // Perform tail call to the entry. | 577 // Perform tail call to the entry. |
578 ExternalReference ref = | 578 ExternalReference ref = |
579 ExternalReference(IC_Utility(kKeyedLoadIC_Miss), isolate); | 579 ExternalReference(IC_Utility(kKeyedLoadIC_Miss), isolate); |
580 | 580 |
581 __ TailCallExternalReference(ref, 2, 1); | 581 __ TailCallExternalReference(ref, 2, 1); |
582 } | 582 } |
583 | 583 |
584 | 584 |
| 585 // IC register specifications |
| 586 Register LoadIC::kReceiverRegister = x0; |
| 587 Register LoadIC::kNameRegister = x2; |
| 588 const Register LoadIC::registers[] = { kReceiverRegister, kNameRegister }; |
| 589 |
| 590 |
| 591 Register KeyedLoadIC::kReceiverRegister = x1; |
| 592 Register KeyedLoadIC::kNameRegister = x0; |
| 593 const Register KeyedLoadIC::registers[] = { kReceiverRegister, kNameRegister }; |
| 594 |
| 595 |
585 void KeyedLoadIC::GenerateRuntimeGetProperty(MacroAssembler* masm) { | 596 void KeyedLoadIC::GenerateRuntimeGetProperty(MacroAssembler* masm) { |
586 // ---------- S t a t e -------------- | 597 // ---------- S t a t e -------------- |
587 // -- lr : return address | 598 // -- lr : return address |
588 // -- x0 : key | 599 // -- x0 : key |
589 // -- x1 : receiver | 600 // -- x1 : receiver |
590 // ----------------------------------- | 601 // ----------------------------------- |
591 Register key = x0; | 602 Register key = x0; |
592 Register receiver = x1; | 603 Register receiver = x1; |
593 | 604 |
594 __ Push(receiver, key); | 605 __ Push(receiver, key); |
(...skipping 783 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1378 ASSERT(to_patch->Mask(TestBranchMask) == TBNZ); | 1389 ASSERT(to_patch->Mask(TestBranchMask) == TBNZ); |
1379 // This is JumpIfSmi(smi_reg, branch_imm). | 1390 // This is JumpIfSmi(smi_reg, branch_imm). |
1380 patcher.tbz(smi_reg, 0, branch_imm); | 1391 patcher.tbz(smi_reg, 0, branch_imm); |
1381 } | 1392 } |
1382 } | 1393 } |
1383 | 1394 |
1384 | 1395 |
1385 } } // namespace v8::internal | 1396 } } // namespace v8::internal |
1386 | 1397 |
1387 #endif // V8_TARGET_ARCH_ARM64 | 1398 #endif // V8_TARGET_ARCH_ARM64 |
OLD | NEW |