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

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

Issue 1876833003: [turbofan] Remove the CallDescriptor parameter in the constructor of Frame. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 8 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 | « no previous file | src/compiler/frame.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_FRAME_H_ 5 #ifndef V8_COMPILER_FRAME_H_
6 #define V8_COMPILER_FRAME_H_ 6 #define V8_COMPILER_FRAME_H_
7 7
8 #include "src/bit-vector.h" 8 #include "src/bit-vector.h"
9 #include "src/frames.h" 9 #include "src/frames.h"
10 10
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 // +-----------------+---- | 71 // +-----------------+---- |
72 // m+4 | callee-saved 1 | ^ | 72 // m+4 | callee-saved 1 | ^ |
73 // |- - - - - - - - -| | | 73 // |- - - - - - - - -| | |
74 // | ... | Callee-saved | 74 // | ... | Callee-saved |
75 // |- - - - - - - - -| | | 75 // |- - - - - - - - -| | |
76 // m+r+3 | callee-saved r | v v 76 // m+r+3 | callee-saved r | v v
77 // -----+-----------------+----- <-- stack ptr ------------- 77 // -----+-----------------+----- <-- stack ptr -------------
78 // 78 //
79 class Frame : public ZoneObject { 79 class Frame : public ZoneObject {
80 public: 80 public:
81 explicit Frame(int fixed_frame_size_in_slots, 81 explicit Frame(int fixed_frame_size_in_slots);
82 const CallDescriptor* descriptor);
83 82
84 inline int GetTotalFrameSlotCount() const { return frame_slot_count_; } 83 inline int GetTotalFrameSlotCount() const { return frame_slot_count_; }
85 84
86 inline int GetSavedCalleeRegisterSlotCount() const { 85 inline int GetSavedCalleeRegisterSlotCount() const {
87 return callee_saved_slot_count_; 86 return callee_saved_slot_count_;
88 } 87 }
89 inline int GetSpillSlotCount() const { return spill_slot_count_; } 88 inline int GetSpillSlotCount() const { return spill_slot_count_; }
90 89
91 void SetAllocatedRegisters(BitVector* regs) { 90 void SetAllocatedRegisters(BitVector* regs) {
92 DCHECK(allocated_registers_ == nullptr); 91 DCHECK(allocated_registers_ == nullptr);
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
232 Frame* const frame_; 231 Frame* const frame_;
233 bool access_frame_with_fp_; 232 bool access_frame_with_fp_;
234 int sp_delta_; 233 int sp_delta_;
235 bool has_frame_; 234 bool has_frame_;
236 }; 235 };
237 } // namespace compiler 236 } // namespace compiler
238 } // namespace internal 237 } // namespace internal
239 } // namespace v8 238 } // namespace v8
240 239
241 #endif // V8_COMPILER_FRAME_H_ 240 #endif // V8_COMPILER_FRAME_H_
OLDNEW
« no previous file with comments | « no previous file | src/compiler/frame.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698