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
5
#include "
src/compiler/turboshaft/copying-phase.h
"
6
7
namespace
v8::internal::compiler::turboshaft
{
8
9
int
CountDecimalDigits
(uint32_t value) {
10
int
result
= 1;
11
while
(value > 9) {
12
result
++;
13
value = value / 10;
14
}
15
return
result
;
16
}
17
18
std::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
copying-phase.h
result
ZoneVector< RpoNumber > & result
Definition
jump-threading.cc:21
v8::internal::compiler::turboshaft
Definition
builtins.h:33
v8::internal::compiler::turboshaft::operator<<
std::ostream & operator<<(std::ostream &os, PaddingSpace padding)
Definition
copying-phase.cc:18
v8::internal::compiler::turboshaft::CountDecimalDigits
int CountDecimalDigits(uint32_t value)
Definition
copying-phase.cc:9
v8::internal
Definition
api-arguments-inl.h:20
v8::internal::compiler::turboshaft::PaddingSpace
Definition
copying-phase.h:37
v8::internal::compiler::turboshaft::PaddingSpace::spaces
int spaces
Definition
copying-phase.h:38
src
compiler
turboshaft
copying-phase.cc
Generated on Sun Apr 6 2025 21:08:52 for v8 by
1.12.0