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

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

Issue 1206343002: PPC: [turbofan] Add basic support for calling to (a subset of) C functions. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: 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
« no previous file with comments | « src/compiler/ppc/instruction-selector-ppc.cc ('k') | no next file » | 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/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
(...skipping 12 matching lines...) Expand all
23 return r14.bit() | r15.bit() | r16.bit() | r17.bit() | r18.bit() | 23 return r14.bit() | r15.bit() | r16.bit() | r17.bit() | r18.bit() |
24 r19.bit() | r20.bit() | r21.bit() | r22.bit() | r23.bit() | 24 r19.bit() | r20.bit() | r21.bit() | r22.bit() | r23.bit() |
25 r24.bit() | r25.bit() | r26.bit() | r27.bit() | r28.bit() | 25 r24.bit() | r25.bit() | r26.bit() | r27.bit() | r28.bit() |
26 r29.bit() | r30.bit() | fp.bit(); 26 r29.bit() | r30.bit() | fp.bit();
27 } 27 }
28 static Register CRegisterParameter(int i) { 28 static Register CRegisterParameter(int i) {
29 static Register register_parameters[] = {r3, r4, r5, r6, r7, r8, r9, r10}; 29 static Register register_parameters[] = {r3, r4, r5, r6, r7, r8, r9, r10};
30 return register_parameters[i]; 30 return register_parameters[i];
31 } 31 }
32 static int CRegisterParametersLength() { return 8; } 32 static int CRegisterParametersLength() { return 8; }
33 static int CStackBackingStoreLength() { return 0; }
33 }; 34 };
34 35
35 36
36 typedef LinkageHelper<PPCLinkageHelperTraits> LH; 37 typedef LinkageHelper<PPCLinkageHelperTraits> LH;
37 38
38 CallDescriptor* Linkage::GetJSCallDescriptor(Zone* zone, bool is_osr, 39 CallDescriptor* Linkage::GetJSCallDescriptor(Zone* zone, bool is_osr,
39 int parameter_count, 40 int parameter_count,
40 CallDescriptor::Flags flags) { 41 CallDescriptor::Flags flags) {
41 return LH::GetJSCallDescriptor(zone, is_osr, parameter_count, flags); 42 return LH::GetJSCallDescriptor(zone, is_osr, parameter_count, flags);
42 } 43 }
(...skipping 18 matching lines...) Expand all
61 62
62 63
63 CallDescriptor* Linkage::GetSimplifiedCDescriptor(Zone* zone, 64 CallDescriptor* Linkage::GetSimplifiedCDescriptor(Zone* zone,
64 const MachineSignature* sig) { 65 const MachineSignature* sig) {
65 return LH::GetSimplifiedCDescriptor(zone, sig); 66 return LH::GetSimplifiedCDescriptor(zone, sig);
66 } 67 }
67 68
68 } // namespace compiler 69 } // namespace compiler
69 } // namespace internal 70 } // namespace internal
70 } // namespace v8 71 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/ppc/instruction-selector-ppc.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698