v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
v8::internal::JsonStringifier Class Reference
Collaboration diagram for v8::internal::JsonStringifier:

Classes

class  NoExtendBuilder
 
class  SimplePropertyKeyCache
 

Public Member Functions

 JsonStringifier (Isolate *isolate)
 
 ~JsonStringifier ()
 
V8_WARN_UNUSED_RESULT MaybeDirectHandle< ObjectStringify (Handle< JSAny > object, Handle< JSAny > replacer, Handle< Object > gap)
 
template<ElementsKind kind>
JsonStringifier::Result SerializeFixedArrayWithInterruptCheck (DirectHandle< JSArray > array, uint32_t length, uint32_t *slow_path_index)
 
template<ElementsKind kind>
JsonStringifier::Result SerializeFixedArrayWithPossibleTransitions (DirectHandle< JSArray > array, uint32_t length, uint32_t *slow_path_index)
 
template<ElementsKind kind, typename T >
JsonStringifier::Result SerializeFixedArrayElement (Tagged< T > elements, uint32_t i, Tagged< JSArray > array, bool bailout_on_hole)
 
template<typename SrcChar , typename DestChar , bool raw_json>
bool SerializeStringUnchecked_ (base::Vector< const SrcChar > src, NoExtendBuilder< DestChar > *dest)
 
template<typename SrcChar , typename DestChar , bool raw_json>
bool SerializeString_ (Tagged< String > string, const DisallowGarbageCollection &no_gc)
 

Private Types

enum  Result { UNCHANGED , SUCCESS , EXCEPTION , NEED_STACK }
 
using KeyObject = std::pair<Handle<Object>, Handle<Object>>
 

Private Member Functions

bool InitializeReplacer (Handle< JSAny > replacer)
 
bool InitializeGap (Handle< Object > gap)
 
V8_WARN_UNUSED_RESULT MaybeHandle< JSAnyApplyToJsonFunction (Handle< JSAny > object, DirectHandle< Object > key)
 
V8_WARN_UNUSED_RESULT MaybeHandle< JSAnyApplyReplacerFunction (Handle< JSAny > value, DirectHandle< Object > key, DirectHandle< Object > initial_holder)
 
V8_INLINE Result SerializeObject (Handle< JSAny > obj)
 
V8_INLINE Result SerializeElement (Isolate *isolate, Handle< JSAny > object, int i)
 
V8_INLINE Result SerializeProperty (Handle< JSAny > object, bool deferred_comma, Handle< String > deferred_key)
 
template<typename SrcChar , typename DestChar >
V8_INLINE void Append (SrcChar c)
 
V8_INLINE void AppendCharacter (uint8_t c)
 
template<size_t N>
V8_INLINE void AppendCStringLiteral (const char(&literal)[N])
 
template<typename SrcChar >
V8_INLINE void AppendCString (const SrcChar *s)
 
template<typename SrcChar >
V8_INLINE void AppendString (std::basic_string_view< SrcChar > s)
 
V8_INLINE bool CurrentPartCanFit (size_t length)
 
V8_INLINE bool EscapedLengthIfCurrentPartFits (size_t length)
 
void AppendStringByCopy (Tagged< String > string, size_t length, const DisallowGarbageCollection &no_gc)
 
V8_NOINLINE void AppendString (Handle< String > string_handle)
 
template<typename SrcChar >
void AppendSubstringByCopy (const SrcChar *src, size_t count)
 
template<typename SrcChar >
V8_NOINLINE void AppendSubstring (const SrcChar *src, size_t from, size_t to)
 
bool HasValidCurrentIndex () const
 
template<bool deferred_string_key>
Result Serialize_ (Handle< JSAny > object, bool comma, Handle< Object > key)
 
V8_INLINE void SerializeDeferredKey (bool deferred_comma, Handle< Object > deferred_key)
 
Result SerializeSmi (Tagged< Smi > object)
 
Result SerializeDouble (double number)
 
V8_INLINE Result SerializeHeapNumber (DirectHandle< HeapNumber > object)
 
Result SerializeJSPrimitiveWrapper (Handle< JSPrimitiveWrapper > object, Handle< Object > key)
 
