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

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

Issue 1578723002: [turbofan] Build s/NULL/nullptr/g and CHECK(x != nullptr) to CHECK_NOT_NULL(x). (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 11 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/control-equivalence.cc ('k') | 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 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 } 114 }
115 inline int GetSpillSlotCount() const { return spill_slot_count_; } 115 inline int GetSpillSlotCount() const { return spill_slot_count_; }
116 116
117 inline void SetElidedFrameSizeInSlots(int slots) { 117 inline void SetElidedFrameSizeInSlots(int slots) {
118 DCHECK_EQ(0, callee_saved_slot_count_); 118 DCHECK_EQ(0, callee_saved_slot_count_);
119 DCHECK_EQ(0, spill_slot_count_); 119 DCHECK_EQ(0, spill_slot_count_);
120 frame_slot_count_ = slots; 120 frame_slot_count_ = slots;
121 } 121 }
122 122
123 void SetAllocatedRegisters(BitVector* regs) { 123 void SetAllocatedRegisters(BitVector* regs) {
124 DCHECK(allocated_registers_ == NULL); 124 DCHECK(allocated_registers_ == nullptr);
125 allocated_registers_ = regs; 125 allocated_registers_ = regs;
126 } 126 }
127 127
128 void SetAllocatedDoubleRegisters(BitVector* regs) { 128 void SetAllocatedDoubleRegisters(BitVector* regs) {
129 DCHECK(allocated_double_registers_ == NULL); 129 DCHECK(allocated_double_registers_ == nullptr);
130 allocated_double_registers_ = regs; 130 allocated_double_registers_ = regs;
131 } 131 }
132 132
133 bool DidAllocateDoubleRegisters() const { 133 bool DidAllocateDoubleRegisters() const {
134 return !allocated_double_registers_->IsEmpty(); 134 return !allocated_double_registers_->IsEmpty();
135 } 135 }
136 136
137 int AlignSavedCalleeRegisterSlots() { 137 int AlignSavedCalleeRegisterSlots() {
138 DCHECK_EQ(0, callee_saved_slot_count_); 138 DCHECK_EQ(0, callee_saved_slot_count_);
139 needs_frame_ = true; 139 needs_frame_ = true;
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
248 private: 248 private:
249 Frame* const frame_; 249 Frame* const frame_;
250 bool access_frame_with_fp_; 250 bool access_frame_with_fp_;
251 int sp_delta_; 251 int sp_delta_;
252 }; 252 };
253 } // namespace compiler 253 } // namespace compiler
254 } // namespace internal 254 } // namespace internal
255 } // namespace v8 255 } // namespace v8
256 256
257 #endif // V8_COMPILER_FRAME_H_ 257 #endif // V8_COMPILER_FRAME_H_
OLDNEW
« no previous file with comments | « src/compiler/control-equivalence.cc ('k') | src/compiler/frame.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698