v8  3.25.30(node0.11.13)
V8 is Google's open source JavaScript engine
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Factory Class Reference

#include <factory.h>

Public Types

enum  ApiInstanceType { JavaScriptObject, InnerGlobalObject, OuterGlobalObject }
 

Public Member Functions

Handle< BoxNewBox (Handle< Object > value, PretenureFlag pretenure=NOT_TENURED)
 
Handle< FixedArrayNewFixedArray (int size, PretenureFlag pretenure=NOT_TENURED)
 
Handle< FixedArrayNewFixedArrayWithHoles (int size, PretenureFlag pretenure=NOT_TENURED)
 
Handle< FixedArrayNewUninitializedFixedArray (int size)
 
Handle< FixedDoubleArrayNewFixedDoubleArray (int size, PretenureFlag pretenure=NOT_TENURED)
 
Handle< ConstantPoolArrayNewConstantPoolArray (int number_of_int64_entries, int number_of_code_ptr_entries, int number_of_heap_ptr_entries, int number_of_int32_entries)
 
Handle< SeededNumberDictionaryNewSeededNumberDictionary (int at_least_space_for)
 
Handle< UnseededNumberDictionaryNewUnseededNumberDictionary (int at_least_space_for)
 
Handle< NameDictionaryNewNameDictionary (int at_least_space_for)
 
Handle< ObjectHashSetNewObjectHashSet (int at_least_space_for)
 
Handle< ObjectHashTableNewObjectHashTable (int at_least_space_for, MinimumCapacity capacity_option=USE_DEFAULT_MINIMUM_CAPACITY)
 
Handle< WeakHashTableNewWeakHashTable (int at_least_space_for)
 
Handle< DescriptorArrayNewDescriptorArray (int number_of_descriptors, int slack=0)
 
Handle< DeoptimizationInputDataNewDeoptimizationInputData (int deopt_entry_count, PretenureFlag pretenure)
 
Handle< DeoptimizationOutputDataNewDeoptimizationOutputData (int deopt_entry_count, PretenureFlag pretenure)
 
Handle< AccessorPairNewAccessorPair ()
 
Handle< TypeFeedbackInfoNewTypeFeedbackInfo ()
 
Handle< StringInternalizeUtf8String (Vector< const char > str)
 
Handle< StringInternalizeUtf8String (const char *str)
 
Handle< StringInternalizeString (Handle< String > str)
 
Handle< StringInternalizeOneByteString (Vector< const uint8_t > str)
 
Handle< StringInternalizeOneByteString (Handle< SeqOneByteString >, int from, int length)
 
Handle< StringInternalizeTwoByteString (Vector< const uc16 > str)
 
template<class StringTableKey >
Handle< StringInternalizeStringWithKey (StringTableKey *key)
 
Handle< StringNewStringFromOneByte (Vector< const uint8_t > str, PretenureFlag pretenure=NOT_TENURED)
 
Handle< StringNewStringFromAscii (Vector< const char > str, PretenureFlag pretenure=NOT_TENURED)
 
Handle< StringNewStringFromUtf8 (Vector< const char > str, PretenureFlag pretenure=NOT_TENURED)
 
Handle< StringNewStringFromTwoByte (Vector< const uc16 > str, PretenureFlag pretenure=NOT_TENURED)
 
Handle< SeqOneByteStringNewRawOneByteString (int length, PretenureFlag pretenure=NOT_TENURED)
 
Handle< SeqTwoByteStringNewRawTwoByteString (int length, PretenureFlag pretenure=NOT_TENURED)
 
Handle< StringNewConsString (Handle< String > left, Handle< String > right)
 
Handle< ConsStringNewRawConsString (String::Encoding encoding)
 
Handle< StringNewFlatConcatString (Handle< String > first, Handle< String > second)
 
Handle< StringNewProperSubString (Handle< String > str, int begin, int end)
 
Handle< StringNewSubString (Handle< String > str, int begin, int end)
 
Handle< SlicedStringNewRawSlicedString (String::Encoding encoding)
 
Handle< StringNewExternalStringFromAscii (const ExternalAsciiString::Resource *resource)
 
Handle< StringNewExternalStringFromTwoByte (const ExternalTwoByteString::Resource *resource)
 
Handle< SymbolNewSymbol ()
 
Handle< SymbolNewPrivateSymbol ()
 
Handle< ContextNewNativeContext ()
 
Handle< ContextNewGlobalContext (Handle< JSFunction > function, Handle< ScopeInfo > scope_info)
 
Handle< ContextNewModuleContext (Handle< ScopeInfo > scope_info)
 
Handle< ContextNewFunctionContext (int length, Handle< JSFunction > function)
 
Handle< ContextNewCatchContext (Handle< JSFunction > function, Handle< Context > previous, Handle< String > name, Handle< Object > thrown_object)
 
