![]() |
v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
|
Public Member Functions | |
OutBuffer (AccountingAllocator *allocator) | |
template<typename SrcChar > requires (sizeof(Char) >= sizeof(SrcChar)) | |
V8_INLINE void | AppendCharacter (SrcChar c) |
template<typename SrcChar > requires (sizeof(Char) >= sizeof(SrcChar)) | |
void | Append (const SrcChar *chars, size_t length) |
void | EnsureCapacity (size_t size) |
size_t | length () const |
template<typename Dst > | |
void | CopyTo (Dst *dst) |
Private Member Functions | |
V8_NOINLINE V8_PRESERVE_MOST void | Extend (size_t min_size) |
V8_INLINE size_t | SegmentFreeChars () const |
V8_INLINE size_t | StackBufferLength () const |
V8_INLINE size_t | CurSegmentLength () const |
V8_INLINE size_t | SegmentCapacity (size_t segment) |
V8_INLINE size_t | CurSegmentCapacity () |
V8_INLINE void | ReduceCurrentCapacity (size_t size) |
V8_INLINE bool | ZoneUsed () const |
Private Attributes | |
AccountingAllocator * | allocator_ |
Char | stack_buffer_ [kStackBufferSize] |
size_t | stack_buffer_size_ |
Char * | cur_ |
Char * | segment_end_ |
std::optional< Zone > | zone_ |
std::optional< ZoneList< base::Vector< Char > > > | segments_ |
Static Private Attributes | |
static constexpr uint32_t | kInitialSegmentSize = 2 * KB |
static constexpr uint32_t | kMaxSegmentSize = 32 * KB |
static constexpr uint8_t | kInitialSegmentSizeHighestBit |
static constexpr uint8_t | kMaxSegmentSizeHighestBit |
static constexpr uint8_t | kNumVariableSegments |
static constexpr size_t | kStackBufferSize = 256 |
Definition at line 1769 of file json-stringifier.cc.
|
inlineexplicit |
Definition at line 1771 of file json-stringifier.cc.
|
inline |
|
inline |
|
inline |
|
inlineprivate |
Definition at line 1875 of file json-stringifier.cc.
|
inlineprivate |
Definition at line 1867 of file json-stringifier.cc.
|
inline |
|
inlineprivate |
|
inline |
Definition at line 1798 of file json-stringifier.cc.
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
Definition at line 1863 of file json-stringifier.cc.
|
inlineprivate |
|
private |
Definition at line 1888 of file json-stringifier.cc.
|
private |
Definition at line 1891 of file json-stringifier.cc.
|
staticconstexprprivate |
Definition at line 1835 of file json-stringifier.cc.
|
staticconstexprprivate |
Definition at line 1839 of file json-stringifier.cc.
|
staticconstexprprivate |
Definition at line 1836 of file json-stringifier.cc.
|
staticconstexprprivate |
Definition at line 1841 of file json-stringifier.cc.
|
staticconstexprprivate |
Definition at line 1843 of file json-stringifier.cc.
|
staticconstexprprivate |
Definition at line 1845 of file json-stringifier.cc.
|
private |
Definition at line 1892 of file json-stringifier.cc.
|
private |
Definition at line 1894 of file json-stringifier.cc.
|
private |
Definition at line 1889 of file json-stringifier.cc.
|
private |
Definition at line 1890 of file json-stringifier.cc.
|
private |
Definition at line 1893 of file json-stringifier.cc.