V8_INLINE Result SerializeJSArray (Handle< JSArray > object, Handle< Object > key)
 
V8_INLINE Result SerializeJSObject (Handle< JSObject > object, Handle< Object > key)
 
Result SerializeJSProxy (Handle< JSProxy > object, Handle< Object > key)
 
Result SerializeJSReceiverSlow (DirectHandle< JSReceiver > object)
 
template<ElementsKind kind>
V8_INLINE Result SerializeFixedArrayWithInterruptCheck (DirectHandle< JSArray > array, uint32_t length, uint32_t *slow_path_index)
 
template<ElementsKind kind>
V8_INLINE Result SerializeFixedArrayWithPossibleTransitions (DirectHandle< JSArray > array, uint32_t length, uint32_t *slow_path_index)
 
template<ElementsKind kind, typename T >
V8_INLINE Result SerializeFixedArrayElement (Tagged< T > elements, uint32_t i, Tagged< JSArray > array, bool can_treat_hole_as_undefined)
 
Result SerializeArrayLikeSlow (DirectHandle< JSReceiver > object, uint32_t start, uint32_t length)
 
template<bool raw_json>
bool SerializeString (Handle< String > object)
 
template<typename SrcChar , typename DestChar , bool raw_json>
V8_INLINE bool SerializeString_ (Tagged< String > string, const DisallowGarbageCollection &no_gc)
 
template<typename DestChar >
bool TrySerializeSimplePropertyKey (Tagged< String > string, const DisallowGarbageCollection &no_gc)
 
V8_INLINE void NewLine ()
 
V8_NOINLINE void NewLineOutline ()
 
V8_INLINE void Indent ()
 
V8_INLINE void Unindent ()
 
V8_INLINE void Separator (bool first)
 
DirectHandle< JSReceiverCurrentHolder (DirectHandle< Object > value, DirectHandle< Object > inital_holder)
 
Result StackPush (Handle< Object > object, Handle< Object > key)
 
void StackPop ()
 
Handle< StringConstructCircularStructureErrorMessage (DirectHandle< Object > last_key, size_t start_index)
 
Factoryfactory ()
 
V8_NOINLINE void Extend ()
 
V8_NOINLINE void ChangeEncoding ()
 

Static Private Member Functions

template<typename SrcChar , typename DestChar , bool raw_json>
static V8_INLINE bool SerializeStringUnchecked_ (base::Vector< const SrcChar > src, NoExtendBuilder< DestChar > *dest)
 

Private Attributes

Isolateisolate_
 
String::Encoding encoding_
 
Handle< FixedArrayproperty_list_
 
Handle< JSReceiverreplacer_function_
 
uint8_t * one_byte_ptr_
 
base::uc16gap_
 
base::uc16two_byte_ptr_
 
void * part_ptr_
 
int indent_
 
size_t part_length_
 
size_t current_index_
 
int stack_nesting_level_
 
bool overflowed_
 
bool need_stack_
 
std::vector< KeyObjectstack_
 
SimplePropertyKeyCache key_cache_
 
uint8_t one_byte_array_ [kInitialPartLength]
 

Static Private Attributes

static constexpr int kCircularErrorMessagePrefixCount = 2
 
static constexpr int kCircularErrorMessagePostfixCount = 1
 
static constexpr size_t kInitialPartLength = 2048
 
static constexpr size_t kMaxPartLength = 16 * 1024
 
static constexpr size_t kPartLengthGrowthFactor = 2
 

Detailed Description

Definition at line 32 of file json-stringifier.cc.

Member Typedef Documentation

◆ KeyObject

Definition at line 449 of file json-stringifier.cc.

Member Enumeration Documentation

◆ Result

Enumerator
UNCHANGED 
SUCCESS 
EXCEPTION 
NEED_STACK 

Definition at line 46 of file json-stringifier.cc.

Constructor & Destructor Documentation

◆ JsonStringifier()

v8::internal::JsonStringifier::JsonStringifier ( Isolate * isolate)
explicit

Definition at line 560 of file json-stringifier.cc.

◆ ~JsonStringifier()

v8::internal::JsonStringifier::~JsonStringifier ( )
inline

Definition at line 36 of file json-stringifier.cc.

Here is the call graph for this function:

Member Function Documentation

