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

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

Issue 1481613002: Create ast/ and parsing/ subdirectories and move appropriate files (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebase Created 5 years 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 | « src/background-parsing-task.h ('k') | src/code-stubs.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"
9 8
10 namespace v8 { 9 namespace v8 {
11 namespace internal { 10 namespace internal {
12 11
13 #ifdef DEBUG 12 #ifdef DEBUG
14 void BitVector::Print() { 13 void BitVector::Print() {
15 bool first = true; 14 bool first = true;
16 PrintF("{"); 15 PrintF("{");
17 for (int i = 0; i < length(); i++) { 16 for (int i = 0; i < length(); i++) {
18 if (Contains(i)) { 17 if (Contains(i)) {
(...skipping 30 matching lines...) Expand all
49 count += base::bits::CountPopulation64(data); 48 count += base::bits::CountPopulation64(data);
50 } else { 49 } else {
51 count += base::bits::CountPopulation32(static_cast<uint32_t>(data)); 50 count += base::bits::CountPopulation32(static_cast<uint32_t>(data));
52 } 51 }
53 } 52 }
54 return count; 53 return count;
55 } 54 }
56 55
57 } // namespace internal 56 } // namespace internal
58 } // namespace v8 57 } // namespace v8
OLDNEW
« no previous file with comments | « src/background-parsing-task.h ('k') | src/code-stubs.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698