Handle< ContextNewWithContext (Handle< JSFunction > function, Handle< Context > previous, Handle< JSObject > extension)
 
Handle< ContextNewBlockContext (Handle< JSFunction > function, Handle< Context > previous, Handle< ScopeInfo > scope_info)
 
Handle< StructNewStruct (InstanceType type)
 
Handle< AliasedArgumentsEntryNewAliasedArgumentsEntry (int aliased_context_slot)
 
Handle
< DeclaredAccessorDescriptor
NewDeclaredAccessorDescriptor ()
 
Handle< DeclaredAccessorInfoNewDeclaredAccessorInfo ()
 
Handle< ExecutableAccessorInfoNewExecutableAccessorInfo ()
 
Handle< ScriptNewScript (Handle< String > source)
 
Handle< ForeignNewForeign (Address addr, PretenureFlag pretenure=NOT_TENURED)
 
Handle< ForeignNewForeign (const AccessorDescriptor *foreign)
 
Handle< ByteArrayNewByteArray (int length, PretenureFlag pretenure=NOT_TENURED)
 
Handle< ExternalArrayNewExternalArray (int length, ExternalArrayType array_type, void *external_pointer, PretenureFlag pretenure=NOT_TENURED)
 
Handle< FixedTypedArrayBaseNewFixedTypedArray (int length, ExternalArrayType array_type, PretenureFlag pretenure=NOT_TENURED)
 
Handle< CellNewCell (Handle< Object > value)
 
Handle< PropertyCellNewPropertyCellWithHole ()
 
Handle< PropertyCellNewPropertyCell (Handle< Object > value)
 
Handle< AllocationSiteNewAllocationSite ()
 
Handle< MapNewMap (InstanceType type, int instance_size, ElementsKind elements_kind=TERMINAL_FAST_ELEMENTS_KIND)
 
Handle< JSObjectNewFunctionPrototype (Handle< JSFunction > function)
 
Handle< MapCopyWithPreallocatedFieldDescriptors (Handle< Map > map)
 
Handle< MapCopyMap (Handle< Map > map, int extra_inobject_props)
 
Handle< MapCopyMap (Handle< Map > map)
 
Handle< FixedArrayCopyFixedArray (Handle< FixedArray > array)
 
Handle< FixedArrayCopyAndTenureFixedCOWArray (Handle< FixedArray > array)
 
Handle< FixedArrayCopySizeFixedArray (Handle< FixedArray > array, int new_length, PretenureFlag pretenure=NOT_TENURED)
 
Handle< FixedDoubleArrayCopyFixedDoubleArray (Handle< FixedDoubleArray > array)
 
Handle< ConstantPoolArrayCopyConstantPoolArray (Handle< ConstantPoolArray > array)
 
Handle< ObjectNewNumber (double value, PretenureFlag pretenure=NOT_TENURED)
 
Handle< ObjectNewNumberFromInt (int32_t value, PretenureFlag pretenure=NOT_TENURED)
 
Handle< ObjectNewNumberFromUint (uint32_t value, PretenureFlag pretenure=NOT_TENURED)
 
Handle< ObjectNewNumberFromSize (size_t value, PretenureFlag pretenure=NOT_TENURED)
 
Handle< HeapNumberNewHeapNumber (double value, PretenureFlag pretenure=NOT_TENURED)
 
Handle< JSObjectNewNeanderObject ()
 
Handle< JSObjectNewArgumentsObject (Handle< Object > callee, int length)
 
Handle< JSObjectNewJSObject (Handle< JSFunction > constructor, PretenureFlag pretenure=NOT_TENURED)
 
Handle< JSObjectNewJSObjectWithMemento (Handle< JSFunction > constructor, Handle< AllocationSite > site)
 
Handle< GlobalObjectNewGlobalObject (Handle< JSFunction > constructor)
 
Handle< JSObjectNewJSObjectFromMap (Handle< Map > map, PretenureFlag pretenure=NOT_TENURED, bool allocate_properties=true, Handle< AllocationSite > allocation_site=Handle< AllocationSite >::null())
 
Handle< JSObjectNewJSObjectFromMapForDeoptimizer (Handle< Map > map, PretenureFlag pretenure=NOT_TENURED)
 
Handle< JSModuleNewJSModule (Handle< Context > context, Handle< ScopeInfo > scope_info)
 
Handle< JSArrayNewJSArray (ElementsKind elements_kind, int length, int capacity, ArrayStorageAllocationMode mode=INITIALIZE_ARRAY_ELEMENTS_WITH_HOLE, PretenureFlag pretenure=NOT_TENURED)
 
Handle< JSArrayNewJSArray (int capacity, ElementsKind elements_kind=TERMINAL_FAST_ELEMENTS_KIND, PretenureFlag pretenure=NOT_TENURED)
 
