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

Side by Side Diff: runtime/vm/class_table.h

Issue 1271013005: Fix typo. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 4 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 | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #ifndef VM_CLASS_TABLE_H_ 5 #ifndef VM_CLASS_TABLE_H_
6 #define VM_CLASS_TABLE_H_ 6 #define VM_CLASS_TABLE_H_
7 7
8 #include "platform/assert.h" 8 #include "platform/assert.h"
9 #include "vm/bitfield.h" 9 #include "vm/bitfield.h"
10 #include "vm/globals.h" 10 #include "vm/globals.h"
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 // access, without support for stats data. 148 // access, without support for stats data.
149 explicit ClassTable(ClassTable* original); 149 explicit ClassTable(ClassTable* original);
150 ~ClassTable(); 150 ~ClassTable();
151 151
152 // Thread-safe. 152 // Thread-safe.
153 RawClass* At(intptr_t index) const { 153 RawClass* At(intptr_t index) const {
154 ASSERT(IsValidIndex(index)); 154 ASSERT(IsValidIndex(index));
155 return table_[index]; 155 return table_[index];
156 } 156 }
157 157
158 intptr_t IsValidIndex(intptr_t index) const { 158 bool IsValidIndex(intptr_t index) const {
159 return (index > 0) && (index < top_); 159 return (index > 0) && (index < top_);
160 } 160 }
161 161
162 bool HasValidClassAt(intptr_t index) const { 162 bool HasValidClassAt(intptr_t index) const {
163 ASSERT(IsValidIndex(index)); 163 ASSERT(IsValidIndex(index));
164 return table_[index] != NULL; 164 return table_[index] != NULL;
165 } 165 }
166 166
167 intptr_t NumCids() const { return top_; } 167 intptr_t NumCids() const { return top_; }
168 168
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
244 ClassHeapStats* PreliminaryStatsAt(intptr_t cid); 244 ClassHeapStats* PreliminaryStatsAt(intptr_t cid);
245 void UpdateLiveOld(intptr_t cid, intptr_t size); 245 void UpdateLiveOld(intptr_t cid, intptr_t size);
246 void UpdateLiveNew(intptr_t cid, intptr_t size); 246 void UpdateLiveNew(intptr_t cid, intptr_t size);
247 247
248 DISALLOW_COPY_AND_ASSIGN(ClassTable); 248 DISALLOW_COPY_AND_ASSIGN(ClassTable);
249 }; 249 };
250 250
251 } // namespace dart 251 } // namespace dart
252 252
253 #endif // VM_CLASS_TABLE_H_ 253 #endif // VM_CLASS_TABLE_H_
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698