◆ Append()

template<typename SrcChar , typename DestChar >
V8_INLINE void v8::internal::JsonStringifier::Append ( SrcChar c)
inlineprivate

Definition at line 80 of file json-stringifier.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ AppendCharacter()

V8_INLINE void v8::internal::JsonStringifier::AppendCharacter ( uint8_t c)
inlineprivate

Definition at line 94 of file json-stringifier.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ AppendCString()

template<typename SrcChar >
V8_INLINE void v8::internal::JsonStringifier::AppendCString ( const SrcChar * s)
inlineprivate

Definition at line 121 of file json-stringifier.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ AppendCStringLiteral()

template<size_t N>
V8_INLINE void v8::internal::JsonStringifier::AppendCStringLiteral ( const char(&) literal[N])
inlineprivate

Definition at line 103 of file json-stringifier.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ AppendString() [1/2]

V8_NOINLINE void v8::internal::JsonStringifier::AppendString ( Handle< String > string_handle)
inlineprivate

Definition at line 187 of file json-stringifier.cc.

Here is the call graph for this function:

◆ AppendString() [2/2]

template<typename SrcChar >
V8_INLINE void v8::internal::JsonStringifier::AppendString ( std::basic_string_view< SrcChar > s)
inlineprivate

Definition at line 130 of file json-stringifier.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ AppendStringByCopy()

void v8::internal::JsonStringifier::AppendStringByCopy ( Tagged< String > string,
size_t length,
const DisallowGarbageCollection & no_gc )
inlineprivate

Definition at line 154 of file json-stringifier.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ AppendSubstring()

template<typename SrcChar >
V8_NOINLINE void v8::internal::JsonStringifier::AppendSubstring ( const SrcChar * src,
size_t from,
size_t to )
inlineprivate

Definition at line 228 of file json-stringifier.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ AppendSubstringByCopy()

template<typename SrcChar >
void v8::internal::JsonStringifier::AppendSubstringByCopy ( const SrcChar * src,
size_t count )
inlineprivate

Definition at line 209 of file json-stringifier.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ApplyReplacerFunction()

MaybeHandle< JSAny > v8::internal::JsonStringifier::ApplyReplacerFunction ( Handle< JSAny > value,
DirectHandle< Object > key,
DirectHandle< Object > initial_holder )
private

Definition at line 726 of file json-stringifier.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ApplyToJsonFunction()

MaybeHandle< JSAny > v8::internal::JsonStringifier::ApplyToJsonFunction ( Handle< JSAny > object,
DirectHandle< Object > key )
private

Definition at line 705 of file json-stringifier.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ChangeEncoding()

void v8::internal::JsonStringifier::ChangeEncoding ( )
private

Definition at line 1757 of file json-stringifier.cc.

Here is the caller graph for this function:

◆ ConstructCircularStructureErrorMessage()

Handle< String > v8::internal::JsonStringifier::ConstructCircularStructureErrorMessage ( DirectHandle< Object > last_key,
size_t start_index )
private

Definition at line 873 of file json-stringifier.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ CurrentHolder()

DirectHandle< JSReceiver > v8::internal::JsonStringifier::CurrentHolder ( DirectHandle< Object > value,
DirectHandle< Object > inital_holder )
private

Definition at line 740 of file json-stringifier.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ CurrentPartCanFit()

V8_INLINE bool v8::internal::JsonStringifier::CurrentPartCanFit ( size_t length)
inlineprivate

Definition at line 138 of file json-stringifier.cc.

Here is the caller graph for this function:

◆ EscapedLengthIfCurrentPartFits()

V8_INLINE bool v8::internal::JsonStringifier::EscapedLengthIfCurrentPartFits ( size_t length)
inlineprivate

Definition at line 146 of file json-stringifier.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Extend()

void v8::internal::JsonStringifier::Extend ( )
private

Definition at line 1732 of file json-stringifier.cc.

Here is the caller graph for this function:

◆ factory()

Factory * v8::internal::JsonStringifier::factory ( )
inlineprivate

Definition at line 429 of file json-stringifier.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ HasValidCurrentIndex()

bool v8::internal::JsonStringifier::HasValidCurrentIndex ( ) const
inlineprivate

