v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
copying-phase.cc
Go to the documentation of this file.
1// Copyright 2022 the V8 project authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
6
8
9int CountDecimalDigits(uint32_t value) {
10 int result = 1;
11 while (value > 9) {
12 result++;
13 value = value / 10;
14 }
15 return result;
16}
17
18std::ostream& operator<<(std::ostream& os, PaddingSpace padding) {
19 if (padding.spaces > 10000) return os;
20 for (int i = 0; i < padding.spaces; ++i) {
21 os << ' ';
22 }
23 return os;
24}
25
26} // namespace v8::internal::compiler::turboshaft
ZoneVector< RpoNumber > & result
std::ostream & operator<<(std::ostream &os, PaddingSpace padding)
int CountDecimalDigits(uint32_t value)