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 223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
234 // Creates a call descriptor for simplified C calls that is appropriate | 234 // Creates a call descriptor for simplified C calls that is appropriate |
235 // for the host platform. This simplified calling convention only supports | 235 // for the host platform. This simplified calling convention only supports |
236 // integers and pointers of one word size each, i.e. no floating point, | 236 // integers and pointers of one word size each, i.e. no floating point, |
237 // structs, pointers to members, etc. | 237 // structs, pointers to members, etc. |
238 static CallDescriptor* GetSimplifiedCDescriptor(Zone* zone, | 238 static CallDescriptor* GetSimplifiedCDescriptor(Zone* zone, |
239 const MachineSignature* sig); | 239 const MachineSignature* sig); |
240 | 240 |
241 // Creates a call descriptor for interpreter handler code stubs. These are not | 241 // Creates a call descriptor for interpreter handler code stubs. These are not |
242 // intended to be called directly but are instead dispatched to by the | 242 // intended to be called directly but are instead dispatched to by the |
243 // interpreter. | 243 // interpreter. |
244 static CallDescriptor* GetInterpreterDispatchDescriptor( | 244 static CallDescriptor* GetInterpreterDispatchDescriptor(Zone* zone, |
245 Zone* zone, const MachineSignature* sig); | 245 bool needs_return); |
oth
2015/07/15 13:22:01
Suggest a comment on needs_return or a more indica
rmcilroy
2015/07/15 16:55:58
Added a comment and changed the name to will_retur
| |
246 | 246 |
247 // Get the location of an (incoming) parameter to this function. | 247 // Get the location of an (incoming) parameter to this function. |
248 LinkageLocation GetParameterLocation(int index) const { | 248 LinkageLocation GetParameterLocation(int index) const { |
249 return incoming_->GetInputLocation(index + 1); // + 1 to skip target. | 249 return incoming_->GetInputLocation(index + 1); // + 1 to skip target. |
250 } | 250 } |
251 | 251 |
252 // Get the machine type of an (incoming) parameter to this function. | 252 // Get the machine type of an (incoming) parameter to this function. |
253 MachineType GetParameterType(int index) const { | 253 MachineType GetParameterType(int index) const { |
254 return incoming_->GetInputType(index + 1); // + 1 to skip target. | 254 return incoming_->GetInputType(index + 1); // + 1 to skip target. |
255 } | 255 } |
(...skipping 28 matching lines...) Expand all Loading... | |
284 CallDescriptor* const incoming_; | 284 CallDescriptor* const incoming_; |
285 | 285 |
286 DISALLOW_COPY_AND_ASSIGN(Linkage); | 286 DISALLOW_COPY_AND_ASSIGN(Linkage); |
287 }; | 287 }; |
288 | 288 |
289 } // namespace compiler | 289 } // namespace compiler |
290 } // namespace internal | 290 } // namespace internal |
291 } // namespace v8 | 291 } // namespace v8 |
292 | 292 |
293 #endif // V8_COMPILER_LINKAGE_H_ | 293 #endif // V8_COMPILER_LINKAGE_H_ |
OLD | NEW |