Handle< JSArrayNewJSArrayWithElements (Handle< FixedArrayBase > elements, ElementsKind elements_kind, int length, PretenureFlag pretenure=NOT_TENURED)
 
Handle< JSArrayNewJSArrayWithElements (Handle< FixedArrayBase > elements, ElementsKind elements_kind=TERMINAL_FAST_ELEMENTS_KIND, PretenureFlag pretenure=NOT_TENURED)
 
void NewJSArrayStorage (Handle< JSArray > array, int length, int capacity, ArrayStorageAllocationMode mode=DONT_INITIALIZE_ARRAY_ELEMENTS)
 
Handle< JSGeneratorObjectNewJSGeneratorObject (Handle< JSFunction > function)
 
Handle< JSArrayBufferNewJSArrayBuffer ()
 
Handle< JSTypedArrayNewJSTypedArray (ExternalArrayType type)
 
Handle< JSDataViewNewJSDataView ()
 
Handle< JSProxyNewJSProxy (Handle< Object > handler, Handle< Object > prototype)
 
void BecomeJSObject (Handle< JSReceiver > object)
 
void BecomeJSFunction (Handle< JSReceiver > object)
 
Handle< JSFunctionNewFunction (Handle< String > name, Handle< Object > prototype)
 
Handle< JSFunctionNewFunctionWithoutPrototype (Handle< String > name, StrictMode strict_mode)
 
Handle< JSFunctionNewFunction (Handle< Object > super, bool is_global)
 
Handle< JSFunctionBaseNewFunctionFromSharedFunctionInfo (Handle< SharedFunctionInfo > function_info, Handle< Map > function_map, PretenureFlag pretenure)
 
Handle< JSFunctionNewFunctionFromSharedFunctionInfo (Handle< SharedFunctionInfo > function_info, Handle< Context > context, PretenureFlag pretenure=TENURED)
 
Handle< ScopeInfoNewScopeInfo (int length)
 
Handle< JSObjectNewExternal (void *value)
 
Handle< CodeNewCode (const CodeDesc &desc, Code::Flags flags, Handle< Object > self_reference, bool immovable=false, bool crankshafted=false, int prologue_offset=Code::kPrologueOffsetNotSet)
 
Handle< CodeCopyCode (Handle< Code > code)
 
Handle< CodeCopyCode (Handle< Code > code, Vector< byte > reloc_info)
 
Handle< ObjectToObject (Handle< Object > object)
 
Handle< ObjectToObject (Handle< Object > object, Handle< Context > native_context)
 
Handle< ObjectNewError (const char *maker, const char *message, Handle< JSArray > args)
 
Handle< StringEmergencyNewError (const char *message, Handle< JSArray > args)
 
Handle< ObjectNewError (const char *maker, const char *message, Vector< Handle< Object > > args)
 
Handle< ObjectNewError (const char *message, Vector< Handle< Object > > args)
 
Handle< ObjectNewError (Handle< String > message)
 
Handle< ObjectNewError (const char *constructor, Handle< String > message)
 
Handle< ObjectNewTypeError (const char *message, Vector< Handle< Object > > args)
 
Handle< ObjectNewTypeError (Handle< String > message)
 
Handle< ObjectNewRangeError (const char *message, Vector< Handle< Object > > args)
 
Handle< ObjectNewRangeError (Handle< String > message)
 
Handle< ObjectNewSyntaxError (const char *message, Handle< JSArray > args)
 
Handle< ObjectNewSyntaxError (Handle< String > message)
 
Handle< ObjectNewReferenceError (const char *message, Vector< Handle< Object > > args)
 
Handle< ObjectNewReferenceError (const char *message, Handle< JSArray > args)
 
Handle< ObjectNewReferenceError (Handle< String > message)
 
Handle< ObjectNewEvalError (const char *message, Vector< Handle< Object > > args)
 
Handle< JSFunctionNewFunction (Handle< String > name, InstanceType type, int instance_size, Handle< Code > code, bool force_initial_map)
 
Handle< JSFunctionNewFunction (Handle< Map > function_map, Handle< SharedFunctionInfo > shared, Handle< Object > prototype)
 
Handle< JSFunctionNewFunctionWithPrototype (Handle< String > name, InstanceType type, int instance_size, Handle< JSObject > prototype, Handle< Code > code, bool force_initial_map)
 
Handle< JSFunctionNewFunctionWithoutPrototype (Handle< String > name, Handle< Code > code)
 
Handle< StringNumberToString (Handle< Object > number)
 
Handle< StringUint32ToString (uint32_t value)
 
Handle< JSFunctionCreateApiFunction (Handle< FunctionTemplateInfo > data, ApiInstanceType type=JavaScriptObject)
 
