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/base/flags.h" | 8 #include "src/base/flags.h" |
9 #include "src/compiler/frame.h" | 9 #include "src/compiler/frame.h" |
10 #include "src/compiler/machine-type.h" | 10 #include "src/compiler/machine-type.h" |
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
167 Linkage(Zone* zone, CompilationInfo* info) | 167 Linkage(Zone* zone, CompilationInfo* info) |
168 : zone_(zone), incoming_(ComputeIncoming(zone, info)) {} | 168 : zone_(zone), incoming_(ComputeIncoming(zone, info)) {} |
169 Linkage(Zone* zone, CallDescriptor* incoming) | 169 Linkage(Zone* zone, CallDescriptor* incoming) |
170 : zone_(zone), incoming_(incoming) {} | 170 : zone_(zone), incoming_(incoming) {} |
171 | 171 |
172 static CallDescriptor* ComputeIncoming(Zone* zone, CompilationInfo* info); | 172 static CallDescriptor* ComputeIncoming(Zone* zone, CompilationInfo* info); |
173 | 173 |
174 // The call descriptor for this compilation unit describes the locations | 174 // The call descriptor for this compilation unit describes the locations |
175 // of incoming parameters and the outgoing return value(s). | 175 // of incoming parameters and the outgoing return value(s). |
176 CallDescriptor* GetIncomingDescriptor() const { return incoming_; } | 176 CallDescriptor* GetIncomingDescriptor() const { return incoming_; } |
177 CallDescriptor* GetJSCallDescriptor(int parameter_count, | 177 CallDescriptor* GetJSCallDescriptor(int parameter_count) const; |
178 CallDescriptor::Flags flags) const; | 178 static CallDescriptor* GetJSCallDescriptor(int parameter_count, Zone* zone); |
179 static CallDescriptor* GetJSCallDescriptor(int parameter_count, Zone* zone, | |
180 CallDescriptor::Flags flags); | |
181 CallDescriptor* GetRuntimeCallDescriptor( | 179 CallDescriptor* GetRuntimeCallDescriptor( |
182 Runtime::FunctionId function, int parameter_count, | 180 Runtime::FunctionId function, int parameter_count, |
183 Operator::Properties properties) const; | 181 Operator::Properties properties) const; |
184 static CallDescriptor* GetRuntimeCallDescriptor( | 182 static CallDescriptor* GetRuntimeCallDescriptor( |
185 Runtime::FunctionId function, int parameter_count, | 183 Runtime::FunctionId function, int parameter_count, |
186 Operator::Properties properties, Zone* zone); | 184 Operator::Properties properties, Zone* zone); |
187 | 185 |
188 CallDescriptor* GetStubCallDescriptor( | 186 CallDescriptor* GetStubCallDescriptor( |
189 const CallInterfaceDescriptor& descriptor, int stack_parameter_count = 0, | 187 const CallInterfaceDescriptor& descriptor, int stack_parameter_count = 0, |
190 CallDescriptor::Flags flags = CallDescriptor::kNoFlags) const; | 188 CallDescriptor::Flags flags = CallDescriptor::kNoFlags) const; |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
231 CallDescriptor* const incoming_; | 229 CallDescriptor* const incoming_; |
232 | 230 |
233 DISALLOW_COPY_AND_ASSIGN(Linkage); | 231 DISALLOW_COPY_AND_ASSIGN(Linkage); |
234 }; | 232 }; |
235 | 233 |
236 } // namespace compiler | 234 } // namespace compiler |
237 } // namespace internal | 235 } // namespace internal |
238 } // namespace v8 | 236 } // namespace v8 |
239 | 237 |
240 #endif // V8_COMPILER_LINKAGE_H_ | 238 #endif // V8_COMPILER_LINKAGE_H_ |
OLD | NEW |