v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
json-stringifier.cc File Reference
Include dependency graph for json-stringifier.cc:

Go to the source code of this file.

Classes

class  v8::internal::JsonStringifier
 
class  v8::internal::JsonStringifier::NoExtendBuilder< DestChar >
 
class  v8::internal::JsonStringifier::SimplePropertyKeyCache
 
class  v8::internal::CircularStructureMessageBuilder
 
class  v8::internal::OutBuffer< Char >
 
class  v8::internal::ContinuationRecord
 
class  v8::internal::FastJsonStringifier< Char >
 

Namespaces

namespace  v8
 
namespace  v8::internal
 

Macros

#define CASE_WITH_INTERRUPT(kind)
 
#define CASE_WITH_TRANSITION(kind)
 
#define CASE(kind)
 

Enumerations

enum  v8::internal::FastJsonStringifierResult {
  v8::internal::SUCCESS , v8::internal::JS_OBJECT , v8::internal::JS_ARRAY , v8::internal::UNDEFINED ,
  v8::internal::CHANGE_ENCODING , v8::internal::SLOW_PATH , v8::internal::EXCEPTION
}
 
enum class  v8::internal::FastJsonStringifierObjectKeyResult : uint8_t { v8::internal::kSuccess , v8::internal::kNeedsEscaping , v8::internal::kChangeEncoding }
 
enum class  v8::internal::ResumeJSObjectMode : uint8_t { v8::internal::kWithMapCache , v8::internal::kWithoutMapCache , v8::internal::kBuildingMapCache }
 

Functions

bool v8::internal::MayHaveInterestingProperties (Isolate *isolate, Tagged< JSReceiver > object)
 
MaybeDirectHandle< Objectv8::internal::JsonStringify (Isolate *isolate, Handle< JSAny > object, Handle< JSAny > replacer, Handle< Object > gap)
 

Variables

static constexpr char v8::internal::kJsonStringifierZoneName [] = "json-stringifier-zone"
 

Macro Definition Documentation

◆ CASE

#define CASE ( kind)
Value:
case kind: \
if constexpr (IsHoleyElementsKind(kind)) { \
if (V8_UNLIKELY(!Protectors::IsNoElementsIntact(isolate_))) { \
return SLOW_PATH; \
} \
} \
if (V8_UNLIKELY(length > kArrayInterruptLength)) { \
return SerializeFixedArrayWithInterruptCheck<kind>(elements, 0, length); \
} else { \
return SerializeFixedArray<kind>(elements, 0, length); \
}
Isolate * isolate_
Builtins::Kind kind
Definition builtins.cc:40
#define V8_UNLIKELY(condition)
Definition v8config.h:660

◆ CASE_WITH_INTERRUPT

#define CASE_WITH_INTERRUPT ( kind)
Value:
case kind: \
result = SerializeFixedArrayWithInterruptCheck<kind>(object, length, \
&slow_path_index); \
break;
ZoneVector< RpoNumber > & result

◆ CASE_WITH_TRANSITION

#define CASE_WITH_TRANSITION ( kind)
Value:
case kind: \
result = SerializeFixedArrayWithPossibleTransitions<kind>( \
object, length, &slow_path_index); \
break;