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

Side by Side Diff: src/compiler/arm/linkage-arm.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, 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
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 ArmLinkageHelperTraits { 15 struct ArmLinkageHelperTraits {
16 static Register ReturnValueReg() { return r0; } 16 static Register ReturnValueReg() { return r0; }
17 static Register ReturnValue2Reg() { return r1; } 17 static Register ReturnValue2Reg() { return r1; }
18 static Register JSCallFunctionReg() { return r1; } 18 static Register JSCallFunctionReg() { return r1; }
19 static Register ContextReg() { return cp; } 19 static Register ContextReg() { return cp; }
20 static Register RuntimeCallFunctionReg() { return r1; } 20 static Register RuntimeCallFunctionReg() { return r1; }
21 static Register RuntimeCallArgCountReg() { return r0; } 21 static Register RuntimeCallArgCountReg() { return r0; }
22 static RegList CCalleeSaveRegisters() { 22 static RegList CCalleeSaveRegisters() {
23 return r4.bit() | r5.bit() | r6.bit() | r7.bit() | r8.bit() | r9.bit() | 23 return r4.bit() | r5.bit() | r6.bit() | r7.bit() | r8.bit() | r9.bit() |
24 r10.bit(); 24 r10.bit();
25 } 25 }
26 static RegList CCalleeSaveFPRegisters() {
27 return (1 << d8.code()) | (1 << d9.code()) | (1 << d10.code()) |
28 (1 << d11.code()) | (1 << d12.code()) | (1 << d13.code()) |
29 (1 << d14.code()) | (1 << d15.code());
30 }
26 static Register CRegisterParameter(int i) { 31 static Register CRegisterParameter(int i) {
27 static Register register_parameters[] = {r0, r1, r2, r3}; 32 static Register register_parameters[] = {r0, r1, r2, r3};
28 return register_parameters[i]; 33 return register_parameters[i];
29 } 34 }
30 static int CRegisterParametersLength() { return 4; } 35 static int CRegisterParametersLength() { return 4; }
31 static int CStackBackingStoreLength() { return 0; } 36 static int CStackBackingStoreLength() { return 0; }
32 }; 37 };
33 38
34 39
35 typedef LinkageHelper<ArmLinkageHelperTraits> LH; 40 typedef LinkageHelper<ArmLinkageHelperTraits> LH;
(...skipping 24 matching lines...) Expand all
60 65
61 66
62 CallDescriptor* Linkage::GetSimplifiedCDescriptor(Zone* zone, 67 CallDescriptor* Linkage::GetSimplifiedCDescriptor(Zone* zone,
63 const MachineSignature* sig) { 68 const MachineSignature* sig) {
64 return LH::GetSimplifiedCDescriptor(zone, sig); 69 return LH::GetSimplifiedCDescriptor(zone, sig);
65 } 70 }
66 71
67 } // namespace compiler 72 } // namespace compiler
68 } // namespace internal 73 } // namespace internal
69 } // namespace v8 74 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698