| 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/operator.h" | 10 #include "src/compiler/operator.h" |
| (...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 283 | 283 |
| 284 // Get the callee-saved FP registers, if any, across this call. | 284 // Get the callee-saved FP registers, if any, across this call. |
| 285 RegList CalleeSavedFPRegisters() const { return callee_saved_fp_registers_; } | 285 RegList CalleeSavedFPRegisters() const { return callee_saved_fp_registers_; } |
| 286 | 286 |
| 287 const char* debug_name() const { return debug_name_; } | 287 const char* debug_name() const { return debug_name_; } |
| 288 | 288 |
| 289 bool UsesOnlyRegisters() const; | 289 bool UsesOnlyRegisters() const; |
| 290 | 290 |
| 291 bool HasSameReturnLocationsAs(const CallDescriptor* other) const; | 291 bool HasSameReturnLocationsAs(const CallDescriptor* other) const; |
| 292 | 292 |
| 293 bool CanTailCall(const Node* call, int* stack_param_delta) const; | 293 int GetStackParameterDelta(const CallDescriptor* tail_caller = nullptr) const; |
| 294 |
| 295 bool CanTailCall(const Node* call) const; |
| 294 | 296 |
| 295 private: | 297 private: |
| 296 friend class Linkage; | 298 friend class Linkage; |
| 297 | 299 |
| 298 const Kind kind_; | 300 const Kind kind_; |
| 299 const MachineType target_type_; | 301 const MachineType target_type_; |
| 300 const LinkageLocation target_loc_; | 302 const LinkageLocation target_loc_; |
| 301 const LocationSignature* const location_sig_; | 303 const LocationSignature* const location_sig_; |
| 302 const size_t stack_param_count_; | 304 const size_t stack_param_count_; |
| 303 const Operator::Properties properties_; | 305 const Operator::Properties properties_; |
| (...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 423 CallDescriptor* const incoming_; | 425 CallDescriptor* const incoming_; |
| 424 | 426 |
| 425 DISALLOW_COPY_AND_ASSIGN(Linkage); | 427 DISALLOW_COPY_AND_ASSIGN(Linkage); |
| 426 }; | 428 }; |
| 427 | 429 |
| 428 } // namespace compiler | 430 } // namespace compiler |
| 429 } // namespace internal | 431 } // namespace internal |
| 430 } // namespace v8 | 432 } // namespace v8 |
| 431 | 433 |
| 432 #endif // V8_COMPILER_LINKAGE_H_ | 434 #endif // V8_COMPILER_LINKAGE_H_ |
| OLD | NEW |