OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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_ARM | 7 #if V8_TARGET_ARCH_ARM |
8 | 8 |
9 #include "src/arm/assembler-arm.h" | 9 #include "src/arm/assembler-arm.h" |
10 #include "src/code-stubs.h" | 10 #include "src/code-stubs.h" |
(...skipping 527 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
538 __ Push(r1, r0); | 538 __ Push(r1, r0); |
539 | 539 |
540 // Perform tail call to the entry. | 540 // Perform tail call to the entry. |
541 ExternalReference ref = | 541 ExternalReference ref = |
542 ExternalReference(IC_Utility(kKeyedLoadIC_Miss), isolate); | 542 ExternalReference(IC_Utility(kKeyedLoadIC_Miss), isolate); |
543 | 543 |
544 __ TailCallExternalReference(ref, 2, 1); | 544 __ TailCallExternalReference(ref, 2, 1); |
545 } | 545 } |
546 | 546 |
547 | 547 |
| 548 // IC register specifications |
| 549 const Register LoadIC::ReceiverRegister() { return r0; } |
| 550 const Register LoadIC::NameRegister() { return r2; } |
| 551 const Register KeyedLoadIC::ReceiverRegister() { return r1; } |
| 552 const Register KeyedLoadIC::NameRegister() { return r0; } |
| 553 |
| 554 |
| 555 const Register* KeyedLoadIC::AllocateRegisterArray() { |
| 556 Register* registers = new Register[kRegisterArgumentCount]; |
| 557 registers[0] = ReceiverRegister(); |
| 558 registers[1] = NameRegister(); |
| 559 return registers; |
| 560 } |
| 561 |
| 562 |
548 void KeyedLoadIC::GenerateRuntimeGetProperty(MacroAssembler* masm) { | 563 void KeyedLoadIC::GenerateRuntimeGetProperty(MacroAssembler* masm) { |
549 // ---------- S t a t e -------------- | 564 // ---------- S t a t e -------------- |
550 // -- lr : return address | 565 // -- lr : return address |
551 // -- r0 : key | 566 // -- r0 : key |
552 // -- r1 : receiver | 567 // -- r1 : receiver |
553 // ----------------------------------- | 568 // ----------------------------------- |
554 | 569 |
555 __ Push(r1, r0); | 570 __ Push(r1, r0); |
556 | 571 |
557 __ TailCallRuntime(Runtime::kKeyedGetProperty, 2, 1); | 572 __ TailCallRuntime(Runtime::kKeyedGetProperty, 2, 1); |
(...skipping 754 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1312 } else { | 1327 } else { |
1313 ASSERT(Assembler::GetCondition(branch_instr) == ne); | 1328 ASSERT(Assembler::GetCondition(branch_instr) == ne); |
1314 patcher.EmitCondition(eq); | 1329 patcher.EmitCondition(eq); |
1315 } | 1330 } |
1316 } | 1331 } |
1317 | 1332 |
1318 | 1333 |
1319 } } // namespace v8::internal | 1334 } } // namespace v8::internal |
1320 | 1335 |
1321 #endif // V8_TARGET_ARCH_ARM | 1336 #endif // V8_TARGET_ARCH_ARM |
OLD | NEW |