Handle< JSFunctionInstallMembers (Handle< JSFunction > function)
 
void ConfigureInstance (Handle< FunctionTemplateInfo > desc, Handle< JSObject > instance, bool *pending_exception)
 
Handle< Stringhidden_string ()
 
Handle< SharedFunctionInfoNewSharedFunctionInfo (Handle< String > name, int number_of_literals, bool is_generator, Handle< Code > code, Handle< ScopeInfo > scope_info)
 
Handle< SharedFunctionInfoNewSharedFunctionInfo (Handle< String > name)
 
Handle< JSMessageObjectNewJSMessageObject (Handle< String > type, Handle< JSArray > arguments, int start_position, int end_position, Handle< Object > script, Handle< Object > stack_frames)
 
Handle< SeededNumberDictionaryDictionaryAtNumberPut (Handle< SeededNumberDictionary >, uint32_t key, Handle< Object > value)
 
Handle< UnseededNumberDictionaryDictionaryAtNumberPut (Handle< UnseededNumberDictionary >, uint32_t key, Handle< Object > value)
 
Handle< MapObjectLiteralMapFromCache (Handle< Context > context, Handle< FixedArray > keys)
 
void SetRegExpAtomData (Handle< JSRegExp > regexp, JSRegExp::Type type, Handle< String > source, JSRegExp::Flags flags, Handle< Object > match_pattern)
 
void SetRegExpIrregexpData (Handle< JSRegExp > regexp, JSRegExp::Type type, Handle< String > source, JSRegExp::Flags flags, int capture_count)
 
Handle< ObjectGlobalConstantFor (Handle< String > name)
 
Handle< ObjectToBoolean (bool value)
 

Detailed Description

Definition at line 40 of file factory.h.

Member Enumeration Documentation

Enumerator
JavaScriptObject 
InnerGlobalObject 
OuterGlobalObject 

Definition at line 497 of file factory.h.

Member Function Documentation

Handle< JSFunction > BaseNewFunctionFromSharedFunctionInfo ( Handle< SharedFunctionInfo function_info,
Handle< Map function_map,
PretenureFlag  pretenure 
)

Definition at line 921 of file factory.cc.

References CALL_HEAP_FUNCTION.

Referenced by Factory::NewFunctionFromSharedFunctionInfo().

void BecomeJSFunction ( Handle< JSReceiver object)

Definition at line 1561 of file factory.cc.

References CALL_HEAP_FUNCTION_VOID, v8::internal::JS_FUNCTION_TYPE, and JSFunction::kSize.

Referenced by JSProxy::Fix().

void BecomeJSObject ( Handle< JSReceiver object)

Definition at line 1553 of file factory.cc.

References CALL_HEAP_FUNCTION_VOID, v8::internal::JS_OBJECT_TYPE, and JSObject::kHeaderSize.

Referenced by JSProxy::Fix().

void ConfigureInstance ( Handle< FunctionTemplateInfo desc,
Handle< JSObject instance,
bool *  pending_exception 
)

Definition at line 1996 of file factory.cc.

References Execution::ConfigureInstance().

Handle< FixedArray > CopyAndTenureFixedCOWArray ( Handle< FixedArray array)

Definition at line 891 of file factory.cc.

References ASSERT, and CALL_HEAP_FUNCTION.

Handle< Code > CopyCode ( Handle< Code code)

Definition at line 1305 of file factory.cc.

References CALL_HEAP_FUNCTION.

Referenced by Factory::CopyCode().

Handle< Code > CopyCode ( Handle< Code code,
Vector< byte reloc_info 
)

Definition at line 1312 of file factory.cc.

References CALL_HEAP_FUNCTION, and Factory::CopyCode().

Handle< ConstantPoolArray > CopyConstantPoolArray ( Handle< ConstantPoolArray array)

Definition at line 915 of file factory.cc.

References CALL_HEAP_FUNCTION.

Handle< FixedDoubleArray > CopyFixedDoubleArray ( Handle< FixedDoubleArray array)

Definition at line 909 of file factory.cc.

References CALL_HEAP_FUNCTION.

Referenced by Runtime::CreateArrayLiteralBoilerplate().

Handle< Map > CopyMap ( Handle< Map map)

Definition at line 881 of file factory.cc.

References CALL_HEAP_FUNCTION.

Handle< FixedArray > CopySizeFixedArray ( Handle< FixedArray array,
int  new_length,
PretenureFlag  pretenure = NOT_TENURED 
)

Definition at line 900 of file factory.cc.

References CALL_HEAP_FUNCTION.

Referenced by DependentCode::Insert(), and Map::PutPrototypeTransition().

Handle< Map > CopyWithPreallocatedFieldDescriptors ( Handle< Map map)

