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

Side by Side Diff: src/transitions.h

Issue 363323003: More OStreamsUse OStreams more often. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Rebased and polished. Created 6 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 | Annotate | Revision Log
« no previous file with comments | « src/stub-cache.cc ('k') | src/typing.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 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.h" 10 #include "src/heap.h"
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 static const int kPrototypeTransitionsOffset = kBackPointerStorageOffset + 133 static const int kPrototypeTransitionsOffset = kBackPointerStorageOffset +
134 kPointerSize; 134 kPointerSize;
135 135
136 // Layout of map transition entries in full transition arrays. 136 // Layout of map transition entries in full transition arrays.
137 static const int kTransitionKey = 0; 137 static const int kTransitionKey = 0;
138 static const int kTransitionTarget = 1; 138 static const int kTransitionTarget = 1;
139 static const int kTransitionSize = 2; 139 static const int kTransitionSize = 2;
140 140
141 #ifdef OBJECT_PRINT 141 #ifdef OBJECT_PRINT
142 // Print all the transitions. 142 // Print all the transitions.
143 inline void PrintTransitions() { 143 void PrintTransitions(OStream& os); // NOLINT
144 PrintTransitions(stdout);
145 }
146 void PrintTransitions(FILE* out);
147 #endif 144 #endif
148 145
149 #ifdef DEBUG 146 #ifdef DEBUG
150 bool IsSortedNoDuplicates(int valid_entries = -1); 147 bool IsSortedNoDuplicates(int valid_entries = -1);
151 bool IsConsistentWithBackPointers(Map* current_map); 148 bool IsConsistentWithBackPointers(Map* current_map);
152 bool IsEqualTo(TransitionArray* other); 149 bool IsEqualTo(TransitionArray* other);
153 #endif 150 #endif
154 151
155 // The maximum number of transitions we want in a transition array (should 152 // The maximum number of transitions we want in a transition array (should
156 // fit in a page). 153 // fit in a page).
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
188 int origin_transition, 185 int origin_transition,
189 int target_transition); 186 int target_transition);
190 187
191 DISALLOW_IMPLICIT_CONSTRUCTORS(TransitionArray); 188 DISALLOW_IMPLICIT_CONSTRUCTORS(TransitionArray);
192 }; 189 };
193 190
194 191
195 } } // namespace v8::internal 192 } } // namespace v8::internal
196 193
197 #endif // V8_TRANSITIONS_H_ 194 #endif // V8_TRANSITIONS_H_
OLDNEW
« no previous file with comments | « src/stub-cache.cc ('k') | src/typing.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698