Definition at line 239 of file json-stringifier.cc.

Here is the caller graph for this function:

◆ Indent()

V8_INLINE void v8::internal::JsonStringifier::Indent ( )
inlineprivate

Definition at line 406 of file json-stringifier.cc.

Here is the caller graph for this function:

◆ InitializeGap()

bool v8::internal::JsonStringifier::InitializeGap ( Handle< Object > gap)
private

Definition at line 664 of file json-stringifier.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ InitializeReplacer()

bool v8::internal::JsonStringifier::InitializeReplacer ( Handle< JSAny > replacer)
private

Definition at line 614 of file json-stringifier.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ NewLine()

void v8::internal::JsonStringifier::NewLine ( )
private

Definition at line 1673 of file json-stringifier.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ NewLineOutline()

void v8::internal::JsonStringifier::NewLineOutline ( )
private

Definition at line 1678 of file json-stringifier.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Separator()

void v8::internal::JsonStringifier::Separator ( bool first)
private

Definition at line 1683 of file json-stringifier.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Serialize_()

template<bool deferred_string_key>
JsonStringifier::Result v8::internal::JsonStringifier::Serialize_ ( Handle< JSAny > object,
bool comma,
Handle< Object > key )
private

Definition at line 924 of file json-stringifier.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ SerializeArrayLikeSlow()

JsonStringifier::Result v8::internal::JsonStringifier::SerializeArrayLikeSlow ( DirectHandle< JSReceiver > object,
uint32_t start,
uint32_t length )
private

Definition at line 1281 of file json-stringifier.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ SerializeDeferredKey()

void v8::internal::JsonStringifier::SerializeDeferredKey ( bool deferred_comma,
Handle< Object > deferred_key )
private

Definition at line 1688 of file json-stringifier.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ SerializeDouble()

JsonStringifier::Result v8::internal::JsonStringifier::SerializeDouble ( double number)
private

Definition at line 1100 of file json-stringifier.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ SerializeElement()

V8_INLINE Result v8::internal::JsonStringifier::SerializeElement ( Isolate * isolate,
Handle< JSAny > object,
int i )
inlineprivate

Definition at line 64 of file json-stringifier.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ SerializeFixedArrayElement() [1/2]

template<ElementsKind kind, typename T >
JsonStringifier::Result v8::internal::JsonStringifier::SerializeFixedArrayElement ( Tagged< T > elements,
uint32_t i,
Tagged< JSArray > array,
bool bailout_on_hole )

Definition at line 1258 of file json-stringifier.cc.

Here is the call graph for this function:

◆ SerializeFixedArrayElement() [2/2]

template<ElementsKind kind, typename T >
V8_INLINE Result v8::internal::JsonStringifier::SerializeFixedArrayElement ( Tagged< T > elements,
uint32_t i,
Tagged< JSArray > array,
bool can_treat_hole_as_undefined )
private
Here is the caller graph for this function:

◆ SerializeFixedArrayWithInterruptCheck() [1/2]

template<ElementsKind kind>
V8_INLINE Result v8::internal::JsonStringifier::SerializeFixedArrayWithInterruptCheck ( DirectHandle< JSArray > array,
uint32_t length,
uint32_t * slow_path_index )
private

◆ SerializeFixedArrayWithInterruptCheck() [2/2]

template<ElementsKind kind>
JsonStringifier::Result v8::internal::JsonStringifier::SerializeFixedArrayWithInterruptCheck ( DirectHandle< JSArray > array,
uint32_t length,
uint32_t * slow_path_index )

Definition at line 1169 of file json-stringifier.cc.

Here is the call graph for this function:

◆ SerializeFixedArrayWithPossibleTransitions() [1/2]

template<ElementsKind kind>
V8_INLINE Result v8::internal::JsonStringifier::SerializeFixedArrayWithPossibleTransitions ( DirectHandle< JSArray > array,
uint32_t length,
uint32_t * slow_path_index )
private

◆ SerializeFixedArrayWithPossibleTransitions() [2/2]

template<ElementsKind kind>
JsonStringifier::Result v8::internal::JsonStringifier::SerializeFixedArrayWithPossibleTransitions ( DirectHandle< JSArray > array,
uint32_t length,
uint32_t * slow_path_index )

