Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1)

Side by Side Diff: src/compiler/linkage.h

Issue 2121753002: [turbofan] Robustify tail parameter stack size computations (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix windows build Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/compiler/instruction-selector.cc ('k') | src/compiler/linkage.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « src/compiler/instruction-selector.cc ('k') | src/compiler/linkage.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698