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

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

Issue 23072026: fix cpp11 compile errors (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 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 | Annotate | Revision Log
« no previous file with comments | « runtime/vm/handles.cc ('k') | runtime/vm/heap.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 (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_HANDLES_IMPL_H_ 5 #ifndef VM_HANDLES_IMPL_H_
6 #define VM_HANDLES_IMPL_H_ 6 #define VM_HANDLES_IMPL_H_
7 7
8 #include "vm/heap.h" 8 #include "vm/heap.h"
9 #include "vm/visitor.h" 9 #include "vm/visitor.h"
10 10
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 } 169 }
170 } 170 }
171 171
172 172
173 template <int kHandleSizeInWords, int kHandlesPerChunk, int kOffsetOfRawPtr> 173 template <int kHandleSizeInWords, int kHandlesPerChunk, int kOffsetOfRawPtr>
174 void Handles<kHandleSizeInWords, 174 void Handles<kHandleSizeInWords,
175 kHandlesPerChunk, 175 kHandlesPerChunk,
176 kOffsetOfRawPtr>::SetupNextScopeBlock() { 176 kOffsetOfRawPtr>::SetupNextScopeBlock() {
177 #if defined(DEBUG) 177 #if defined(DEBUG)
178 if (FLAG_trace_handles) { 178 if (FLAG_trace_handles) {
179 OS::PrintErr("*** Handle Counts for (0x%"Px"):Zone = %d,Scoped = %d\n", 179 OS::PrintErr("*** Handle Counts for (0x%" Px "):Zone = %d,Scoped = %d\n",
180 reinterpret_cast<intptr_t>(this), 180 reinterpret_cast<intptr_t>(this),
181 CountZoneHandles(), CountScopedHandles()); 181 CountZoneHandles(), CountScopedHandles());
182 } 182 }
183 #endif 183 #endif
184 if (scoped_blocks_->next_block() == NULL) { 184 if (scoped_blocks_->next_block() == NULL) {
185 scoped_blocks_->set_next_block(new HandlesBlock(NULL)); 185 scoped_blocks_->set_next_block(new HandlesBlock(NULL));
186 } 186 }
187 scoped_blocks_ = scoped_blocks_->next_block(); 187 scoped_blocks_ = scoped_blocks_->next_block();
188 scoped_blocks_->set_next_handle_slot(0); 188 scoped_blocks_->set_next_handle_slot(0);
189 #if defined(DEBUG) 189 #if defined(DEBUG)
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
224 return false; 224 return false;
225 } 225 }
226 226
227 227
228 template <int kHandleSizeInWords, int kHandlesPerChunk, int kOffsetOfRawPtr> 228 template <int kHandleSizeInWords, int kHandlesPerChunk, int kOffsetOfRawPtr>
229 void Handles<kHandleSizeInWords, 229 void Handles<kHandleSizeInWords,
230 kHandlesPerChunk, 230 kHandlesPerChunk,
231 kOffsetOfRawPtr>::SetupNextZoneBlock() { 231 kOffsetOfRawPtr>::SetupNextZoneBlock() {
232 #if defined(DEBUG) 232 #if defined(DEBUG)
233 if (FLAG_trace_handles) { 233 if (FLAG_trace_handles) {
234 OS::PrintErr("*** Handle Counts for (0x%"Px"):Zone = %d,Scoped = %d\n", 234 OS::PrintErr("*** Handle Counts for (0x%" Px "):Zone = %d,Scoped = %d\n",
235 reinterpret_cast<intptr_t>(this), 235 reinterpret_cast<intptr_t>(this),
236 CountZoneHandles(), CountScopedHandles()); 236 CountZoneHandles(), CountScopedHandles());
237 } 237 }
238 #endif 238 #endif
239 zone_blocks_ = new HandlesBlock(zone_blocks_); 239 zone_blocks_ = new HandlesBlock(zone_blocks_);
240 ASSERT(zone_blocks_ != NULL); 240 ASSERT(zone_blocks_ != NULL);
241 } 241 }
242 242
243 243
244 #if defined(DEBUG) 244 #if defined(DEBUG)
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
367 template <int kHandleSizeInWords, int kHandlesPerChunk, int kOffsetOfRawPtr> 367 template <int kHandleSizeInWords, int kHandlesPerChunk, int kOffsetOfRawPtr>
368 int Handles<kHandleSizeInWords, 368 int Handles<kHandleSizeInWords,
369 kHandlesPerChunk, 369 kHandlesPerChunk,
370 kOffsetOfRawPtr>::HandlesBlock::HandleCount() const { 370 kOffsetOfRawPtr>::HandlesBlock::HandleCount() const {
371 return (next_handle_slot_ / kHandleSizeInWords); 371 return (next_handle_slot_ / kHandleSizeInWords);
372 } 372 }
373 373
374 } // namespace dart 374 } // namespace dart
375 375
376 #endif // VM_HANDLES_IMPL_H_ 376 #endif // VM_HANDLES_IMPL_H_
OLDNEW
« no previous file with comments | « runtime/vm/handles.cc ('k') | runtime/vm/heap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698