OLD | NEW |
1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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 #if V8_TARGET_ARCH_ARM64 | 5 #if V8_TARGET_ARCH_ARM64 |
6 | 6 |
7 #include "src/arm64/utils-arm64.h" | 7 #include "src/arm64/utils-arm64.h" |
8 | 8 |
9 | 9 |
10 namespace v8 { | 10 namespace v8 { |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 return value & -value; | 82 return value & -value; |
83 } | 83 } |
84 | 84 |
85 | 85 |
86 int MaskToBit(uint64_t mask) { | 86 int MaskToBit(uint64_t mask) { |
87 DCHECK(CountSetBits(mask, 64) == 1); | 87 DCHECK(CountSetBits(mask, 64) == 1); |
88 return CountTrailingZeros(mask, 64); | 88 return CountTrailingZeros(mask, 64); |
89 } | 89 } |
90 | 90 |
91 | 91 |
92 } } // namespace v8::internal | 92 } // namespace internal |
| 93 } // namespace v8 |
93 | 94 |
94 #endif // V8_TARGET_ARCH_ARM64 | 95 #endif // V8_TARGET_ARCH_ARM64 |
OLD | NEW |