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) const; | 177 CallDescriptor* GetJSCallDescriptor(int parameter_count, |
178 static CallDescriptor* GetJSCallDescriptor(int parameter_count, Zone* zone); | 178 CallDescriptor::Flags flags) const; |
| 179 static CallDescriptor* GetJSCallDescriptor(int parameter_count, Zone* zone, |
| 180 CallDescriptor::Flags flags); |
179 CallDescriptor* GetRuntimeCallDescriptor( | 181 CallDescriptor* GetRuntimeCallDescriptor( |
180 Runtime::FunctionId function, int parameter_count, | 182 Runtime::FunctionId function, int parameter_count, |
181 Operator::Properties properties) const; | 183 Operator::Properties properties) const; |
182 static CallDescriptor* GetRuntimeCallDescriptor( | 184 static CallDescriptor* GetRuntimeCallDescriptor( |
183 Runtime::FunctionId function, int parameter_count, | 185 Runtime::FunctionId function, int parameter_count, |
184 Operator::Properties properties, Zone* zone); | 186 Operator::Properties properties, Zone* zone); |
185 | 187 |
186 CallDescriptor* GetStubCallDescriptor( | 188 CallDescriptor* GetStubCallDescriptor( |
187 const CallInterfaceDescriptor& descriptor, int stack_parameter_count = 0, | 189 const CallInterfaceDescriptor& descriptor, int stack_parameter_count = 0, |
188 CallDescriptor::Flags flags = CallDescriptor::kNoFlags) const; | 190 CallDescriptor::Flags flags = CallDescriptor::kNoFlags) const; |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
229 CallDescriptor* const incoming_; | 231 CallDescriptor* const incoming_; |
230 | 232 |
231 DISALLOW_COPY_AND_ASSIGN(Linkage); | 233 DISALLOW_COPY_AND_ASSIGN(Linkage); |
232 }; | 234 }; |
233 | 235 |
234 } // namespace compiler | 236 } // namespace compiler |
235 } // namespace internal | 237 } // namespace internal |
236 } // namespace v8 | 238 } // namespace v8 |
237 | 239 |
238 #endif // V8_COMPILER_LINKAGE_H_ | 240 #endif // V8_COMPILER_LINKAGE_H_ |
OLD | NEW |