v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
v8::internal::FactoryBase< Impl > Class Template Reference

#include <factory-base.h>

Inheritance diagram for v8::internal::FactoryBase< Impl >:
Collaboration diagram for v8::internal::FactoryBase< Impl >:

Public Member Functions

Handle< CodeNewCode (const NewCodeOptions &options)
 
DirectHandle< CodeWrapperNewCodeWrapper ()
 
Handle< BooleanToBoolean (bool value)
 
template<AllocationType allocation = AllocationType::kYoung>
Handle< NumberNewNumber (double value)
 
template<AllocationType allocation = AllocationType::kYoung>
Handle< NumberNewNumberFromInt (int32_t value)
 
template<AllocationType allocation = AllocationType::kYoung>
Handle< NumberNewNumberFromUint (uint32_t value)
 
template<AllocationType allocation = AllocationType::kYoung>
DirectHandle< NumberNewNumberFromSize (size_t value)
 
template<AllocationType allocation = AllocationType::kYoung>
DirectHandle< NumberNewNumberFromInt64 (int64_t value)
 
template<AllocationType allocation = AllocationType::kYoung>
Handle< HeapNumberNewHeapNumber (double value)
 
template<AllocationType allocation = AllocationType::kYoung>
Handle< HeapNumberNewHeapNumberFromBits (uint64_t bits)
 
template<AllocationType allocation = AllocationType::kYoung>
Handle< HeapNumberNewHeapNumberWithHoleNaN ()
 
template<AllocationType allocation = AllocationType::kYoung>
Handle< HeapNumberNewHeapInt32 (int32_t value)
 
template<AllocationType allocation>
Handle< HeapNumberNewHeapNumber ()
 
Handle< StructNewStruct (InstanceType type, AllocationType allocation=AllocationType::kYoung)
 
Handle< AccessorPairNewAccessorPair ()
 
Handle< FixedArrayNewFixedArray (int length, AllocationType allocation=AllocationType::kYoung)
 
Handle< TrustedFixedArrayNewTrustedFixedArray (int length, AllocationType allocation=AllocationType::kTrusted)
 
Handle< ProtectedFixedArrayNewProtectedFixedArray (int length)
 
Handle< FixedArrayNewFixedArrayWithMap (DirectHandle< Map > map, int length, AllocationType allocation=AllocationType::kYoung)
 
Handle< FixedArrayNewFixedArrayWithHoles (int length, AllocationType allocation=AllocationType::kYoung)
 
DirectHandle< FixedArrayNewFixedArrayWithZeroes (int length, AllocationType allocation=AllocationType::kYoung)
 
Handle< FixedArrayBaseNewFixedDoubleArray (int length, AllocationType allocation=AllocationType::kYoung)
 
Handle< WeakFixedArrayNewWeakFixedArrayWithMap (Tagged< Map > map, int length, AllocationType allocation=AllocationType::kYoung)
 
Handle< WeakFixedArrayNewWeakFixedArray (int length, AllocationType allocation=AllocationType::kYoung)
 
Handle< TrustedWeakFixedArrayNewTrustedWeakFixedArray (int length)
 
Handle< ProtectedWeakFixedArrayNewProtectedWeakFixedArray (int length)
 
Handle< ByteArrayNewByteArray (int length, AllocationType allocation=AllocationType::kYoung)
 
Handle< TrustedByteArrayNewTrustedByteArray (int length, AllocationType allocation_type=AllocationType::kTrusted)
 
DirectHandle< DeoptimizationLiteralArrayNewDeoptimizationLiteralArray (int length)
 
DirectHandle< DeoptimizationFrameTranslationNewDeoptimizationFrameTranslation (int length)
 
Handle< BytecodeArrayNewBytecodeArray (int length, const uint8_t *raw_bytecodes, int frame_size, uint16_t parameter_count, uint16_t max_arguments, DirectHandle< TrustedFixedArray > constant_pool, DirectHandle< TrustedByteArray > handler_table, AllocationType allocation=AllocationType::kTrusted)
 
DirectHandle< BytecodeWrapperNewBytecodeWrapper (AllocationType allocation=AllocationType::kOld)
 
Handle< ObjectBoilerplateDescriptionNewObjectBoilerplateDescription (int boilerplate, int all_properties, int index_keys, bool has_seen_proto)
 
Handle< ArrayBoilerplateDescriptionNewArrayBoilerplateDescription (ElementsKind elements_kind, DirectHandle< FixedArrayBase > constant_values)
 
DirectHandle< RegExpDataWrapperNewRegExpDataWrapper ()
 
DirectHandle< RegExpBoilerplateDescriptionNewRegExpBoilerplateDescription (DirectHandle< RegExpData > data, DirectHandle< String > source, Tagged< Smi > flags)
 
Handle< TemplateObjectDescriptionNewTemplateObjectDescription (DirectHandle< FixedArray > raw_strings, DirectHandle< FixedArray > cooked_strings)
 
Handle< ScriptNewScript (DirectHandle< UnionOf< String, Undefined > > source, ScriptEventType event_type=ScriptEventType::kCreate)
 
Handle< ScriptNewScriptWithId (DirectHandle< UnionOf< String, Undefined > > source, int script_id, ScriptEventType event_type=ScriptEventType::kCreate)
 
DirectHandle< SloppyArgumentsElementsNewSloppyArgumentsElements (int length, DirectHandle< Context > context, DirectHandle< FixedArray > arguments, AllocationType allocation=AllocationType::kYoung)
 
DirectHandle< ArrayListNewArrayList (int size, AllocationType allocation=AllocationType::kYoung)
 
Handle< SharedFunctionInfoNewSharedFunctionInfoForLiteral (FunctionLiteral *literal, DirectHandle< Script > script, bool is_toplevel)
 
