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

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

Issue 1191513003: [turbofan] Add CalleeSavedFPRegisters to CallDescriptor. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebased on bleeding_edge (af4c4b04). Created 5 years, 6 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
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/assembler.h" 5 #include "src/assembler.h"
6 #include "src/code-stubs.h" 6 #include "src/code-stubs.h"
7 #include "src/compiler/linkage.h" 7 #include "src/compiler/linkage.h"
8 #include "src/compiler/linkage-impl.h" 8 #include "src/compiler/linkage-impl.h"
9 #include "src/zone.h" 9 #include "src/zone.h"
10 10
11 namespace v8 { 11 namespace v8 {
12 namespace internal { 12 namespace internal {
13 namespace compiler { 13 namespace compiler {
14 14
15 struct MipsLinkageHelperTraits { 15 struct MipsLinkageHelperTraits {
16 static Register ReturnValueReg() { return v0; } 16 static Register ReturnValueReg() { return v0; }
17 static Register ReturnValue2Reg() { return v1; } 17 static Register ReturnValue2Reg() { return v1; }
18 static Register JSCallFunctionReg() { return a1; } 18 static Register JSCallFunctionReg() { return a1; }
19 static Register ContextReg() { return cp; } 19 static Register ContextReg() { return cp; }
20 static Register RuntimeCallFunctionReg() { return a1; } 20 static Register RuntimeCallFunctionReg() { return a1; }
21 static Register RuntimeCallArgCountReg() { return a0; } 21 static Register RuntimeCallArgCountReg() { return a0; }
22 static RegList CCalleeSaveRegisters() { 22 static RegList CCalleeSaveRegisters() {
23 return s0.bit() | s1.bit() | s2.bit() | s3.bit() | s4.bit() | s5.bit() | 23 return s0.bit() | s1.bit() | s2.bit() | s3.bit() | s4.bit() | s5.bit() |
24 s6.bit() | s7.bit(); 24 s6.bit() | s7.bit();
25 } 25 }
26 static RegList CCalleeSaveFPRegisters() {
27 return f20.bit() | f22.bit() | f24.bit() | f26.bit() | f28.bit() |
28 f30.bit();
29 }
26 static Register CRegisterParameter(int i) { 30 static Register CRegisterParameter(int i) {
27 static Register register_parameters[] = {a0, a1, a2, a3, a4, a5, a6, a7}; 31 static Register register_parameters[] = {a0, a1, a2, a3, a4, a5, a6, a7};
28 return register_parameters[i]; 32 return register_parameters[i];
29 } 33 }
30 static int CRegisterParametersLength() { return 8; } 34 static int CRegisterParametersLength() { return 8; }
31 static int CStackBackingStoreLength() { return 0; } 35 static int CStackBackingStoreLength() { return 0; }
32 }; 36 };
33 37
34 38
35 typedef LinkageHelper<MipsLinkageHelperTraits> LH; 39 typedef LinkageHelper<MipsLinkageHelperTraits> LH;
(...skipping 24 matching lines...) Expand all
60 64
61 65
62 CallDescriptor* Linkage::GetSimplifiedCDescriptor(Zone* zone, 66 CallDescriptor* Linkage::GetSimplifiedCDescriptor(Zone* zone,
63 const MachineSignature* sig) { 67 const MachineSignature* sig) {
64 return LH::GetSimplifiedCDescriptor(zone, sig); 68 return LH::GetSimplifiedCDescriptor(zone, sig);
65 } 69 }
66 70
67 } // namespace compiler 71 } // namespace compiler
68 } // namespace internal 72 } // namespace internal
69 } // namespace v8 73 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698