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

Side by Side Diff: src/bit-vector.cc

Issue 1305393003: [turbofan] Deferred blocks splintering. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.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 | « BUILD.gn ('k') | src/compiler/ast-graph-builder.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 2010 the V8 project authors. All rights reserved. 1 // Copyright 2010 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 #include "src/bit-vector.h" 5 #include "src/bit-vector.h"
6 6
7 #include "src/base/bits.h" 7 #include "src/base/bits.h"
8 #include "src/scopes.h" 8 #include "src/scopes.h"
9 9
10 namespace v8 { 10 namespace v8 {
11 namespace internal { 11 namespace internal {
12 12
13 #ifdef DEBUG 13 #ifdef DEBUG
14 void BitVector::Print() { 14 void BitVector::Print() {
15 bool first = true; 15 bool first = true;
16 PrintF("{"); 16 PrintF("{");
17 for (int i = 0; i < length(); i++) { 17 for (int i = 0; i < length(); i++) {
18 if (Contains(i)) { 18 if (Contains(i)) {
19 if (!first) PrintF(","); 19 if (!first) PrintF(",");
20 first = false; 20 first = false;
21 PrintF("%d", i); 21 PrintF("%d", i);
22 } 22 }
23 } 23 }
24 PrintF("}"); 24 PrintF("}\n");
25 } 25 }
26 #endif 26 #endif
27 27
28 28
29 void BitVector::Iterator::Advance() { 29 void BitVector::Iterator::Advance() {
30 current_++; 30 current_++;
31 uintptr_t val = current_value_; 31 uintptr_t val = current_value_;
32 while (val == 0) { 32 while (val == 0) {
33 current_index_++; 33 current_index_++;
34 if (Done()) return; 34 if (Done()) return;
(...skipping 14 matching lines...) Expand all
49 count += base::bits::CountPopulation64(data); 49 count += base::bits::CountPopulation64(data);
50 } else { 50 } else {
51 count += base::bits::CountPopulation32(static_cast<uint32_t>(data)); 51 count += base::bits::CountPopulation32(static_cast<uint32_t>(data));
52 } 52 }
53 } 53 }
54 return count; 54 return count;
55 } 55 }
56 56
57 } // namespace internal 57 } // namespace internal
58 } // namespace v8 58 } // namespace v8
OLDNEW
« no previous file with comments | « BUILD.gn ('k') | src/compiler/ast-graph-builder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698