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 | 5 |
6 | 6 |
7 #include "src/v8.h" | 7 #include "src/v8.h" |
8 | 8 |
9 #if V8_TARGET_ARCH_MIPS | 9 #if V8_TARGET_ARCH_MIPS |
10 | 10 |
(...skipping 542 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
553 __ Push(a1, a0); | 553 __ Push(a1, a0); |
554 | 554 |
555 // Perform tail call to the entry. | 555 // Perform tail call to the entry. |
556 ExternalReference ref = | 556 ExternalReference ref = |
557 ExternalReference(IC_Utility(kKeyedLoadIC_Miss), isolate); | 557 ExternalReference(IC_Utility(kKeyedLoadIC_Miss), isolate); |
558 | 558 |
559 __ TailCallExternalReference(ref, 2, 1); | 559 __ TailCallExternalReference(ref, 2, 1); |
560 } | 560 } |
561 | 561 |
562 | 562 |
563 // IC register specifications | |
564 Register LoadIC::kReceiverRegister = a0; | |
565 Register LoadIC::kNameRegister = a2; | |
566 const Register LoadIC::registers[] = { kReceiverRegister, kNameRegister }; | |
567 | |
568 | |
569 Register KeyedLoadIC::kReceiverRegister = a1; | |
570 Register KeyedLoadIC::kNameRegister = a0; | |
571 const Register KeyedLoadIC::registers[] = { kReceiverRegister, kNameRegister }; | |
572 | |
573 | |
574 void KeyedLoadIC::GenerateRuntimeGetProperty(MacroAssembler* masm) { | 563 void KeyedLoadIC::GenerateRuntimeGetProperty(MacroAssembler* masm) { |
575 // ---------- S t a t e -------------- | 564 // ---------- S t a t e -------------- |
576 // -- ra : return address | 565 // -- ra : return address |
577 // -- a0 : key | 566 // -- a0 : key |
578 // -- a1 : receiver | 567 // -- a1 : receiver |
579 // ----------------------------------- | 568 // ----------------------------------- |
580 | 569 |
581 __ Push(a1, a0); | 570 __ Push(a1, a0); |
582 | 571 |
583 __ TailCallRuntime(Runtime::kKeyedGetProperty, 2, 1); | 572 __ TailCallRuntime(Runtime::kKeyedGetProperty, 2, 1); |
(...skipping 758 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1342 } else { | 1331 } else { |
1343 ASSERT(Assembler::IsBne(branch_instr)); | 1332 ASSERT(Assembler::IsBne(branch_instr)); |
1344 patcher.ChangeBranchCondition(eq); | 1333 patcher.ChangeBranchCondition(eq); |
1345 } | 1334 } |
1346 } | 1335 } |
1347 | 1336 |
1348 | 1337 |
1349 } } // namespace v8::internal | 1338 } } // namespace v8::internal |
1350 | 1339 |
1351 #endif // V8_TARGET_ARCH_MIPS | 1340 #endif // V8_TARGET_ARCH_MIPS |
OLD | NEW |