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