Handle< SharedFunctionInfoCloneSharedFunctionInfo (DirectHandle< SharedFunctionInfo > other)
 
DirectHandle< SharedFunctionInfoWrapperNewSharedFunctionInfoWrapper (DirectHandle< SharedFunctionInfo > sfi)
 
Handle< PreparseDataNewPreparseData (int data_length, int children_length)
 
DirectHandle< UncompiledDataWithoutPreparseDataNewUncompiledDataWithoutPreparseData (Handle< String > inferred_name, int32_t start_position, int32_t end_position)
 
DirectHandle< UncompiledDataWithPreparseDataNewUncompiledDataWithPreparseData (Handle< String > inferred_name, int32_t start_position, int32_t end_position, Handle< PreparseData >)
 
DirectHandle< UncompiledDataWithoutPreparseDataWithJobNewUncompiledDataWithoutPreparseDataWithJob (Handle< String > inferred_name, int32_t start_position, int32_t end_position)
 
DirectHandle< UncompiledDataWithPreparseDataAndJobNewUncompiledDataWithPreparseDataAndJob (Handle< String > inferred_name, int32_t start_position, int32_t end_position, Handle< PreparseData >)
 
Handle< FeedbackMetadataNewFeedbackMetadata (int slot_count, int create_closure_slot_count, AllocationType allocation=AllocationType::kOld)
 
Handle< CoverageInfoNewCoverageInfo (const ZoneVector< SourceRange > &slots)
 
Handle< StringInternalizeString (base::Vector< const uint8_t > string, bool convert_encoding=false)
 
Handle< StringInternalizeString (base::Vector< const uint16_t > string, bool convert_encoding=false)
 
template<class StringTableKey >
Handle< StringInternalizeStringWithKey (StringTableKey *key)
 
Handle< SeqOneByteStringNewOneByteInternalizedString (base::Vector< const uint8_t > str, uint32_t raw_hash_field)
 
Handle< SeqTwoByteStringNewTwoByteInternalizedString (base::Vector< const base::uc16 > str, uint32_t raw_hash_field)
 
DirectHandle< SeqOneByteStringNewOneByteInternalizedStringFromTwoByte (base::Vector< const base::uc16 > str, uint32_t raw_hash_field)
 
Handle< SeqOneByteStringAllocateRawOneByteInternalizedString (int length, uint32_t raw_hash_field)
 
Handle< SeqTwoByteStringAllocateRawTwoByteInternalizedString (int length, uint32_t raw_hash_field)
 
Handle< StringLookupSingleCharacterStringFromCode (uint16_t code)
 
MaybeHandle< StringNewStringFromOneByte (base::Vector< const uint8_t > string, AllocationType allocation=AllocationType::kYoung)
 
Handle< StringNewStringFromAsciiChecked (const char *str, AllocationType allocation=AllocationType::kYoung)
 
Handle< StringNewStringFromAsciiChecked (std::string_view str, AllocationType allocation=AllocationType::kYoung)
 
V8_WARN_UNUSED_RESULT MaybeHandle< SeqOneByteStringNewRawOneByteString (int length, AllocationType allocation=AllocationType::kYoung)
 
V8_WARN_UNUSED_RESULT MaybeHandle< SeqTwoByteStringNewRawTwoByteString (int length, AllocationType allocation=AllocationType::kYoung)
 
template<template< typename > typename HandleType>
requires (std::is_convertible_v<HandleType<String>, DirectHandle<String>>)
V8_WARN_UNUSED_RESULT HandleType< String >::MaybeType NewConsString (HandleType< String > left, HandleType< String > right, AllocationType allocation=AllocationType::kYoung)
 
V8_WARN_UNUSED_RESULT Handle< StringNewConsString (DirectHandle< String > left, DirectHandle< String > right, int length, bool one_byte, AllocationType allocation=AllocationType::kYoung)
 
V8_WARN_UNUSED_RESULT Handle< StringNumberToString (DirectHandle< Object > number, NumberCacheMode mode=NumberCacheMode::kBoth)
 
V8_WARN_UNUSED_RESULT Handle< StringHeapNumberToString (DirectHandle< HeapNumber > number, double value, NumberCacheMode mode=NumberCacheMode::kBoth)
 
V8_WARN_UNUSED_RESULT Handle< StringSmiToString (Tagged< Smi > number, NumberCacheMode mode=NumberCacheMode::kBoth)
 
V8_WARN_UNUSED_RESULT MaybeHandle< SeqOneByteStringNewRawSharedOneByteString (int length)
 
V8_WARN_UNUSED_RESULT MaybeHandle< SeqTwoByteStringNewRawSharedTwoByteString (int length)
 
Handle< FreshlyAllocatedBigIntNewBigInt (uint32_t length, AllocationType allocation=AllocationType::kYoung)
 
Handle< ScopeInfoNewScopeInfo (int length, AllocationType type=AllocationType::kOld)
 
DirectHandle< SourceTextModuleInfoNewSourceTextModuleInfo ()
 
Handle< DescriptorArrayNewDescriptorArray (int number_of_descriptors, int slack=0, AllocationType allocation=AllocationType::kYoung)
 
Handle< ClassPositionsNewClassPositions (int start, int end)
 
Handle< SwissNameDictionaryNewSwissNameDictionary (int at_least_space_for=kSwissNameDictionaryInitialCapacity, AllocationType allocation=AllocationType::kYoung)
 
Handle< SwissNameDictionaryNewSwissNameDictionaryWithCapacity (int capacity, AllocationType allocation)
 
DirectHandle< FunctionTemplateRareDataNewFunctionTemplateRareData ()
 
