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

Side by Side Diff: src/compiler/mips64/linkage-mips64.cc

Issue 732403002: MIPS64: Add turbofan support for mips64. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Addressed comments and code cleanup. Created 6 years, 1 month 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
« no previous file with comments | « src/compiler/mips64/instruction-selector-mips64.cc ('k') | src/globals.h » ('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 #include "src/assembler.h" 7 #include "src/assembler.h"
8 #include "src/code-stubs.h" 8 #include "src/code-stubs.h"
9 #include "src/compiler/linkage.h" 9 #include "src/compiler/linkage.h"
10 #include "src/compiler/linkage-impl.h" 10 #include "src/compiler/linkage-impl.h"
11 #include "src/zone.h" 11 #include "src/zone.h"
12 12
13 namespace v8 { 13 namespace v8 {
14 namespace internal { 14 namespace internal {
15 namespace compiler { 15 namespace compiler {
16 16
17 struct MipsLinkageHelperTraits { 17 struct MipsLinkageHelperTraits {
18 static Register ReturnValueReg() { return v0; } 18 static Register ReturnValueReg() { return v0; }
19 static Register ReturnValue2Reg() { return v1; } 19 static Register ReturnValue2Reg() { return v1; }
20 static Register JSCallFunctionReg() { return a1; } 20 static Register JSCallFunctionReg() { return a1; }
21 static Register ContextReg() { return cp; } 21 static Register ContextReg() { return cp; }
22 static Register RuntimeCallFunctionReg() { return a1; } 22 static Register RuntimeCallFunctionReg() { return a1; }
23 static Register RuntimeCallArgCountReg() { return a0; } 23 static Register RuntimeCallArgCountReg() { return a0; }
24 static RegList CCalleeSaveRegisters() { 24 static RegList CCalleeSaveRegisters() {
25 return s0.bit() | s1.bit() | s2.bit() | s3.bit() | s4.bit() | s5.bit() | 25 return s0.bit() | s1.bit() | s2.bit() | s3.bit() | s4.bit() | s5.bit() |
26 s6.bit() | s7.bit(); 26 s6.bit() | s7.bit();
27 } 27 }
28 static Register CRegisterParameter(int i) { 28 static Register CRegisterParameter(int i) {
29 static Register register_parameters[] = {a0, a1, a2, a3}; 29 static Register register_parameters[] = {a0, a1, a2, a3, a4, a5, a6, a7};
30 return register_parameters[i]; 30 return register_parameters[i];
31 } 31 }
32 static int CRegisterParametersLength() { return 4; } 32 static int CRegisterParametersLength() { return 8; }
33 }; 33 };
34 34
35 35
36 typedef LinkageHelper<MipsLinkageHelperTraits> LH; 36 typedef LinkageHelper<MipsLinkageHelperTraits> LH;
37 37
38 CallDescriptor* Linkage::GetJSCallDescriptor(int parameter_count, Zone* zone, 38 CallDescriptor* Linkage::GetJSCallDescriptor(int parameter_count, Zone* zone,
39 CallDescriptor::Flags flags) { 39 CallDescriptor::Flags flags) {
40 return LH::GetJSCallDescriptor(zone, parameter_count, flags); 40 return LH::GetJSCallDescriptor(zone, parameter_count, flags);
41 } 41 }
42 42
(...skipping 15 matching lines...) Expand all
58 58
59 59
60 CallDescriptor* Linkage::GetSimplifiedCDescriptor(Zone* zone, 60 CallDescriptor* Linkage::GetSimplifiedCDescriptor(Zone* zone,
61 MachineSignature* sig) { 61 MachineSignature* sig) {
62 return LH::GetSimplifiedCDescriptor(zone, sig); 62 return LH::GetSimplifiedCDescriptor(zone, sig);
63 } 63 }
64 64
65 } // namespace compiler 65 } // namespace compiler
66 } // namespace internal 66 } // namespace internal
67 } // namespace v8 67 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/mips64/instruction-selector-mips64.cc ('k') | src/globals.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698