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

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

Issue 230863005: Initial UserTag and dart:profiler library (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 8 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/lib/profiler_sources.gypi ('k') | runtime/vm/bootstrap.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) 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_BIT_VECTOR_H_ 5 #ifndef VM_BIT_VECTOR_H_
6 #define VM_BIT_VECTOR_H_ 6 #define VM_BIT_VECTOR_H_
7 7
8 #include "vm/allocation.h" 8 #include "vm/allocation.h"
9 #include "vm/isolate.h" 9 #include "vm/isolate.h"
10 #include "vm/zone.h" 10 #include "vm/zone.h"
11 11
12 namespace dart { 12 namespace dart {
13 13
14 // Bit vector implementation. 14 // Bit vector implementation.
15 class BitVector: public ZoneAllocated { 15 class BitVector : public ZoneAllocated {
16 public: 16 public:
17 // Iterator for the elements of this BitVector. 17 // Iterator for the elements of this BitVector.
18 class Iterator : public ValueObject { 18 class Iterator : public ValueObject {
19 public: 19 public:
20 explicit Iterator(BitVector* target) 20 explicit Iterator(BitVector* target)
21 : target_(target), 21 : target_(target),
22 bit_index_(-1), 22 bit_index_(-1),
23 word_index_(0), 23 word_index_(0),
24 current_word_(target->data_[0]) { 24 current_word_(target->data_[0]) {
25 ASSERT(target->data_length_ > 0); 25 ASSERT(target->data_length_ > 0);
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 intptr_t length_; 110 intptr_t length_;
111 intptr_t data_length_; 111 intptr_t data_length_;
112 uword* data_; 112 uword* data_;
113 113
114 DISALLOW_COPY_AND_ASSIGN(BitVector); 114 DISALLOW_COPY_AND_ASSIGN(BitVector);
115 }; 115 };
116 116
117 } // namespace dart 117 } // namespace dart
118 118
119 #endif // VM_BIT_VECTOR_H_ 119 #endif // VM_BIT_VECTOR_H_
OLDNEW
« no previous file with comments | « runtime/lib/profiler_sources.gypi ('k') | runtime/vm/bootstrap.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698