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/transitions.h

Issue 769263002: Add support for enabling DCHECKs in release mode (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: updates Created 6 years 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/string-stream.cc ('k') | src/utils.h » ('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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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_TRANSITIONS_H_ 5 #ifndef V8_TRANSITIONS_H_
6 #define V8_TRANSITIONS_H_ 6 #define V8_TRANSITIONS_H_
7 7
8 #include "src/checks.h" 8 #include "src/checks.h"
9 #include "src/elements-kind.h" 9 #include "src/elements-kind.h"
10 #include "src/heap/heap.h" 10 #include "src/heap/heap.h"
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 static const int kTransitionSize = 2; 156 static const int kTransitionSize = 2;
157 157
158 #ifdef OBJECT_PRINT 158 #ifdef OBJECT_PRINT
159 // For our gdb macros, we should perhaps change these in the future. 159 // For our gdb macros, we should perhaps change these in the future.
160 void Print(); 160 void Print();
161 161
162 // Print all the transitions. 162 // Print all the transitions.
163 void PrintTransitions(std::ostream& os, bool print_header = true); // NOLINT 163 void PrintTransitions(std::ostream& os, bool print_header = true); // NOLINT
164 #endif 164 #endif
165 165
166 #ifdef DEBUG 166 #if DCHECK_IS_ON
167 bool IsSortedNoDuplicates(int valid_entries = -1); 167 bool IsSortedNoDuplicates(int valid_entries = -1);
168 bool IsConsistentWithBackPointers(Map* current_map); 168 bool IsConsistentWithBackPointers(Map* current_map);
169 bool IsEqualTo(TransitionArray* other); 169 bool IsEqualTo(TransitionArray* other);
170 #endif 170 #endif
171 171
172 // The maximum number of transitions we want in a transition array (should 172 // The maximum number of transitions we want in a transition array (should
173 // fit in a page). 173 // fit in a page).
174 static const int kMaxNumberOfTransitions = 1024 + 512; 174 static const int kMaxNumberOfTransitions = 1024 + 512;
175 175
176 // Returns the fixed array length required to hold number_of_transitions 176 // Returns the fixed array length required to hold number_of_transitions
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
211 int origin_transition, 211 int origin_transition,
212 int target_transition); 212 int target_transition);
213 213
214 DISALLOW_IMPLICIT_CONSTRUCTORS(TransitionArray); 214 DISALLOW_IMPLICIT_CONSTRUCTORS(TransitionArray);
215 }; 215 };
216 216
217 217
218 } } // namespace v8::internal 218 } } // namespace v8::internal
219 219
220 #endif // V8_TRANSITIONS_H_ 220 #endif // V8_TRANSITIONS_H_
OLDNEW
« no previous file with comments | « src/string-stream.cc ('k') | src/utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698