Definition at line 849 of file factory.cc.

References CALL_HEAP_FUNCTION.

Referenced by Factory::CopyMap().

Handle< SeededNumberDictionary > DictionaryAtNumberPut ( Handle< SeededNumberDictionary dictionary,
uint32_t  key,
Handle< Object value 
)

Definition at line 1631 of file factory.cc.

References CALL_HEAP_FUNCTION.

Referenced by ArrayConcatVisitor::visit().

Handle< UnseededNumberDictionary > DictionaryAtNumberPut ( Handle< UnseededNumberDictionary dictionary,
uint32_t  key,
Handle< Object value 
)

Definition at line 1641 of file factory.cc.

References CALL_HEAP_FUNCTION.

Handle< Object > GlobalConstantFor ( Handle< String name)

Definition at line 2013 of file factory.cc.

References Isolate::heap(), and Handle< T >::null().

Handle<String> hidden_string ( )
inline

Definition at line 540 of file factory.h.

References Isolate::heap().

Handle<JSFunction> InstallMembers ( Handle< JSFunction function)
Handle< String > InternalizeOneByteString ( Handle< SeqOneByteString string,
int  from,
int  length 
)

Definition at line 238 of file factory.cc.

References Factory::InternalizeStringWithKey().

template Handle< String > InternalizeStringWithKey< SubStringKey< uint16_t > > ( StringTableKey *  key)
Handle< String > InternalizeTwoByteString ( Vector< const uc16 str)

Definition at line 245 of file factory.cc.

References Factory::InternalizeStringWithKey().

Referenced by Scanner::AllocateInternalizedString().

Handle<String> InternalizeUtf8String ( const char *  str)
inline

Definition at line 101 of file factory.h.

References v8::internal::CStrVector(), and Factory::InternalizeUtf8String().

Handle< AccessorPair > NewAccessorPair ( )

Definition at line 203 of file factory.cc.

References CALL_HEAP_FUNCTION.

Handle< AliasedArgumentsEntry > NewAliasedArgumentsEntry ( int  aliased_context_slot)
Handle< AllocationSite > NewAllocationSite ( )
Handle< JSObject > NewArgumentsObject ( Handle< Object callee,
int  length 
)

Definition at line 1740 of file factory.cc.

References CALL_HEAP_FUNCTION.

Handle< Context > NewBlockContext ( Handle< JSFunction function,
Handle< Context previous,
Handle< ScopeInfo scope_info 
)

Definition at line 646 of file factory.cc.

References CALL_HEAP_FUNCTION.

Handle< Box > NewBox ( Handle< Object value,
PretenureFlag  pretenure = NOT_TENURED 
)

Definition at line 45 of file factory.cc.

References CALL_HEAP_FUNCTION.

Referenced by HeapTypeConfig::from_constant().

Handle< ByteArray > NewByteArray ( int  length,
PretenureFlag  pretenure = NOT_TENURED 
)
Handle< Context > NewCatchContext ( Handle< JSFunction function,
Handle< Context previous,
Handle< String name,
Handle< Object thrown_object 
)

Definition at line 622 of file factory.cc.

References CALL_HEAP_FUNCTION.

Handle< Cell > NewCell ( Handle< Object value)

Definition at line 776 of file factory.cc.

References CALL_HEAP_FUNCTION.

Handle< Code > NewCode ( const CodeDesc desc,
Code::Flags  flags,
Handle< Object self_reference,
bool  immovable = false,
bool  crankshafted = false,
int  prologue_offset = Code::kPrologueOffsetNotSet 
)
Handle< ConstantPoolArray > NewConstantPoolArray ( int  number_of_int64_entries,
int  number_of_code_ptr_entries,
int  number_of_heap_ptr_entries,
int  number_of_int32_entries 
)

Definition at line 90 of file factory.cc.

References ASSERT, and CALL_HEAP_FUNCTION.

Referenced by TEST().

Handle< DeoptimizationInputData > NewDeoptimizationInputData ( int  deopt_entry_count,
PretenureFlag  pretenure 
)

Definition at line 179 of file factory.cc.

References DeoptimizationInputData::Allocate(), ASSERT, and CALL_HEAP_FUNCTION.

Handle< DeoptimizationOutputData > NewDeoptimizationOutputData ( int  deopt_entry_count,
PretenureFlag  pretenure 
)

Definition at line 191 of file factory.cc.

References DeoptimizationOutputData::Allocate(), ASSERT, and CALL_HEAP_FUNCTION.

Handle< DescriptorArray > NewDescriptorArray ( int  number_of_descriptors,
int  slack = 0 
)

Definition at line 169 of file factory.cc.

References DescriptorArray::Allocate(), ASSERT, and CALL_HEAP_FUNCTION.

Referenced by Map::EnsureDescriptorSlack(), and TEST().

