| 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 |
| 585 void KeyedLoadIC::GenerateRuntimeGetProperty(MacroAssembler* masm) { | 592 void KeyedLoadIC::GenerateRuntimeGetProperty(MacroAssembler* masm) { |
| 586 // ---------- S t a t e -------------- | 593 // ---------- S t a t e -------------- |
| 587 // -- lr : return address | 594 // -- lr : return address |
| 588 // -- x0 : key | 595 // -- x0 : key |
| 589 // -- x1 : receiver | 596 // -- x1 : receiver |
| 590 // ----------------------------------- | 597 // ----------------------------------- |
| 591 Register key = x0; | 598 Register key = x0; |
| 592 Register receiver = x1; | 599 Register receiver = x1; |
| 593 | 600 |
| 594 __ Push(receiver, key); | 601 __ Push(receiver, key); |
| (...skipping 783 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1378 ASSERT(to_patch->Mask(TestBranchMask) == TBNZ); | 1385 ASSERT(to_patch->Mask(TestBranchMask) == TBNZ); |
| 1379 // This is JumpIfSmi(smi_reg, branch_imm). | 1386 // This is JumpIfSmi(smi_reg, branch_imm). |
| 1380 patcher.tbz(smi_reg, 0, branch_imm); | 1387 patcher.tbz(smi_reg, 0, branch_imm); |
| 1381 } | 1388 } |
| 1382 } | 1389 } |
| 1383 | 1390 |
| 1384 | 1391 |
| 1385 } } // namespace v8::internal | 1392 } } // namespace v8::internal |
| 1386 | 1393 |
| 1387 #endif // V8_TARGET_ARCH_ARM64 | 1394 #endif // V8_TARGET_ARCH_ARM64 |
| OLD | NEW |