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 const Register LoadIC::ReceiverRegister() { return x0; } |
| 587 const Register LoadIC::NameRegister() { return x2; } |
| 588 const Register KeyedLoadIC::ReceiverRegister() { return x1; } |
| 589 const Register KeyedLoadIC::NameRegister() { return x0; } |
| 590 |
| 591 |
| 592 const Register* KeyedLoadIC::AllocateRegisterArray() { |
| 593 Register* registers = new Register[kRegisterArgumentCount]; |
| 594 registers[0] = ReceiverRegister(); |
| 595 registers[1] = NameRegister(); |
| 596 return registers; |
| 597 } |
| 598 |
| 599 |
585 void KeyedLoadIC::GenerateRuntimeGetProperty(MacroAssembler* masm) { | 600 void KeyedLoadIC::GenerateRuntimeGetProperty(MacroAssembler* masm) { |
586 // ---------- S t a t e -------------- | 601 // ---------- S t a t e -------------- |
587 // -- lr : return address | 602 // -- lr : return address |
588 // -- x0 : key | 603 // -- x0 : key |
589 // -- x1 : receiver | 604 // -- x1 : receiver |
590 // ----------------------------------- | 605 // ----------------------------------- |
591 Register key = x0; | 606 Register key = x0; |
592 Register receiver = x1; | 607 Register receiver = x1; |
593 | 608 |
594 __ Push(receiver, key); | 609 __ Push(receiver, key); |
(...skipping 783 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1378 ASSERT(to_patch->Mask(TestBranchMask) == TBNZ); | 1393 ASSERT(to_patch->Mask(TestBranchMask) == TBNZ); |
1379 // This is JumpIfSmi(smi_reg, branch_imm). | 1394 // This is JumpIfSmi(smi_reg, branch_imm). |
1380 patcher.tbz(smi_reg, 0, branch_imm); | 1395 patcher.tbz(smi_reg, 0, branch_imm); |
1381 } | 1396 } |
1382 } | 1397 } |
1383 | 1398 |
1384 | 1399 |
1385 } } // namespace v8::internal | 1400 } } // namespace v8::internal |
1386 | 1401 |
1387 #endif // V8_TARGET_ARCH_ARM64 | 1402 #endif // V8_TARGET_ARCH_ARM64 |
OLD | NEW |