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

Side by Side Diff: src/ic/mips64/ic-conventions-mips64.cc

Issue 508673002: MIPS: Move register conventions out of the IC classes. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Fix nits. Created 6 years, 3 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/ic/mips64/ic-compiler-mips64.cc ('k') | src/ic/mips64/ic-mips64.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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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_IA32 7 #if V8_TARGET_ARCH_MIPS64
8 8
9 #include "src/codegen.h" 9 #include "src/codegen.h"
10 #include "src/ic/ic-conventions.h" 10 #include "src/ic/ic-conventions.h"
11 11
12 namespace v8 { 12 namespace v8 {
13 namespace internal { 13 namespace internal {
14 14
15 // IC register specifications 15 // IC register specifications
16 16 const Register LoadConvention::ReceiverRegister() { return a1; }
17 const Register LoadConvention::ReceiverRegister() { return edx; } 17 const Register LoadConvention::NameRegister() { return a2; }
18 const Register LoadConvention::NameRegister() { return ecx; }
19 18
20 19
21 const Register VectorLoadConvention::SlotRegister() { 20 const Register VectorLoadConvention::SlotRegister() {
22 DCHECK(FLAG_vector_ics); 21 DCHECK(FLAG_vector_ics);
23 return eax; 22 return a0;
24 } 23 }
25 24
26 25
27 const Register FullVectorLoadConvention::VectorRegister() { 26 const Register FullVectorLoadConvention::VectorRegister() {
28 DCHECK(FLAG_vector_ics); 27 DCHECK(FLAG_vector_ics);
29 return ebx; 28 return a3;
30 } 29 }
31 30
32 31
33 const Register StoreConvention::ReceiverRegister() { return edx; } 32 const Register StoreConvention::ReceiverRegister() { return a1; }
34 const Register StoreConvention::NameRegister() { return ecx; } 33 const Register StoreConvention::NameRegister() { return a2; }
35 const Register StoreConvention::ValueRegister() { return eax; } 34 const Register StoreConvention::ValueRegister() { return a0; }
36 const Register StoreConvention::MapRegister() { return ebx; } 35 const Register StoreConvention::MapRegister() { return a3; }
37 } 36 }
38 } // namespace v8::internal 37 } // namespace v8::internal
39 38
40 #endif // V8_TARGET_ARCH_IA32 39 #endif // V8_TARGET_ARCH_MIPS64
OLDNEW
« no previous file with comments | « src/ic/mips64/ic-compiler-mips64.cc ('k') | src/ic/mips64/ic-mips64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698