Handle< Object > NewError ( const char *  maker,
const char *  message,
Vector< Handle< Object > >  args 
)
Handle< Object > NewError ( const char *  message,
Vector< Handle< Object > >  args 
)

Definition at line 1110 of file factory.cc.

References Factory::NewError().

Handle< Object > NewError ( Handle< String message)

Definition at line 1181 of file factory.cc.

References Factory::NewError().

Handle< Object > NewError ( const char *  constructor,
Handle< String message 
)
Handle< Object > NewEvalError ( const char *  message,
Vector< Handle< Object > >  args 
)

Definition at line 1104 of file factory.cc.

References Factory::NewError().

Handle< JSObject > NewExternal ( void *  value)

Definition at line 1284 of file factory.cc.

References CALL_HEAP_FUNCTION.

Referenced by External::New().

Handle< ExternalArray > NewExternalArray ( int  length,
ExternalArrayType  array_type,
void *  external_pointer,
PretenureFlag  pretenure = NOT_TENURED 
)

Definition at line 747 of file factory.cc.

References ASSERT, CALL_HEAP_FUNCTION, and Smi::kMaxValue.

Referenced by v8::NewTypedArray(), and THREADED_TEST().

Handle< String > NewExternalStringFromAscii ( const ExternalAsciiString::Resource resource)

Definition at line 554 of file factory.cc.

References CALL_HEAP_FUNCTION.

Referenced by Bootstrapper::NativesSourceLookup(), TEST(), and THREADED_TEST().

Handle< String > NewExternalStringFromTwoByte ( const ExternalTwoByteString::Resource resource)

Definition at line 563 of file factory.cc.

References CALL_HEAP_FUNCTION.

Referenced by TEST(), and TestCharacterStream().

Handle< FixedArray > NewFixedArrayWithHoles ( int  size,
PretenureFlag  pretenure = NOT_TENURED 
)
Handle< FixedDoubleArray > NewFixedDoubleArray ( int  size,
PretenureFlag  pretenure = NOT_TENURED 
)

Definition at line 80 of file factory.cc.

References ASSERT, and CALL_HEAP_FUNCTION.

Referenced by v8::internal::ArrayConstructInitializeElements().

Handle< FixedTypedArrayBase > NewFixedTypedArray ( int  length,
ExternalArrayType  array_type,
PretenureFlag  pretenure = NOT_TENURED 
)

Definition at line 762 of file factory.cc.

References ASSERT, CALL_HEAP_FUNCTION, and Smi::kMaxValue.

Handle< String > NewFlatConcatString ( Handle< String first,
Handle< String second 
)

Definition at line 453 of file factory.cc.

References Factory::NewRawOneByteString(), and Factory::NewRawTwoByteString().

Handle< Foreign > NewForeign ( const AccessorDescriptor foreign)

Definition at line 733 of file factory.cc.

References Factory::NewForeign(), and v8::internal::TENURED.

Handle< JSFunction > NewFunction ( Handle< String name,
Handle< Object prototype 
)
Handle<JSFunction> NewFunction ( Handle< Object super,
bool  is_global 
)
Handle< JSFunction > NewFunction ( Handle< String name,
InstanceType  type,
int  instance_size,
Handle< Code code,
bool  force_initial_map 
)
Handle<JSFunction> NewFunction ( Handle< Map function_map,
Handle< SharedFunctionInfo shared,
Handle< Object prototype 
)
Handle< Context > NewFunctionContext ( int  length,
Handle< JSFunction function 
)

Definition at line 613 of file factory.cc.

References CALL_HEAP_FUNCTION.

Handle< JSFunction > NewFunctionWithoutPrototype ( Handle< String name,
StrictMode  strict_mode 
)

Definition at line 1687 of file factory.cc.

Referenced by Factory::NewFunctionWithoutPrototype().

Handle< JSFunction > NewFunctionWithoutPrototype ( Handle< String name,
Handle< Code code 
)

Definition at line 1265 of file factory.cc.

References ASSERT, Factory::NewFunctionWithoutPrototype(), and v8::internal::SLOPPY.

Handle< JSFunction > NewFunctionWithPrototype ( Handle< String name,
InstanceType  type,
int  instance_size,
Handle< JSObject prototype,
Handle< Code code,
bool  force_initial_map 
)
Handle< Context > NewGlobalContext ( Handle< JSFunction function,
Handle< ScopeInfo scope_info 
)

Definition at line 596 of file factory.cc.

References CALL_HEAP_FUNCTION.

Handle< HeapNumber > NewHeapNumber ( double  value,
PretenureFlag  pretenure = NOT_TENURED 
)
Handle<JSArray> NewJSArray ( int  capacity,
ElementsKind  elements_kind = TERMINAL_FAST_ELEMENTS_KIND,
PretenureFlag  pretenure = NOT_TENURED 
)
inline
Handle< JSArrayBuffer > NewJSArrayBuffer ( )