MaybeDirectHandle< MapGetInPlaceInternalizedStringMap (Tagged< Map > from_string_map)
 
AllocationType RefineAllocationTypeForInPlaceInternalizableString (AllocationType allocation, Tagged< Map > string_map)
 
template<template< typename > typename HandleType>
requires (std::is_convertible_v<HandleType<String>, DirectHandle<String>>)
HandleType< String >::MaybeType NewConsString (HandleType< String > left, HandleType< String > right, AllocationType allocation)
 

Protected Member Functions

Tagged< HeapObjectAllocateRawArray (int size, AllocationType allocation)
 
Tagged< HeapObjectAllocateRawFixedArray (int length, AllocationType allocation)
 
Tagged< HeapObjectAllocateRawWeakArrayList (int length, AllocationType allocation)
 
template<typename StructType >
Tagged< StructType > NewStructInternal (InstanceType type, AllocationType allocation)
 
Tagged< StructNewStructInternal (ReadOnlyRoots roots, Tagged< Map > map, int size, AllocationType allocation)
 
Tagged< HeapObjectAllocateRawWithImmortalMap (int size, AllocationType allocation, Tagged< Map > map, AllocationAlignment alignment=kTaggedAligned)
 
Tagged< HeapObjectNewWithImmortalMap (Tagged< Map > map, AllocationType allocation)
 
Handle< FixedArrayNewFixedArrayWithFiller (DirectHandle< Map > map, int length, DirectHandle< HeapObject > filler, AllocationType allocation)
 
Handle< SharedFunctionInfoNewSharedFunctionInfo (AllocationType allocation)
 
Handle< SharedFunctionInfoNewSharedFunctionInfo (MaybeDirectHandle< String > maybe_name, MaybeDirectHandle< HeapObject > maybe_function_data, Builtin builtin, int len, AdaptArguments adapt, FunctionKind kind=FunctionKind::kNormalFunction)
 
Handle< StringMakeOrFindTwoCharacterString (uint16_t c1, uint16_t c2)
 
template<typename SeqStringT >
MaybeHandle< SeqStringT > NewRawStringWithMap (int length, Tagged< Map > map, AllocationType allocation)
 

Static Protected Attributes

static constexpr int kNumberToStringBufferSize = 32
 

Private Member Functions

Impl * impl ()
 
auto isolate ()
 
ReadOnlyRoots read_only_roots ()
 
Tagged< HeapObjectAllocateRaw (int size, AllocationType allocation, AllocationAlignment alignment=kTaggedAligned)
 

Private Attributes

friend TorqueGeneratedFactory< Impl >
 

Friends

template<class Derived , class Shape , class Super >
class TaggedArrayBase
 
template<class Derived , class Shape , class Super >
class PrimitiveArrayBase
 

Detailed Description

template<typename Impl>
class v8::internal::FactoryBase< Impl >

Definition at line 26 of file roots.h.

Member Function Documentation

◆ AllocateRaw()

template<typename Impl >
Tagged< HeapObject > v8::internal::FactoryBase< Impl >::AllocateRaw ( int size,
AllocationType allocation,
AllocationAlignment alignment = kTaggedAligned )
private

Definition at line 1297 of file factory-base.cc.

◆ AllocateRawArray()

template<typename Impl >
Tagged< HeapObject > v8::internal::FactoryBase< Impl >::AllocateRawArray ( int size,
AllocationType allocation )
protected

Definition at line 1243 of file factory-base.cc.

Here is the call graph for this function:

◆ AllocateRawFixedArray()

template<typename Impl >
Tagged< HeapObject > v8::internal::FactoryBase< Impl >::AllocateRawFixedArray ( int length,
AllocationType allocation )
protected

Definition at line 1257 of file factory-base.cc.

Here is the call graph for this function:

◆ AllocateRawOneByteInternalizedString()

template<typename Impl >
Handle< SeqOneByteString > v8::internal::FactoryBase< Impl >::AllocateRawOneByteInternalizedString ( int length,
uint32_t raw_hash_field )

Definition at line 1196 of file factory-base.cc.

Here is the call graph for this function:

◆ AllocateRawTwoByteInternalizedString()

template<typename Impl >
Handle< SeqTwoByteString > v8::internal::FactoryBase< Impl >::AllocateRawTwoByteInternalizedString ( int length,
uint32_t raw_hash_field )

Definition at line 1221 of file factory-base.cc.

Here is the call graph for this function:

◆ AllocateRawWeakArrayList()

template<typename Impl >
Tagged< HeapObject > v8::internal::FactoryBase< Impl >::AllocateRawWeakArrayList ( int length,
AllocationType allocation )
protected

Definition at line 1267 of file factory-base.cc.

Here is the call graph for this function:

◆ AllocateRawWithImmortalMap()

template<typename Impl >
Tagged< HeapObject > v8::internal::FactoryBase< Impl >::AllocateRawWithImmortalMap ( int size,
AllocationType allocation,
Tagged< Map > map,
AllocationAlignment alignment = kTaggedAligned )
protected

Definition at line 1283 of file factory-base.cc.

Here is the call graph for this function:

◆ CloneSharedFunctionInfo()

template<typename Impl >
Handle< SharedFunctionInfo > v8::internal::FactoryBase< Impl >::CloneSharedFunctionInfo ( DirectHandle< SharedFunctionInfo > other)

Definition at line 470 of file factory-base.cc.

Here is the call graph for this function:

◆ GetInPlaceInternalizedStringMap()

template<typename Impl >
MaybeDirectHandle< Map > v8::internal::FactoryBase< Impl >::GetInPlaceInternalizedStringMap ( Tagged< Map > from_string_map)

Definition at line 1354 of file factory-base.cc.

Here is the call graph for this function:

◆ HeapNumberToString()