Definition at line 1214 of file json-stringifier.cc.

Here is the call graph for this function:

◆ SerializeHeapNumber()

V8_INLINE Result v8::internal::JsonStringifier::SerializeHeapNumber ( DirectHandle< HeapNumber > object)
inlineprivate

Definition at line 250 of file json-stringifier.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ SerializeJSArray()

JsonStringifier::Result v8::internal::JsonStringifier::SerializeJSArray ( Handle< JSArray > object,
Handle< Object > key )
private

Definition at line 1113 of file json-stringifier.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ SerializeJSObject()

JsonStringifier::Result v8::internal::JsonStringifier::SerializeJSObject ( Handle< JSObject > object,
Handle< Object > key )
private

Definition at line 1317 of file json-stringifier.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ SerializeJSPrimitiveWrapper()

JsonStringifier::Result v8::internal::JsonStringifier::SerializeJSPrimitiveWrapper ( Handle< JSPrimitiveWrapper > object,
Handle< Object > key )
private

Definition at line 1058 of file json-stringifier.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ SerializeJSProxy()

JsonStringifier::Result v8::internal::JsonStringifier::SerializeJSProxy ( Handle< JSProxy > object,
Handle< Object > key )
private

Definition at line 1431 of file json-stringifier.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ SerializeJSReceiverSlow()

JsonStringifier::Result v8::internal::JsonStringifier::SerializeJSReceiverSlow ( DirectHandle< JSReceiver > object)
private

Definition at line 1401 of file json-stringifier.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ SerializeObject()

V8_INLINE Result v8::internal::JsonStringifier::SerializeObject ( Handle< JSAny > obj)
inlineprivate

Definition at line 58 of file json-stringifier.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ SerializeProperty()

V8_INLINE Result v8::internal::JsonStringifier::SerializeProperty ( Handle< JSAny > object,
bool deferred_comma,
Handle< String > deferred_key )
inlineprivate

Definition at line 73 of file json-stringifier.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ SerializeSmi()

JsonStringifier::Result v8::internal::JsonStringifier::SerializeSmi ( Tagged< Smi > object)
private

Definition at line 1089 of file json-stringifier.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ SerializeString()

template<bool raw_json>
bool v8::internal::JsonStringifier::SerializeString ( Handle< String > object)
private

Definition at line 1713 of file json-stringifier.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ SerializeString_() [1/2]

template<typename SrcChar , typename DestChar , bool raw_json>
V8_INLINE bool v8::internal::JsonStringifier::SerializeString_ ( Tagged< String > string,
const DisallowGarbageCollection & no_gc )
private
Here is the caller graph for this function:

◆ SerializeString_() [2/2]

template<typename SrcChar , typename DestChar , bool raw_json>
bool v8::internal::JsonStringifier::SerializeString_ ( Tagged< String > string,
const DisallowGarbageCollection & no_gc )

Definition at line 1541 of file json-stringifier.cc.

Here is the call graph for this function:

◆ SerializeStringUnchecked_() [1/2]

template<typename SrcChar , typename DestChar , bool raw_json>
static V8_INLINE bool v8::internal::JsonStringifier::SerializeStringUnchecked_ ( base::Vector< const SrcChar > src,
NoExtendBuilder< DestChar > * dest )
staticprivate
Here is the caller graph for this function:

◆ SerializeStringUnchecked_() [2/2]

template<typename SrcChar , typename DestChar , bool raw_json>
bool v8::internal::JsonStringifier::SerializeStringUnchecked_ ( base::Vector< const SrcChar > src,
NoExtendBuilder< DestChar > * dest )

Definition at line 1468 of file json-stringifier.cc.

Here is the call graph for this function:

◆ StackPop()

void v8::internal::JsonStringifier::StackPop ( )
private

Definition at line 790 of file json-stringifier.cc.

Here is the caller graph for this function:

◆ StackPush()

JsonStringifier::Result v8::internal::JsonStringifier::StackPush ( Handle< Object > object,
Handle< Object > key )
private

Definition at line 754 of file json-stringifier.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Stringify()

