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