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(CodeStubInterfaceDescriptor* descriptor, | 150 CallDescriptor* GetStubCallDescriptor( |
151 int stack_parameter_count = 0); | 151 CodeStubInterfaceDescriptor* descriptor, 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); |
152 | 157 |
153 // Creates a call descriptor for simplified C calls that is appropriate | 158 // Creates a call descriptor for simplified C calls that is appropriate |
154 // for the host platform. This simplified calling convention only supports | 159 // for the host platform. This simplified calling convention only supports |
155 // integers and pointers of one word size each, i.e. no floating point, | 160 // integers and pointers of one word size each, i.e. no floating point, |
156 // structs, pointers to members, etc. | 161 // structs, pointers to members, etc. |
157 static CallDescriptor* GetSimplifiedCDescriptor( | 162 static CallDescriptor* GetSimplifiedCDescriptor( |
158 Zone* zone, int num_params, MachineRepresentation return_type, | 163 Zone* zone, int num_params, MachineRepresentation return_type, |
159 const MachineRepresentation* param_types); | 164 const MachineRepresentation* param_types); |
160 | 165 |
161 // Get the location of an (incoming) parameter to this function. | 166 // Get the location of an (incoming) parameter to this function. |
(...skipping 17 matching lines...) Expand all Loading... |
179 | 184 |
180 private: | 185 private: |
181 CompilationInfo* info_; | 186 CompilationInfo* info_; |
182 CallDescriptor* incoming_; | 187 CallDescriptor* incoming_; |
183 }; | 188 }; |
184 } | 189 } |
185 } | 190 } |
186 } // namespace v8::internal::compiler | 191 } // namespace v8::internal::compiler |
187 | 192 |
188 #endif // V8_COMPILER_LINKAGE_H_ | 193 #endif // V8_COMPILER_LINKAGE_H_ |
OLD | NEW |