OLD | NEW |
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 #ifndef V8_COMPILER_LINKAGE_H_ | 5 #ifndef V8_COMPILER_LINKAGE_H_ |
6 #define V8_COMPILER_LINKAGE_H_ | 6 #define V8_COMPILER_LINKAGE_H_ |
7 | 7 |
8 #include "src/v8.h" | 8 #include "src/v8.h" |
9 | 9 |
10 #include "src/code-stubs.h" | 10 #include "src/code-stubs.h" |
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
140 CallDescriptor* GetRuntimeCallDescriptor( | 140 CallDescriptor* GetRuntimeCallDescriptor( |
141 Runtime::FunctionId function, int parameter_count, | 141 Runtime::FunctionId function, int parameter_count, |
142 Operator::Property properties, | 142 Operator::Property properties, |
143 CallDescriptor::DeoptimizationSupport can_deoptimize = | 143 CallDescriptor::DeoptimizationSupport can_deoptimize = |
144 CallDescriptor::kCannotDeoptimize); | 144 CallDescriptor::kCannotDeoptimize); |
145 static CallDescriptor* GetRuntimeCallDescriptor( | 145 static CallDescriptor* GetRuntimeCallDescriptor( |
146 Runtime::FunctionId function, int parameter_count, | 146 Runtime::FunctionId function, int parameter_count, |
147 Operator::Property properties, | 147 Operator::Property properties, |
148 CallDescriptor::DeoptimizationSupport can_deoptimize, Zone* zone); | 148 CallDescriptor::DeoptimizationSupport can_deoptimize, Zone* zone); |
149 | 149 |
150 CallDescriptor* GetStubCallDescriptor( | 150 CallDescriptor* GetStubCallDescriptor(CodeStubInterfaceDescriptor* descriptor, |
151 CodeStubInterfaceDescriptor* descriptor, int stack_parameter_count = 0, | 151 int stack_parameter_count = 0); |
152 CallDescriptor::DeoptimizationSupport can_deoptimize = | |
153 CallDescriptor::kCannotDeoptimize); | |
154 static CallDescriptor* GetStubCallDescriptor( | |
155 CodeStubInterfaceDescriptor* descriptor, int stack_parameter_count, | |
156 CallDescriptor::DeoptimizationSupport can_deoptimize, Zone* zone); | |
157 | 152 |
158 // Creates a call descriptor for simplified C calls that is appropriate | 153 // Creates a call descriptor for simplified C calls that is appropriate |
159 // for the host platform. This simplified calling convention only supports | 154 // for the host platform. This simplified calling convention only supports |
160 // integers and pointers of one word size each, i.e. no floating point, | 155 // integers and pointers of one word size each, i.e. no floating point, |
161 // structs, pointers to members, etc. | 156 // structs, pointers to members, etc. |
162 static CallDescriptor* GetSimplifiedCDescriptor( | 157 static CallDescriptor* GetSimplifiedCDescriptor( |
163 Zone* zone, int num_params, MachineRepresentation return_type, | 158 Zone* zone, int num_params, MachineRepresentation return_type, |
164 const MachineRepresentation* param_types); | 159 const MachineRepresentation* param_types); |
165 | 160 |
166 // Get the location of an (incoming) parameter to this function. | 161 // Get the location of an (incoming) parameter to this function. |
(...skipping 17 matching lines...) Expand all Loading... |
184 | 179 |
185 private: | 180 private: |
186 CompilationInfo* info_; | 181 CompilationInfo* info_; |
187 CallDescriptor* incoming_; | 182 CallDescriptor* incoming_; |
188 }; | 183 }; |
189 } | 184 } |
190 } | 185 } |
191 } // namespace v8::internal::compiler | 186 } // namespace v8::internal::compiler |
192 | 187 |
193 #endif // V8_COMPILER_LINKAGE_H_ | 188 #endif // V8_COMPILER_LINKAGE_H_ |
OLD | NEW |