Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(78)

Side by Side Diff: src/mips/ic-mips.cc

Issue 354863002: MIPS: The IC exposes a register definition. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/mips/deoptimizer-mips.cc ('k') | src/mips/stub-cache-mips.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 const Register LoadIC::ReceiverRegister() { return a0; }
565 const Register LoadIC::NameRegister() { return a2; }
566 const Register KeyedLoadIC::ReceiverRegister() { return a1; }
567 const Register KeyedLoadIC::NameRegister() { return a0; }
568
569
563 void KeyedLoadIC::GenerateRuntimeGetProperty(MacroAssembler* masm) { 570 void KeyedLoadIC::GenerateRuntimeGetProperty(MacroAssembler* masm) {
564 // ---------- S t a t e -------------- 571 // ---------- S t a t e --------------
565 // -- ra : return address 572 // -- ra : return address
566 // -- a0 : key 573 // -- a0 : key
567 // -- a1 : receiver 574 // -- a1 : receiver
568 // ----------------------------------- 575 // -----------------------------------
569 576
570 __ Push(a1, a0); 577 __ Push(a1, a0);
571 578
572 __ TailCallRuntime(Runtime::kKeyedGetProperty, 2, 1); 579 __ TailCallRuntime(Runtime::kKeyedGetProperty, 2, 1);
(...skipping 758 matching lines...) Expand 10 before | Expand all | Expand 10 after
1331 } else { 1338 } else {
1332 ASSERT(Assembler::IsBne(branch_instr)); 1339 ASSERT(Assembler::IsBne(branch_instr));
1333 patcher.ChangeBranchCondition(eq); 1340 patcher.ChangeBranchCondition(eq);
1334 } 1341 }
1335 } 1342 }
1336 1343
1337 1344
1338 } } // namespace v8::internal 1345 } } // namespace v8::internal
1339 1346
1340 #endif // V8_TARGET_ARCH_MIPS 1347 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « src/mips/deoptimizer-mips.cc ('k') | src/mips/stub-cache-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698