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

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

Issue 340363002: The IC should define its input registers (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Added mips and x87 port. 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/code-stubs-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 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
563 void KeyedLoadIC::GenerateRuntimeGetProperty(MacroAssembler* masm) { 574 void KeyedLoadIC::GenerateRuntimeGetProperty(MacroAssembler* masm) {
564 // ---------- S t a t e -------------- 575 // ---------- S t a t e --------------
565 // -- ra : return address 576 // -- ra : return address
566 // -- a0 : key 577 // -- a0 : key
567 // -- a1 : receiver 578 // -- a1 : receiver
568 // ----------------------------------- 579 // -----------------------------------
569 580
570 __ Push(a1, a0); 581 __ Push(a1, a0);
571 582
572 __ TailCallRuntime(Runtime::kKeyedGetProperty, 2, 1); 583 __ TailCallRuntime(Runtime::kKeyedGetProperty, 2, 1);
(...skipping 758 matching lines...) Expand 10 before | Expand all | Expand 10 after
1331 } else { 1342 } else {
1332 ASSERT(Assembler::IsBne(branch_instr)); 1343 ASSERT(Assembler::IsBne(branch_instr));
1333 patcher.ChangeBranchCondition(eq); 1344 patcher.ChangeBranchCondition(eq);
1334 } 1345 }
1335 } 1346 }
1336 1347
1337 1348
1338 } } // namespace v8::internal 1349 } } // namespace v8::internal
1339 1350
1340 #endif // V8_TARGET_ARCH_MIPS 1351 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « src/mips/code-stubs-mips.cc ('k') | src/mips/stub-cache-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698