template<typename Impl >
Handle< String > v8::internal::FactoryBase< Impl >::HeapNumberToString ( DirectHandle< HeapNumber > number,
double value,
NumberCacheMode mode = NumberCacheMode::kBoth )

Definition at line 1034 of file factory-base.cc.

Here is the call graph for this function:

◆ impl()

template<typename Impl >
Impl * v8::internal::FactoryBase< Impl >::impl ( )
inlineprivate

Definition at line 449 of file factory-base.h.

◆ InternalizeString() [1/2]

template<typename Impl >
Handle< String > v8::internal::FactoryBase< Impl >::InternalizeString ( base::Vector< const uint16_t > string,
bool convert_encoding = false )

Definition at line 761 of file factory-base.cc.

Here is the call graph for this function:

◆ InternalizeString() [2/2]

template<typename Impl >
Handle< String > v8::internal::FactoryBase< Impl >::InternalizeString ( base::Vector< const uint8_t > string,
bool convert_encoding = false )

◆ InternalizeStringWithKey()

template<typename Impl >
template<class StringTableKey >
Handle< String > v8::internal::FactoryBase< Impl >::InternalizeStringWithKey ( StringTableKey * key)

Definition at line 726 of file factory-base.cc.

Here is the call graph for this function:

◆ isolate()

template<typename Impl >
auto v8::internal::FactoryBase< Impl >::isolate ( )
inlineprivate

Definition at line 450 of file factory-base.h.

◆ LookupSingleCharacterStringFromCode()

template<typename Impl >
Handle< String > v8::internal::FactoryBase< Impl >::LookupSingleCharacterStringFromCode ( uint16_t code)

Definition at line 971 of file factory-base.cc.

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

◆ MakeOrFindTwoCharacterString()

template<typename Impl >
Handle< String > v8::internal::FactoryBase< Impl >::MakeOrFindTwoCharacterString ( uint16_t c1,
uint16_t c2 )
protected

Definition at line 714 of file factory-base.cc.

◆ NewAccessorPair()

template<typename Impl >
Handle< AccessorPair > v8::internal::FactoryBase< Impl >::NewAccessorPair ( )

Definition at line 72 of file factory-base.cc.

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

◆ NewArrayBoilerplateDescription()

template<typename Impl >
Handle< ArrayBoilerplateDescription > v8::internal::FactoryBase< Impl >::NewArrayBoilerplateDescription ( ElementsKind elements_kind,
DirectHandle< FixedArrayBase > constant_values )

Definition at line 627 of file factory-base.cc.

Here is the call graph for this function:

◆ NewArrayList()

template<typename Impl >
DirectHandle< ArrayList > v8::internal::FactoryBase< Impl >::NewArrayList ( int size,
AllocationType allocation = AllocationType::kYoung )

Definition at line 449 of file factory-base.cc.

Here is the call graph for this function:

◆ NewBigInt()

template<typename Impl >
Handle< FreshlyAllocatedBigInt > v8::internal::FactoryBase< Impl >::NewBigInt ( uint32_t length,
AllocationType allocation = AllocationType::kYoung )

Definition at line 1105 of file factory-base.cc.

Here is the call graph for this function:

◆ NewByteArray()

template<typename Impl >
Handle< ByteArray > v8::internal::FactoryBase< Impl >::NewByteArray ( int length,
AllocationType allocation = AllocationType::kYoung )

Definition at line 304 of file factory-base.cc.

Here is the caller graph for this function:

◆ NewBytecodeArray()

template<typename Impl >
Handle< BytecodeArray > v8::internal::FactoryBase< Impl >::NewBytecodeArray ( int length,
const uint8_t * raw_bytecodes,
int frame_size,
uint16_t parameter_count,
uint16_t max_arguments,
DirectHandle< TrustedFixedArray > constant_pool,
DirectHandle< TrustedByteArray > handler_table,
AllocationType allocation = AllocationType::kTrusted )

Definition at line 329 of file factory-base.cc.

Here is the call graph for this function:

◆ NewBytecodeWrapper()

template<typename Impl >
DirectHandle< BytecodeWrapper > v8::internal::FactoryBase< Impl >::NewBytecodeWrapper ( AllocationType allocation = AllocationType::kOld)

Definition at line 365 of file factory-base.cc.

◆ NewClassPositions()

template<typename Impl >
Handle< ClassPositions > v8::internal::FactoryBase< Impl >::NewClassPositions ( int start,
int end )

Definition at line 1185 of file factory-base.cc.

Here is the call graph for this function:

◆ NewCode()

template<typename Impl >
Handle< Code > v8::internal::FactoryBase< Impl >::NewCode ( const NewCodeOptions & options)

Definition at line 82 of file factory-base.cc.

Here is the call graph for this function:

◆ NewCodeWrapper()

template<typename Impl >
DirectHandle< CodeWrapper > v8::internal::FactoryBase< Impl >::NewCodeWrapper ( )

Definition at line 166 of file factory-base.cc.

Here is the call graph for this function:

◆ NewConsString() [1/3]

template<typename Impl >
Handle< String > v8::internal::FactoryBase< Impl >::NewConsString ( DirectHandle< String > left,
DirectHandle< String > right,
int length,
bool one_byte,
AllocationType allocation = AllocationType::kYoung )

Definition at line 946 of file factory-base.cc.

Here is the call graph for this function:

◆ NewConsString() [2/3]

template<typename Impl >
template<template< typename > typename HandleType>
requires (std::is_convertible_v<HandleType<String>, DirectHandle<String>>)
HandleType< String >::MaybeType v8::internal::FactoryBase< Impl >::NewConsString ( HandleType< String > left,
HandleType< String > right,
AllocationType allocation )

Definition at line 869 of file factory-base.cc.

Here is the call graph for this function:

◆ NewConsString() [3/3]

template<typename Impl >
template<template< typename > typename HandleType>
requires (std::is_convertible_v<HandleType<String>, DirectHandle<String>>)
V8_WARN_UNUSED_RESULT HandleType< String >::MaybeType v8::internal::FactoryBase< Impl >::NewConsString ( HandleType< String > left,
HandleType< String > right,
AllocationType allocation = AllocationType::kYoung )
Here is the caller graph for this function:

◆ NewCoverageInfo()

template<typename Impl >
Handle< CoverageInfo > v8::internal::FactoryBase< Impl >::NewCoverageInfo ( const ZoneVector< SourceRange > & slots)

Definition at line 697 of file factory-base.cc.

Here is the call graph for this function:

◆ NewDeoptimizationFrameTranslation()

template<typename Impl >
DirectHandle< DeoptimizationFrameTranslation > v8::internal::FactoryBase< Impl >::NewDeoptimizationFrameTranslation ( int length)

Definition at line 324 of file factory-base.cc.

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

◆ NewDeoptimizationLiteralArray()

template<typename Impl >
DirectHandle< DeoptimizationLiteralArray > v8::internal::FactoryBase< Impl >::NewDeoptimizationLiteralArray ( int length)

Definition at line 318 of file factory-base.cc.

Here is the caller graph for this function:

◆ NewDescriptorArray()

template<typename Impl >
Handle< DescriptorArray > v8::internal::FactoryBase< Impl >::NewDescriptorArray ( int number_of_descriptors,
int slack = 0,
AllocationType allocation = AllocationType::kYoung )

Definition at line 1155 of file factory-base.cc.

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

◆ NewFeedbackMetadata()

template<typename Impl >
Handle< FeedbackMetadata > v8::internal::FactoryBase< Impl >::NewFeedbackMetadata ( int slot_count,
int create_closure_slot_count,
AllocationType allocation = AllocationType::kOld )

Definition at line 677 of file factory-base.cc.

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

◆ NewFixedArray()

template<typename Impl >
Handle< FixedArray > v8::internal::FactoryBase< Impl >::NewFixedArray ( int length,
AllocationType allocation = AllocationType::kYoung )

Definition at line 179 of file factory-base.cc.

Here is the caller graph for this function:

◆ NewFixedArrayWithFiller()

template<typename Impl >
Handle< FixedArray > v8::internal::FactoryBase< Impl >::NewFixedArrayWithFiller ( DirectHandle< Map > map,
int length,
DirectHandle< HeapObject > filler,
AllocationType allocation )
protected

Definition at line 222 of file factory-base.cc.

◆ NewFixedArrayWithHoles()

template<typename Impl >
Handle< FixedArray > v8::internal::FactoryBase< Impl >::NewFixedArrayWithHoles ( int length,
AllocationType allocation = AllocationType::kYoung )

Definition at line 213 of file factory-base.cc.

Here is the caller graph for this function:

◆ NewFixedArrayWithMap()

template<typename Impl >
Handle< FixedArray > v8::internal::FactoryBase< Impl >::NewFixedArrayWithMap ( DirectHandle< Map > map,
int length,
AllocationType allocation = AllocationType::kYoung )

Definition at line 204 of file factory-base.cc.

◆ NewFixedArrayWithZeroes()

template<typename Impl >
DirectHandle< FixedArray > v8::internal::FactoryBase< Impl >::NewFixedArrayWithZeroes ( int length,
AllocationType allocation = AllocationType::kYoung )

Definition at line 237 of file factory-base.cc.

Here is the caller graph for this function:

◆ NewFixedDoubleArray()

template<typename Impl >
Handle< FixedArrayBase > v8::internal::FactoryBase< Impl >::NewFixedDoubleArray ( int length,
AllocationType allocation = AllocationType::kYoung )

Definition at line 255 of file factory-base.cc.

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

◆ NewFunctionTemplateRareData()

template<typename Impl >
DirectHandle< FunctionTemplateRareData > v8::internal::FactoryBase< Impl >::NewFunctionTemplateRareData ( )

Definition at line 1343 of file factory-base.cc.

Here is the call graph for this function:

◆ NewHeapInt32()

template<typename Impl >
template<AllocationType allocation>
Handle< HeapNumber > v8::internal::FactoryBase< Impl >::NewHeapInt32 ( int32_t value)
inline

Definition at line 123 of file factory-base-inl.h.

◆ NewHeapNumber() [1/2]

template<typename Impl >
template<AllocationType allocation>
template V8_EXPORT_PRIVATE Handle< HeapNumber > v8::internal::FactoryBase< Impl >::NewHeapNumber< AllocationType::kOld > ( )

Definition at line 42 of file factory-base.cc.

Here is the call graph for this function:

◆ NewHeapNumber() [2/2]

template<typename Impl >
template<AllocationType allocation>
Handle< HeapNumber > v8::internal::FactoryBase< Impl >::NewHeapNumber ( double value)
inline

Definition at line 101 of file factory-base-inl.h.

Here is the caller graph for this function:

◆ NewHeapNumberFromBits()

template<typename Impl >
template<AllocationType allocation>
Handle< HeapNumber > v8::internal::FactoryBase< Impl >::NewHeapNumberFromBits ( uint64_t bits)
inline

Definition at line 109 of file factory-base-inl.h.

Here is the caller graph for this function:

◆ NewHeapNumberWithHoleNaN()

template<typename Impl >
template<AllocationType allocation>
Handle< HeapNumber > v8::internal::FactoryBase< Impl >::NewHeapNumberWithHoleNaN ( )
inline

Definition at line 117 of file factory-base-inl.h.

◆ NewNumber()

template<typename Impl >
template<AllocationType allocation>
Handle< Number > v8::internal::FactoryBase< Impl >::NewNumber ( double value)
inline

Definition at line 49 of file factory-base-inl.h.

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

◆ NewNumberFromInt()

template<typename Impl >
template<AllocationType allocation>
Handle< Number > v8::internal::FactoryBase< Impl >::NewNumberFromInt ( int32_t value)
inline

Definition at line 60 of file factory-base-inl.h.

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

◆ NewNumberFromInt64()

template<typename Impl >
template<AllocationType allocation>
DirectHandle< Number > v8::internal::FactoryBase< Impl >::NewNumberFromInt64 ( int64_t value)
inline

Definition at line 90 of file factory-base-inl.h.

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

◆ NewNumberFromSize()

template<typename Impl >
template<AllocationType allocation>
DirectHandle< Number > v8::internal::FactoryBase< Impl >::NewNumberFromSize ( size_t value)
inline

Definition at line 78 of file factory-base-inl.h.

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

◆ NewNumberFromUint()

template<typename Impl >
template<AllocationType allocation>
Handle< Number > v8::internal::FactoryBase< Impl >::NewNumberFromUint ( uint32_t value)
inline

Definition at line 68 of file factory-base-inl.h.

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

◆ NewObjectBoilerplateDescription()

template<typename Impl >
Handle< ObjectBoilerplateDescription > v8::internal::FactoryBase< Impl >::NewObjectBoilerplateDescription ( int boilerplate,
int all_properties,
int index_keys,
bool has_seen_proto )

Definition at line 616 of file factory-base.cc.

Here is the call graph for this function:

◆ NewOneByteInternalizedString()

template<typename Impl >
Handle< SeqOneByteString > v8::internal::FactoryBase< Impl >::NewOneByteInternalizedString ( base::Vector< const uint8_t > str,
uint32_t raw_hash_field )

Definition at line 769 of file factory-base.cc.

Here is the call graph for this function:

◆ NewOneByteInternalizedStringFromTwoByte()

template<typename Impl >
DirectHandle< SeqOneByteString > v8::internal::FactoryBase< Impl >::NewOneByteInternalizedStringFromTwoByte ( base::Vector< const base::uc16 > str,
uint32_t raw_hash_field )

Definition at line 796 of file factory-base.cc.

Here is the call graph for this function:

◆ NewPreparseData()

template<typename Impl >
Handle< PreparseData > v8::internal::FactoryBase< Impl >::NewPreparseData ( int data_length,
int children_length )

Definition at line 498 of file factory-base.cc.

Here is the call graph for this function:

◆ NewProtectedFixedArray()

template<typename Impl >
Handle< ProtectedFixedArray > v8::internal::FactoryBase< Impl >::NewProtectedFixedArray ( int length)

Definition at line 197 of file factory-base.cc.

Here is the caller graph for this function:

◆ NewProtectedWeakFixedArray()

template<typename Impl >
Handle< ProtectedWeakFixedArray > v8::internal::FactoryBase< Impl >::NewProtectedWeakFixedArray ( int length)

Definition at line 295 of file factory-base.cc.

◆ NewRawOneByteString()

template<typename Impl >
MaybeHandle< SeqOneByteString > v8::internal::FactoryBase< Impl >::NewRawOneByteString ( int length,
AllocationType allocation = AllocationType::kYoung )

Definition at line 833 of file factory-base.cc.

Here is the caller graph for this function:

◆ NewRawSharedOneByteString()

template<typename Impl >
MaybeHandle< SeqOneByteString > v8::internal::FactoryBase< Impl >::NewRawSharedOneByteString ( int length)

Definition at line 851 of file factory-base.cc.

◆ NewRawSharedTwoByteString()

template<typename Impl >
MaybeHandle< SeqTwoByteString > v8::internal::FactoryBase< Impl >::NewRawSharedTwoByteString ( int length)

Definition at line 859 of file factory-base.cc.

◆ NewRawStringWithMap()

template<typename Impl >
template<typename SeqStringT >
MaybeHandle< SeqStringT > v8::internal::FactoryBase< Impl >::NewRawStringWithMap ( int length,
Tagged< Map > map,
AllocationType allocation )
protected

Definition at line 809 of file factory-base.cc.

Here is the call graph for this function:

◆ NewRawTwoByteString()

template<typename Impl >
MaybeHandle< SeqTwoByteString > v8::internal::FactoryBase< Impl >::NewRawTwoByteString ( int length,
AllocationType allocation = AllocationType::kYoung )

Definition at line 842 of file factory-base.cc.

Here is the caller graph for this function:

◆ NewRegExpBoilerplateDescription()

template<typename Impl >
DirectHandle< RegExpBoilerplateDescription > v8::internal::FactoryBase< Impl >::NewRegExpBoilerplateDescription ( DirectHandle< RegExpData > data,
DirectHandle< String > source,
Tagged< Smi > flags )

Definition at line 649 of file factory-base.cc.

Here is the call graph for this function:

◆ NewRegExpDataWrapper()

template<typename Impl >
DirectHandle< RegExpDataWrapper > v8::internal::FactoryBase< Impl >::NewRegExpDataWrapper ( )

Definition at line 638 of file factory-base.cc.

Here is the call graph for this function:

◆ NewScopeInfo()

template<typename Impl >
Handle< ScopeInfo > v8::internal::FactoryBase< Impl >::NewScopeInfo ( int length,
AllocationType type = AllocationType::kOld )

Definition at line 1120 of file factory-base.cc.

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

◆ NewScript()

template<typename Impl >
Handle< Script > v8::internal::FactoryBase< Impl >::NewScript ( DirectHandle< UnionOf< String, Undefined > > source,
ScriptEventType event_type = ScriptEventType::kCreate )

Definition at line 383 of file factory-base.cc.

Here is the caller graph for this function:

◆ NewScriptWithId()

template<typename Impl >
Handle< Script > v8::internal::FactoryBase< Impl >::NewScriptWithId ( DirectHandle< UnionOf< String, Undefined > > source,
int script_id,
ScriptEventType event_type = ScriptEventType::kCreate )

Definition at line 391 of file factory-base.cc.

◆ NewSharedFunctionInfo() [1/2]

template<typename Impl >
Handle< SharedFunctionInfo > v8::internal::FactoryBase< Impl >::NewSharedFunctionInfo ( AllocationType allocation)
protected

Definition at line 1143 of file factory-base.cc.

Here is the call graph for this function:

◆ NewSharedFunctionInfo() [2/2]

template<typename Impl >
Handle< SharedFunctionInfo > v8::internal::FactoryBase< Impl >::NewSharedFunctionInfo ( MaybeDirectHandle< String > maybe_name,
MaybeDirectHandle< HeapObject > maybe_function_data,
Builtin builtin,
int len,
AdaptArguments adapt,
FunctionKind kind = FunctionKind::kNormalFunction )
protected

Definition at line 553 of file factory-base.cc.

Here is the call graph for this function:

◆ NewSharedFunctionInfoForLiteral()

template<typename Impl >
Handle< SharedFunctionInfo > v8::internal::FactoryBase< Impl >::NewSharedFunctionInfoForLiteral ( FunctionLiteral * literal,
DirectHandle< Script > script,
bool is_toplevel )

Definition at line 455 of file factory-base.cc.

Here is the call graph for this function:

◆ NewSharedFunctionInfoWrapper()

template<typename Impl >
DirectHandle< SharedFunctionInfoWrapper > v8::internal::FactoryBase< Impl >::NewSharedFunctionInfoWrapper ( DirectHandle< SharedFunctionInfo > sfi)

Definition at line 486 of file factory-base.cc.

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

◆ NewSloppyArgumentsElements()

template<typename Impl >
DirectHandle< SloppyArgumentsElements > v8::internal::FactoryBase< Impl >::NewSloppyArgumentsElements ( int length,
DirectHandle< Context > context,
DirectHandle< FixedArray > arguments,
AllocationType allocation = AllocationType::kYoung )

Definition at line 430 of file factory-base.cc.

◆ NewSourceTextModuleInfo()

template<typename Impl >
DirectHandle< SourceTextModuleInfo > v8::internal::FactoryBase< Impl >::NewSourceTextModuleInfo ( )

Definition at line 1137 of file factory-base.cc.

Here is the call graph for this function:

◆ NewStringFromAsciiChecked() [1/2]

template<typename Impl >
Handle< String > v8::internal::FactoryBase< Impl >::NewStringFromAsciiChecked ( const char * str,
AllocationType allocation = AllocationType::kYoung )
inline

Definition at line 324 of file factory-base.h.

Here is the caller graph for this function:

◆ NewStringFromAsciiChecked() [2/2]

template<typename Impl >
Handle< String > v8::internal::FactoryBase< Impl >::NewStringFromAsciiChecked ( std::string_view str,
AllocationType allocation = AllocationType::kYoung )
inline

Definition at line 330 of file factory-base.h.

◆ NewStringFromOneByte()

template<typename Impl >
MaybeHandle< String > v8::internal::FactoryBase< Impl >::NewStringFromOneByte ( base::Vector< const uint8_t > string,
AllocationType allocation = AllocationType::kYoung )

Definition at line 982 of file factory-base.cc.

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

◆ NewStruct()

template<typename Impl >
Handle< Struct > v8::internal::FactoryBase< Impl >::NewStruct ( InstanceType type,
AllocationType allocation = AllocationType::kYoung )

Definition at line 63 of file factory-base.cc.

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

◆ NewStructInternal() [1/2]

template<typename Impl >
template<typename StructType >
Tagged< StructType > v8::internal::FactoryBase< Impl >::NewStructInternal ( InstanceType type,
AllocationType allocation )
inlineprotected

Definition at line 132 of file factory-base-inl.h.

◆ NewStructInternal() [2/2]

template<typename Impl >
Tagged< Struct > v8::internal::FactoryBase< Impl >::NewStructInternal ( ReadOnlyRoots roots,
Tagged< Map > map,
int size,
AllocationType allocation )
protected

Definition at line 146 of file factory-base-inl.h.

Here is the call graph for this function:

◆ NewSwissNameDictionary()

template<typename Impl >
Handle< SwissNameDictionary > v8::internal::FactoryBase< Impl >::NewSwissNameDictionary ( int at_least_space_for = kSwissNameDictionaryInitialCapacity,
AllocationType allocation = AllocationType::kYoung )

Definition at line 1335 of file factory-base.cc.

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

◆ NewSwissNameDictionaryWithCapacity()

template<typename Impl >
Handle< SwissNameDictionary > v8::internal::FactoryBase< Impl >::NewSwissNameDictionaryWithCapacity ( int capacity,
AllocationType allocation )

Definition at line 1304 of file factory-base.cc.

Here is the call graph for this function:

◆ NewTemplateObjectDescription()

template<typename Impl >
Handle< TemplateObjectDescription > v8::internal::FactoryBase< Impl >::NewTemplateObjectDescription ( DirectHandle< FixedArray > raw_strings,
DirectHandle< FixedArray > cooked_strings )

Definition at line 663 of file factory-base.cc.

Here is the call graph for this function:

◆ NewTrustedByteArray()

template<typename Impl >
Handle< TrustedByteArray > v8::internal::FactoryBase< Impl >::NewTrustedByteArray ( int length,
AllocationType allocation_type = AllocationType::kTrusted )