Definition at line 1496 of file factory.cc.

References CALL_HEAP_FUNCTION.

Referenced by ArrayBuffer::New().

void NewJSArrayStorage ( Handle< JSArray array,
int  length,
int  capacity,
ArrayStorageAllocationMode  mode = DONT_INITIALIZE_ARRAY_ELEMENTS 
)

Definition at line 1471 of file factory.cc.

References CALL_HEAP_FUNCTION_VOID.

Handle<JSArray> NewJSArrayWithElements ( Handle< FixedArrayBase elements,
ElementsKind  elements_kind = TERMINAL_FAST_ELEMENTS_KIND,
PretenureFlag  pretenure = NOT_TENURED 
)
inline

Definition at line 375 of file factory.h.

References Factory::NewJSArrayWithElements().

Handle< JSDataView > NewJSDataView ( )

Definition at line 1506 of file factory.cc.

References CALL_HEAP_FUNCTION.

Referenced by DataView::New().

Handle< JSMessageObject > NewJSMessageObject ( Handle< String type,
Handle< JSArray arguments,
int  start_position,
int  end_position,
Handle< Object script,
Handle< Object stack_frames 
)

Definition at line 1594 of file factory.cc.

References CALL_HEAP_FUNCTION.

Referenced by MessageHandler::MakeMessageObject().

Handle< JSModule > NewJSModule ( Handle< Context context,
Handle< ScopeInfo scope_info 
)

Definition at line 1339 of file factory.cc.

References CALL_HEAP_FUNCTION.

Referenced by v8::internal::RUNTIME_FUNCTION().

Handle< JSObject > NewJSObjectFromMap ( Handle< Map map,
PretenureFlag  pretenure = NOT_TENURED,
bool  allocate_properties = true,
Handle< AllocationSite allocation_site = Handle<AllocationSite>::null() 
)
Handle<JSObject> NewJSObjectFromMapForDeoptimizer ( Handle< Map map,
PretenureFlag  pretenure = NOT_TENURED 
)
Handle< JSObject > NewJSObjectWithMemento ( Handle< JSFunction constructor,
Handle< AllocationSite site 
)
Handle< JSProxy > NewJSProxy ( Handle< Object handler,
Handle< Object prototype 
)

Definition at line 1544 of file factory.cc.

References CALL_HEAP_FUNCTION.

Handle< JSTypedArray > NewJSTypedArray ( ExternalArrayType  type)

Definition at line 1534 of file factory.cc.

References CALL_HEAP_FUNCTION.

Referenced by v8::NewTypedArray().

Handle< Map > NewMap ( InstanceType  type,
int  instance_size,
ElementsKind  elements_kind = TERMINAL_FAST_ELEMENTS_KIND 
)
Handle< Context > NewModuleContext ( Handle< ScopeInfo scope_info)

Definition at line 605 of file factory.cc.

References CALL_HEAP_FUNCTION.

Referenced by v8::internal::RUNTIME_FUNCTION().

Handle< NameDictionary > NewNameDictionary ( int  at_least_space_for)
Handle< Context > NewNativeContext ( )

Definition at line 588 of file factory.cc.

References CALL_HEAP_FUNCTION.

Handle< JSObject > NewNeanderObject ( )

Definition at line 1030 of file factory.cc.

References CALL_HEAP_FUNCTION.

Referenced by NeanderObject::NeanderObject().

Handle< Object > NewNumberFromInt ( int32_t  value,
PretenureFlag  pretenure = NOT_TENURED 
)

Definition at line 1006 of file factory.cc.

References CALL_HEAP_FUNCTION.

Referenced by Execution::CharAt(), HeapGraphEdge::GetName(), and Array::New().

Handle< Object > NewNumberFromSize ( size_t  value,
PretenureFlag  pretenure = NOT_TENURED 
)
inline

Definition at line 623 of file factory.h.

References Smi::FromIntptr(), Smi::IsValid(), and Factory::NewNumber().

Referenced by v8::NewTypedArray(), and Runtime::SetupArrayBuffer().

Handle< Object > NewNumberFromUint ( uint32_t  value,
PretenureFlag  pretenure = NOT_TENURED 
)
Handle< ObjectHashSet > NewObjectHashSet ( int  at_least_space_for)
Handle< ObjectHashTable > NewObjectHashTable ( int  at_least_space_for,
MinimumCapacity  capacity_option = USE_DEFAULT_MINIMUM_CAPACITY 
)
Handle< Symbol > NewPrivateSymbol ( )

Definition at line 580 of file factory.cc.

References CALL_HEAP_FUNCTION.

