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 Register LoadIC::kReceiverRegister = r0; |
| 550 Register LoadIC::kNameRegister = r2; |
| 551 const Register LoadIC::registers[] = { kReceiverRegister, kNameRegister }; |
| 552 |
| 553 |
| 554 Register KeyedLoadIC::kReceiverRegister = r1; |
| 555 Register KeyedLoadIC::kNameRegister = r0; |
| 556 const Register KeyedLoadIC::registers[] = { kReceiverRegister, kNameRegister }; |
| 557 |
| 558 |
548 void KeyedLoadIC::GenerateRuntimeGetProperty(MacroAssembler* masm) { | 559 void KeyedLoadIC::GenerateRuntimeGetProperty(MacroAssembler* masm) { |
549 // ---------- S t a t e -------------- | 560 // ---------- S t a t e -------------- |
550 // -- lr : return address | 561 // -- lr : return address |
551 // -- r0 : key | 562 // -- r0 : key |
552 // -- r1 : receiver | 563 // -- r1 : receiver |
553 // ----------------------------------- | 564 // ----------------------------------- |
554 | 565 |
555 __ Push(r1, r0); | 566 __ Push(r1, r0); |
556 | 567 |
557 __ TailCallRuntime(Runtime::kKeyedGetProperty, 2, 1); | 568 __ TailCallRuntime(Runtime::kKeyedGetProperty, 2, 1); |
(...skipping 754 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1312 } else { | 1323 } else { |
1313 ASSERT(Assembler::GetCondition(branch_instr) == ne); | 1324 ASSERT(Assembler::GetCondition(branch_instr) == ne); |
1314 patcher.EmitCondition(eq); | 1325 patcher.EmitCondition(eq); |
1315 } | 1326 } |
1316 } | 1327 } |
1317 | 1328 |
1318 | 1329 |
1319 } } // namespace v8::internal | 1330 } } // namespace v8::internal |
1320 | 1331 |
1321 #endif // V8_TARGET_ARCH_ARM | 1332 #endif // V8_TARGET_ARCH_ARM |
OLD | NEW |