Definition at line 310 of file factory-base.cc.

Here is the caller graph for this function:

◆ NewTrustedFixedArray()

template<typename Impl >
Handle< TrustedFixedArray > v8::internal::FactoryBase< Impl >::NewTrustedFixedArray ( int length,
AllocationType allocation = AllocationType::kTrusted )

Definition at line 185 of file factory-base.cc.

◆ NewTrustedWeakFixedArray()

template<typename Impl >
Handle< TrustedWeakFixedArray > v8::internal::FactoryBase< Impl >::NewTrustedWeakFixedArray ( int length)

Definition at line 286 of file factory-base.cc.

◆ NewTwoByteInternalizedString()

template<typename Impl >
Handle< SeqTwoByteString > v8::internal::FactoryBase< Impl >::NewTwoByteInternalizedString ( base::Vector< const base::uc16 > str,
uint32_t raw_hash_field )

Definition at line 782 of file factory-base.cc.

Here is the call graph for this function:

◆ NewUncompiledDataWithoutPreparseData()

template<typename Impl >
DirectHandle< UncompiledDataWithoutPreparseData > v8::internal::FactoryBase< Impl >::NewUncompiledDataWithoutPreparseData ( Handle< String > inferred_name,
int32_t start_position,
int32_t end_position )

Definition at line 514 of file factory-base.cc.

◆ NewUncompiledDataWithoutPreparseDataWithJob()

template<typename Impl >
DirectHandle< UncompiledDataWithoutPreparseDataWithJob > v8::internal::FactoryBase< Impl >::NewUncompiledDataWithoutPreparseDataWithJob ( Handle< String > inferred_name,
int32_t start_position,
int32_t end_position )

Definition at line 533 of file factory-base.cc.

◆ NewUncompiledDataWithPreparseData()

template<typename Impl >
DirectHandle< UncompiledDataWithPreparseData > v8::internal::FactoryBase< Impl >::NewUncompiledDataWithPreparseData ( Handle< String > inferred_name,
int32_t start_position,
int32_t end_position,
Handle< PreparseData > preparse_data )

Definition at line 523 of file factory-base.cc.

◆ NewUncompiledDataWithPreparseDataAndJob()

template<typename Impl >
DirectHandle< UncompiledDataWithPreparseDataAndJob > v8::internal::FactoryBase< Impl >::NewUncompiledDataWithPreparseDataAndJob ( Handle< String > inferred_name,
int32_t start_position,
int32_t end_position,
Handle< PreparseData > preparse_data )

Definition at line 544 of file factory-base.cc.

◆ NewWeakFixedArray()

template<typename Impl >
Handle< WeakFixedArray > v8::internal::FactoryBase< Impl >::NewWeakFixedArray ( int length,
AllocationType allocation = AllocationType::kYoung )

Definition at line 280 of file factory-base.cc.

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

◆ NewWeakFixedArrayWithMap()

template<typename Impl >
Handle< WeakFixedArray > v8::internal::FactoryBase< Impl >::NewWeakFixedArrayWithMap ( Tagged< Map > map,
int length,
AllocationType allocation = AllocationType::kYoung )

Definition at line 261 of file factory-base.cc.

◆ NewWithImmortalMap()

template<typename Impl >
Tagged< HeapObject > v8::internal::FactoryBase< Impl >::NewWithImmortalMap ( Tagged< Map > map,
AllocationType allocation )
protected

Definition at line 1277 of file factory-base.cc.

◆ NumberToString()

template<typename Impl >
Handle< String > v8::internal::FactoryBase< Impl >::NumberToString ( DirectHandle< Object > number,
NumberCacheMode mode = NumberCacheMode::kBoth )

Definition at line 1019 of file factory-base.cc.

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

◆ read_only_roots()

template<typename Impl >
ReadOnlyRoots v8::internal::FactoryBase< Impl >::read_only_roots ( )
inlineprivate

Definition at line 451 of file factory-base.h.

◆ RefineAllocationTypeForInPlaceInternalizableString()

template<typename Impl >
AllocationType v8::internal::FactoryBase< Impl >::RefineAllocationTypeForInPlaceInternalizableString ( AllocationType allocation,
Tagged< Map > string_map )

Definition at line 1384 of file factory-base.cc.

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

◆ SmiToString()

template<typename Impl >
Handle< String > v8::internal::FactoryBase< Impl >::SmiToString ( Tagged< Smi > number,
NumberCacheMode mode = NumberCacheMode::kBoth )
inline

Definition at line 1063 of file factory-base.cc.

Here is the call graph for this function:

◆ ToBoolean()

template<typename Impl >
Handle< Boolean > v8::internal::FactoryBase< Impl >::ToBoolean ( bool value)
inline

Definition at line 42 of file factory-base-inl.h.

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

Friends And Related Symbol Documentation

◆ PrimitiveArrayBase

template<typename Impl >
template<class Derived , class Shape , class Super >
friend class PrimitiveArrayBase
friend

Definition at line 461 of file factory-base.h.

◆ TaggedArrayBase

template<typename Impl >
template<class Derived , class Shape , class Super >
friend class TaggedArrayBase
friend

Definition at line 459 of file factory-base.h.

Member Data Documentation

◆ kNumberToStringBufferSize

template<typename Impl >
int v8::internal::FactoryBase< Impl >::kNumberToStringBufferSize = 32
staticconstexprprotected

Definition at line 410 of file factory-base.h.

◆ TorqueGeneratedFactory< Impl >

template<typename Impl >
friend v8::internal::FactoryBase< Impl >::TorqueGeneratedFactory< Impl >
private

Definition at line 457 of file factory-base.h.


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