MaybeDirectHandle< Object > v8::internal::JsonStringifier::Stringify ( Handle< JSAny > object,
Handle< JSAny > replacer,
Handle< Object > gap )

Definition at line 577 of file json-stringifier.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ TrySerializeSimplePropertyKey()

template<typename DestChar >
bool v8::internal::JsonStringifier::TrySerializeSimplePropertyKey ( Tagged< String > string,
const DisallowGarbageCollection & no_gc )
private

Definition at line 1627 of file json-stringifier.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Unindent()

V8_INLINE void v8::internal::JsonStringifier::Unindent ( )
inlineprivate

Definition at line 407 of file json-stringifier.cc.

Here is the caller graph for this function:

Member Data Documentation

◆ current_index_

size_t v8::internal::JsonStringifier::current_index_
private

Definition at line 444 of file json-stringifier.cc.

◆ encoding_

String::Encoding v8::internal::JsonStringifier::encoding_
private

Definition at line 435 of file json-stringifier.cc.

◆ gap_

base::uc16* v8::internal::JsonStringifier::gap_
private

Definition at line 439 of file json-stringifier.cc.

◆ indent_

int v8::internal::JsonStringifier::indent_
private

Definition at line 442 of file json-stringifier.cc.

◆ isolate_

Isolate* v8::internal::JsonStringifier::isolate_
private

Definition at line 434 of file json-stringifier.cc.

◆ kCircularErrorMessagePostfixCount

int v8::internal::JsonStringifier::kCircularErrorMessagePostfixCount = 1
staticconstexprprivate

Definition at line 423 of file json-stringifier.cc.

◆ kCircularErrorMessagePrefixCount

int v8::internal::JsonStringifier::kCircularErrorMessagePrefixCount = 2
staticconstexprprivate

Definition at line 422 of file json-stringifier.cc.

◆ key_cache_

SimplePropertyKeyCache v8::internal::JsonStringifier::key_cache_
private

Definition at line 452 of file json-stringifier.cc.

◆ kInitialPartLength

size_t v8::internal::JsonStringifier::kInitialPartLength = 2048
staticconstexprprivate

Definition at line 425 of file json-stringifier.cc.

◆ kMaxPartLength

size_t v8::internal::JsonStringifier::kMaxPartLength = 16 * 1024
staticconstexprprivate

Definition at line 426 of file json-stringifier.cc.

◆ kPartLengthGrowthFactor

size_t v8::internal::JsonStringifier::kPartLengthGrowthFactor = 2
staticconstexprprivate

Definition at line 427 of file json-stringifier.cc.

◆ need_stack_

bool v8::internal::JsonStringifier::need_stack_
private

Definition at line 447 of file json-stringifier.cc.

◆ one_byte_array_

uint8_t v8::internal::JsonStringifier::one_byte_array_[kInitialPartLength]
private

Definition at line 453 of file json-stringifier.cc.

◆ one_byte_ptr_

uint8_t* v8::internal::JsonStringifier::one_byte_ptr_
private

Definition at line 438 of file json-stringifier.cc.

◆ overflowed_

bool v8::internal::JsonStringifier::overflowed_
private

Definition at line 446 of file json-stringifier.cc.

◆ part_length_

size_t v8::internal::JsonStringifier::part_length_
private

Definition at line 443 of file json-stringifier.cc.

◆ part_ptr_

void* v8::internal::JsonStringifier::part_ptr_
private

Definition at line 441 of file json-stringifier.cc.

◆ property_list_

Handle<FixedArray> v8::internal::JsonStringifier::property_list_
private

Definition at line 436 of file json-stringifier.cc.

◆ replacer_function_

Handle<JSReceiver> v8::internal::JsonStringifier::replacer_function_
private

Definition at line 437 of file json-stringifier.cc.

◆ stack_

std::vector<KeyObject> v8::internal::JsonStringifier::stack_
private

Definition at line 450 of file json-stringifier.cc.

◆ stack_nesting_level_

int v8::internal::JsonStringifier::stack_nesting_level_
private

Definition at line 445 of file json-stringifier.cc.

◆ two_byte_ptr_

base::uc16* v8::internal::JsonStringifier::two_byte_ptr_
private

Definition at line 440 of file json-stringifier.cc.


The documentation for this class was generated from the following file: