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

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

Issue 1179763004: X87: enable the X87 turbofan support. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: 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
« no previous file with comments | « src/compiler/x87/instruction-selector-x87.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/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 IA32LinkageHelperTraits { 15 struct X87LinkageHelperTraits {
16 static Register ReturnValueReg() { return eax; } 16 static Register ReturnValueReg() { return eax; }
17 static Register ReturnValue2Reg() { return edx; } 17 static Register ReturnValue2Reg() { return edx; }
18 static Register JSCallFunctionReg() { return edi; } 18 static Register JSCallFunctionReg() { return edi; }
19 static Register ContextReg() { return esi; } 19 static Register ContextReg() { return esi; }
20 static Register RuntimeCallFunctionReg() { return ebx; } 20 static Register RuntimeCallFunctionReg() { return ebx; }
21 static Register RuntimeCallArgCountReg() { return eax; } 21 static Register RuntimeCallArgCountReg() { return eax; }
22 static RegList CCalleeSaveRegisters() { 22 static RegList CCalleeSaveRegisters() {
23 return esi.bit() | edi.bit() | ebx.bit(); 23 return esi.bit() | edi.bit() | ebx.bit();
24 } 24 }
25 static Register CRegisterParameter(int i) { return no_reg; } 25 static Register CRegisterParameter(int i) { return no_reg; }
26 static int CRegisterParametersLength() { return 0; } 26 static int CRegisterParametersLength() { return 0; }
27 }; 27 };
28 28
29 typedef LinkageHelper<IA32LinkageHelperTraits> LH; 29 typedef LinkageHelper<X87LinkageHelperTraits> LH;
30 30
31 CallDescriptor* Linkage::GetJSCallDescriptor(Zone* zone, bool is_osr, 31 CallDescriptor* Linkage::GetJSCallDescriptor(Zone* zone, bool is_osr,
32 int parameter_count, 32 int parameter_count,
33 CallDescriptor::Flags flags) { 33 CallDescriptor::Flags flags) {
34 return LH::GetJSCallDescriptor(zone, is_osr, parameter_count, flags); 34 return LH::GetJSCallDescriptor(zone, is_osr, parameter_count, flags);
35 } 35 }
36 36
37 37
38 CallDescriptor* Linkage::GetRuntimeCallDescriptor( 38 CallDescriptor* Linkage::GetRuntimeCallDescriptor(
39 Zone* zone, Runtime::FunctionId function, int parameter_count, 39 Zone* zone, Runtime::FunctionId function, int parameter_count,
(...skipping 14 matching lines...) Expand all
54 54
55 55
56 CallDescriptor* Linkage::GetSimplifiedCDescriptor(Zone* zone, 56 CallDescriptor* Linkage::GetSimplifiedCDescriptor(Zone* zone,
57 const MachineSignature* sig) { 57 const MachineSignature* sig) {
58 return LH::GetSimplifiedCDescriptor(zone, sig); 58 return LH::GetSimplifiedCDescriptor(zone, sig);
59 } 59 }
60 60
61 } // namespace compiler 61 } // namespace compiler
62 } // namespace internal 62 } // namespace internal
63 } // namespace v8 63 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/x87/instruction-selector-x87.cc ('k') | src/globals.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698