Referenced by Private::ForApi(), and Private::New().

Handle< PropertyCell > NewPropertyCellWithHole ( )

Definition at line 785 of file factory.cc.

References CALL_HEAP_FUNCTION.

Referenced by Factory::NewPropertyCell().

Handle< Object > NewRangeError ( const char *  message,
Vector< Handle< Object > >  args 
)

Definition at line 1050 of file factory.cc.

References Factory::NewError().

Referenced by Exception::RangeError().

Handle< Object > NewRangeError ( Handle< String message)

Definition at line 1056 of file factory.cc.

References Factory::NewError().

Handle< ConsString > NewRawConsString ( String::Encoding  encoding)
Handle< SlicedString > NewRawSlicedString ( String::Encoding  encoding)
Handle< SeqTwoByteString > NewRawTwoByteString ( int  length,
PretenureFlag  pretenure = NOT_TENURED 
)
Handle< Object > NewReferenceError ( const char *  message,
Vector< Handle< Object > >  args 
)
Handle< Object > NewReferenceError ( const char *  message,
Handle< JSArray args 
)

Definition at line 1078 of file factory.cc.

References Factory::NewError().

Handle< Object > NewReferenceError ( Handle< String message)

Definition at line 1084 of file factory.cc.

References Factory::NewError().

Handle< ScopeInfo > NewScopeInfo ( int  length)

Definition at line 1276 of file factory.cc.

References CALL_HEAP_FUNCTION.

Handle< SeededNumberDictionary > NewSeededNumberDictionary ( int  at_least_space_for)
Handle< SharedFunctionInfo > NewSharedFunctionInfo ( Handle< String name,
int  number_of_literals,
bool  is_generator,
Handle< Code code,
Handle< ScopeInfo scope_info 
)

Definition at line 1569 of file factory.cc.

References JSFunction::kLiteralsPrefixSize.

Referenced by Compiler::BuildFunctionInfo().

Handle< SharedFunctionInfo > NewSharedFunctionInfo ( Handle< String name)

Definition at line 1612 of file factory.cc.

References CALL_HEAP_FUNCTION.

Handle< String > NewStringFromOneByte ( Vector< const uint8_t >  str,
PretenureFlag  pretenure = NOT_TENURED 
)
Handle< String > NewStringFromTwoByte ( Vector< const uc16 str,
PretenureFlag  pretenure = NOT_TENURED 
)

Definition at line 282 of file factory.cc.

References CALL_HEAP_FUNCTION.

Referenced by Scanner::AllocateNextLiteralString(), RegExpImpl::Compile(), and TEST().

Handle< String > NewStringFromUtf8 ( Vector< const char >  str,
PretenureFlag  pretenure = NOT_TENURED 
)
Handle<String> NewSubString ( Handle< String str,
int  begin,
int  end 
)
inline
Handle< Symbol > NewSymbol ( )

Definition at line 572 of file factory.cc.

References CALL_HEAP_FUNCTION.

Referenced by Symbol::For(), Symbol::ForApi(), Symbol::New(), and TEST().

Handle< Object > NewSyntaxError ( const char *  message,
Handle< JSArray args 
)
Handle< Object > NewSyntaxError ( Handle< String message)

Definition at line 1067 of file factory.cc.

References Factory::NewError().

Handle< Object > NewTypeError ( Handle< String message)

Definition at line 1045 of file factory.cc.

References Factory::NewError().

Handle< TypeFeedbackInfo > NewTypeFeedbackInfo ( )

Definition at line 210 of file factory.cc.

References CALL_HEAP_FUNCTION.

Handle< FixedArray > NewUninitializedFixedArray ( int  size)

Definition at line 72 of file factory.cc.

References CALL_HEAP_FUNCTION.

Handle< UnseededNumberDictionary > NewUnseededNumberDictionary ( int  at_least_space_for)
Handle< Context > NewWithContext ( Handle< JSFunction function,
Handle< Context previous,
Handle< JSObject extension 
)

Definition at line 636 of file factory.cc.

References CALL_HEAP_FUNCTION.

Handle< String > NumberToString ( Handle< Object number)

Definition at line 1619 of file factory.cc.

References CALL_HEAP_FUNCTION.

Handle< Map > ObjectLiteralMapFromCache ( Handle< Context context,
Handle< FixedArray keys 
)

Definition at line 1939 of file factory.cc.

References MapCache::cast(), Factory::CopyMap(), and v8::internal::map.

Handle< Object > ToBoolean ( bool  value)
Handle< Object > ToObject ( Handle< Object object,
Handle< Context native_context 
)

Definition at line 1701 of file factory.cc.

References CALL_HEAP_FUNCTION, v8::internal::Object, and Value::ToObject().

Handle< String > Uint32ToString ( uint32_t  value)

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