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

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

Issue 9414003: Initial implementation of a flow-graph builder for Dart's AST. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Rely on assumption that code can reach both branches of a condition. Created 8 years, 10 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/flow_graph_builder.cc ('k') | runtime/vm/instructions_ia32.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 (c) 2011, 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/visitor.h"
9
8 namespace dart { 10 namespace dart {
9 11
10 DECLARE_DEBUG_FLAG(bool, trace_handles_count); 12 DECLARE_DEBUG_FLAG(bool, trace_handles_count);
11 13
12 template <int kHandleSizeInWords, int kHandlesPerChunk, int kOffsetOfRawPtr> 14 template <int kHandleSizeInWords, int kHandlesPerChunk, int kOffsetOfRawPtr>
13 void Handles<kHandleSizeInWords, 15 void Handles<kHandleSizeInWords,
14 kHandlesPerChunk, 16 kHandlesPerChunk,
15 kOffsetOfRawPtr>::VisitObjectPointers( 17 kOffsetOfRawPtr>::VisitObjectPointers(
16 ObjectPointerVisitor* visitor) { 18 ObjectPointerVisitor* visitor) {
17 // Visit all zone handles. 19 // Visit all zone handles.
(...skipping 308 matching lines...) Expand 10 before | Expand all | Expand 10 after
326 template <int kHandleSizeInWords, int kHandlesPerChunk, int kOffsetOfRawPtr> 328 template <int kHandleSizeInWords, int kHandlesPerChunk, int kOffsetOfRawPtr>
327 int Handles<kHandleSizeInWords, 329 int Handles<kHandleSizeInWords,
328 kHandlesPerChunk, 330 kHandlesPerChunk,
329 kOffsetOfRawPtr>::HandlesBlock::HandleCount() const { 331 kOffsetOfRawPtr>::HandlesBlock::HandleCount() const {
330 return (next_handle_slot_ / kHandleSizeInWords); 332 return (next_handle_slot_ / kHandleSizeInWords);
331 } 333 }
332 334
333 } // namespace dart 335 } // namespace dart
334 336
335 #endif // VM_HANDLES_IMPL_H_ 337 #endif // VM_HANDLES_IMPL_H_
OLDNEW
« no previous file with comments | « runtime/vm/flow_graph_builder.cc ('k') | runtime/vm/instructions_ia32.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698