v8  3.14.5(node0.10.28)
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< FixedArrayNewFixedArray (int size, PretenureFlag pretenure=NOT_TENURED)
 
Handle< FixedArrayNewFixedArrayWithHoles (int size, PretenureFlag pretenure=NOT_TENURED)
 
Handle< FixedDoubleArrayNewFixedDoubleArray (int size, PretenureFlag pretenure=NOT_TENURED)
 
Handle< SeededNumberDictionaryNewSeededNumberDictionary (int at_least_space_for)
 
Handle< UnseededNumberDictionaryNewUnseededNumberDictionary (int at_least_space_for)
 
Handle< StringDictionaryNewStringDictionary (int at_least_space_for)
 
Handle< ObjectHashSetNewObjectHashSet (int at_least_space_for)
 
Handle< ObjectHashTableNewObjectHashTable (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< StringLookupSymbol (Vector< const char > str)
 
Handle< StringLookupSymbol (Handle< String > str)
 
Handle< StringLookupAsciiSymbol (Vector< const char > str)
 
Handle< StringLookupAsciiSymbol (Handle< SeqAsciiString >, int from, int length)
 
Handle< StringLookupTwoByteSymbol (Vector< const uc16 > str)
 
Handle< StringLookupAsciiSymbol (const char *str)
 
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< SeqAsciiStringNewRawAsciiString (int length, PretenureFlag pretenure=NOT_TENURED)
 
Handle< SeqTwoByteStringNewRawTwoByteString (int length, PretenureFlag pretenure=NOT_TENURED)
 
Handle< StringNewConsString (Handle< String > first, Handle< String > second)
 
Handle< StringNewSubString (Handle< String > str, int begin, int end)
 
Handle< StringNewProperSubString (Handle< String > str, int begin, int end)
 
Handle< StringNewExternalStringFromAscii (const ExternalAsciiString::Resource *resource)
 
Handle< StringNewExternalStringFromTwoByte (const ExternalTwoByteString::Resource *resource)
 
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< StringSymbolFromString (Handle< String > value)
 
Handle< StructNewStruct (InstanceType type)
 
Handle< AccessorInfoNewAccessorInfo ()
 
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< JSGlobalPropertyCellNewJSGlobalPropertyCell (Handle< Object > value)
 
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< MapGetElementsTransitionMap (Handle< JSObject > object, ElementsKind elements_kind)
 
Handle< FixedArrayCopyFixedArray (Handle< FixedArray > array)
 
Handle< FixedDoubleArrayCopyFixedDoubleArray (Handle< FixedDoubleArray > 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< JSObjectNewNeanderObject ()
 
Handle< JSObjectNewArgumentsObject (Handle< Object > callee, int length)
 
Handle< JSObjectNewJSObject (Handle< JSFunction > constructor, PretenureFlag pretenure=NOT_TENURED)
 
Handle< GlobalObjectNewGlobalObject (Handle< JSFunction > constructor)
 
Handle< JSObjectNewJSObjectFromMap (Handle< Map > map)
 
Handle< JSModuleNewJSModule (Handle< Context > context, Handle< ScopeInfo > scope_info)
 
Handle< JSArrayNewJSArray (int capacity, ElementsKind elements_kind=TERMINAL_FAST_ELEMENTS_KIND, PretenureFlag pretenure=NOT_TENURED)
 
Handle< JSArrayNewJSArrayWithElements (Handle< FixedArrayBase > elements, ElementsKind elements_kind=TERMINAL_FAST_ELEMENTS_KIND, PretenureFlag pretenure=NOT_TENURED)
 
void SetElementsCapacityAndLength (Handle< JSArray > array, int capacity, int length)
 
void SetContent (Handle< JSArray > array, Handle< FixedArrayBase > elements)
 
void EnsureCanContainHeapObjectElements (Handle< JSArray > array)
 
void EnsureCanContainElements (Handle< JSArray > array, Handle< FixedArrayBase > elements, uint32_t length, EnsureElementsMode mode)
 
Handle< JSProxyNewJSProxy (Handle< Object > handler, Handle< Object > prototype)
 
void BecomeJSObject (Handle< JSReceiver > object)
 
void BecomeJSFunction (Handle< JSReceiver > object)
 
void SetIdentityHash (Handle< JSObject > object, Smi *hash)
 
Handle< JSFunctionNewFunction (Handle< String > name, Handle< Object > prototype)
 
Handle< JSFunctionNewFunctionWithoutPrototype (Handle< String > name, LanguageMode language_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< CodeNewCode (const CodeDesc &desc, Code::Flags flags, Handle< Object > self_reference, bool immovable=false)
 
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 *type, Handle< JSArray > args)
 
Handle< StringEmergencyNewError (const char *type, Handle< JSArray > args)
 
Handle< ObjectNewError (const char *maker, const char *type, Vector< Handle< Object > > args)
 
Handle< ObjectNewError (const char *type, Vector< Handle< Object > > args)
 
Handle< ObjectNewError (Handle< String > message)
 
Handle< ObjectNewError (const char *constructor, Handle< String > message)
 
Handle< ObjectNewTypeError (const char *type, Vector< Handle< Object > > args)
 
Handle< ObjectNewTypeError (Handle< String > message)
 
Handle< ObjectNewRangeError (const char *type, Vector< Handle< Object > > args)
 
Handle< ObjectNewRangeError (Handle< String > message)
 
Handle< ObjectNewSyntaxError (const char *type, Handle< JSArray > args)
 
Handle< ObjectNewSyntaxError (Handle< String > message)
 
Handle< ObjectNewReferenceError (const char *type, Vector< Handle< Object > > args)
 
Handle< ObjectNewReferenceError (Handle< String > message)
 
Handle< ObjectNewEvalError (const char *type, 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_symbol ()
 
Handle< SharedFunctionInfoNewSharedFunctionInfo (Handle< String > name, int number_of_literals, 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_trace, 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 396 of file factory.h.

Member Function Documentation

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

Definition at line 534 of file factory.cc.

References CALL_HEAP_FUNCTION.

Referenced by Factory::NewFunctionFromSharedFunctionInfo().

void BecomeJSFunction ( Handle< JSReceiver object)

Definition at line 1015 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 1007 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 1403 of file factory.cc.

References Execution::ConfigureInstance(), and v8::internal::instance_template.

Handle< Code > CopyCode ( Handle< Code code)

Definition at line 884 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 891 of file factory.cc.

References CALL_HEAP_FUNCTION, and Factory::CopyCode().

Handle< FixedDoubleArray > CopyFixedDoubleArray ( Handle< FixedDoubleArray array)

Definition at line 528 of file factory.cc.

References CALL_HEAP_FUNCTION.

Referenced by Runtime::CreateArrayLiteralBoilerplate().

Handle< Map > CopyMap ( Handle< Map map)

Definition at line 508 of file factory.cc.

References CALL_HEAP_FUNCTION.

Handle< Map > CopyWithPreallocatedFieldDescriptors ( Handle< Map map)

Definition at line 477 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 1088 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 1098 of file factory.cc.

References CALL_HEAP_FUNCTION.

Handle< String > EmergencyNewError ( const char *  type,
Handle< JSArray args 
)
void EnsureCanContainElements ( Handle< JSArray array,
Handle< FixedArrayBase elements,
uint32_t  length,
EnsureElementsMode  mode 
)

Definition at line 988 of file factory.cc.

References CALL_HEAP_FUNCTION_VOID.

void EnsureCanContainHeapObjectElements ( Handle< JSArray array)

Definition at line 981 of file factory.cc.

References CALL_HEAP_FUNCTION_VOID.

Handle< Map > GetElementsTransitionMap ( Handle< JSObject object,
ElementsKind  elements_kind 
)

Definition at line 513 of file factory.cc.

References CALL_HEAP_FUNCTION.

Referenced by ArrayConcatVisitor::ToArray().

Handle< Object > GlobalConstantFor ( Handle< String name)

Definition at line 1419 of file factory.cc.

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

Handle<String> hidden_symbol ( )
inline

Definition at line 431 of file factory.h.

References Isolate::heap().

Handle<JSFunction> InstallMembers ( Handle< JSFunction function)
Handle< String > LookupAsciiSymbol ( Handle< SeqAsciiString string,
int  from,
int  length 
)

Definition at line 181 of file factory.cc.

References CALL_HEAP_FUNCTION, and Factory::LookupAsciiSymbol().

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

Definition at line 89 of file factory.h.

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

Handle< String > LookupSymbol ( Vector< const char >  str)
Handle< String > LookupSymbol ( Handle< String str)

Definition at line 168 of file factory.cc.

References CALL_HEAP_FUNCTION, and Factory::LookupSymbol().

Handle< String > LookupTwoByteSymbol ( Vector< const uc16 str)

Definition at line 192 of file factory.cc.

References CALL_HEAP_FUNCTION.

Handle< AccessorInfo > NewAccessorInfo ( )
Handle< AccessorPair > NewAccessorPair ( )

Definition at line 146 of file factory.cc.

References CALL_HEAP_FUNCTION.

Handle< JSObject > NewArgumentsObject ( Handle< Object callee,
int  length 
)
Handle< Context > NewBlockContext ( Handle< JSFunction function,
Handle< Context previous,
Handle< ScopeInfo scope_info 
)

Definition at line 346 of file factory.cc.

References CALL_HEAP_FUNCTION.

Handle< ByteArray > NewByteArray ( int  length,
PretenureFlag  pretenure = NOT_TENURED 
)

Definition at line 426 of file factory.cc.

References ASSERT, and CALL_HEAP_FUNCTION.

Handle< Context > NewCatchContext ( Handle< JSFunction function,
Handle< Context previous,
Handle< String name,
Handle< Object thrown_object 
)

Definition at line 322 of file factory.cc.

References CALL_HEAP_FUNCTION.

Handle< Code > NewCode ( const CodeDesc desc,
Code::Flags  flags,
Handle< Object self_reference,
bool  immovable = false 
)

Definition at line 873 of file factory.cc.

References CALL_HEAP_FUNCTION.

Referenced by CodeGenerator::MakeCodeEpilogue().

Handle< String > NewConsString ( Handle< String first,
Handle< String second 
)
Handle< DeoptimizationInputData > NewDeoptimizationInputData ( int  deopt_entry_count,
PretenureFlag  pretenure 
)

Definition at line 124 of file factory.cc.

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

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

Definition at line 135 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 115 of file factory.cc.

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

Referenced by Map::EnsureDescriptorSlack().

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

Definition at line 692 of file factory.cc.

References Factory::NewError().

Handle< Object > NewError ( Handle< String message)

Definition at line 762 of file factory.cc.

References Factory::NewError().

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

Definition at line 686 of file factory.cc.

References Factory::NewError().

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

Definition at line 435 of file factory.cc.

References ASSERT, and CALL_HEAP_FUNCTION.

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

Definition at line 279 of file factory.cc.

References CALL_HEAP_FUNCTION.

Referenced by v8::NewExternalStringHandle().

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

Definition at line 53 of file factory.cc.

References ASSERT, and CALL_HEAP_FUNCTION.

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

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

Definition at line 63 of file factory.cc.

References ASSERT, and CALL_HEAP_FUNCTION.

Handle< Foreign > NewForeign ( Address  addr,
PretenureFlag  pretenure = NOT_TENURED 
)
Handle< Foreign > NewForeign ( const AccessorDescriptor foreign)

Definition at line 421 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 313 of file factory.cc.

References CALL_HEAP_FUNCTION.

Handle< JSObject > NewFunctionPrototype ( Handle< JSFunction function)

Definition at line 469 of file factory.cc.

References CALL_HEAP_FUNCTION.

Referenced by Factory::NewFunction().

Handle< JSFunction > NewFunctionWithoutPrototype ( Handle< String name,
LanguageMode  language_mode 
)

Definition at line 1144 of file factory.cc.

Referenced by Factory::NewFunctionWithoutPrototype().

Handle< JSFunction > NewFunctionWithoutPrototype ( Handle< String name,
Handle< Code code 
)
Handle< Context > NewGlobalContext ( Handle< JSFunction function,
Handle< ScopeInfo scope_info 
)

Definition at line 296 of file factory.cc.

References CALL_HEAP_FUNCTION.

Handle< GlobalObject > NewGlobalObject ( Handle< JSFunction constructor)

Definition at line 920 of file factory.cc.

References CALL_HEAP_FUNCTION.

Handle< JSGlobalPropertyCell > NewJSGlobalPropertyCell ( Handle< Object value)

Definition at line 450 of file factory.cc.

References CALL_HEAP_FUNCTION.

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

Definition at line 1050 of file factory.cc.

References CALL_HEAP_FUNCTION.

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

Definition at line 912 of file factory.cc.

References CALL_HEAP_FUNCTION.

Referenced by Scope::AllocateModules().

Handle< JSObject > NewJSObjectFromMap ( Handle< Map map)

Definition at line 929 of file factory.cc.

References CALL_HEAP_FUNCTION, and v8::internal::NOT_TENURED.

Handle< JSProxy > NewJSProxy ( Handle< Object handler,
Handle< Object prototype 
)

Definition at line 998 of file factory.cc.

References CALL_HEAP_FUNCTION.

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

Definition at line 459 of file factory.cc.

References CALL_HEAP_FUNCTION.

Referenced by Factory::NewFunction(), and Factory::NewFunctionWithPrototype().

Handle< Context > NewModuleContext ( Handle< ScopeInfo scope_info)

Definition at line 305 of file factory.cc.

References CALL_HEAP_FUNCTION.

Referenced by Scope::AllocateModules().

Handle< Context > NewNativeContext ( )

Definition at line 288 of file factory.cc.

References CALL_HEAP_FUNCTION.

Handle< JSObject > NewNeanderObject ( )

Definition at line 621 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 605 of file factory.cc.

References CALL_HEAP_FUNCTION.

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

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)
Handle< String > NewProperSubString ( Handle< String str,
int  begin,
int  end 
)

Definition at line 260 of file factory.cc.

References ASSERT, and CALL_HEAP_FUNCTION.

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

Definition at line 641 of file factory.cc.

References Factory::NewError().

Referenced by Exception::RangeError().

Handle< Object > NewRangeError ( Handle< String message)

Definition at line 647 of file factory.cc.

References Factory::NewError().

Handle< SeqAsciiString > NewRawAsciiString ( int  length,
PretenureFlag  pretenure = NOT_TENURED 
)

Definition at line 225 of file factory.cc.

References CALL_HEAP_FUNCTION.

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

Handle< SeqTwoByteString > NewRawTwoByteString ( int  length,
PretenureFlag  pretenure = NOT_TENURED 
)

Definition at line 234 of file factory.cc.

References CALL_HEAP_FUNCTION.

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

Handle< Object > NewReferenceError ( const char *  type,
Vector< Handle< Object > >  args 
)

Definition at line 662 of file factory.cc.

References Factory::NewError().

Referenced by IC::ReferenceError(), and Exception::ReferenceError().

Handle< Object > NewReferenceError ( Handle< String message)

Definition at line 668 of file factory.cc.

References Factory::NewError().

Handle< ScopeInfo > NewScopeInfo ( int  length)

Definition at line 865 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,
Handle< Code code,
Handle< ScopeInfo scope_info 
)

Definition at line 1030 of file factory.cc.

References JSFunction::kLiteralsPrefixSize.

Handle< SharedFunctionInfo > NewSharedFunctionInfo ( Handle< String name)

Definition at line 1069 of file factory.cc.

References CALL_HEAP_FUNCTION.

Handle< StringDictionary > NewStringDictionary ( int  at_least_space_for)
Handle< String > NewStringFromAscii ( Vector< const char >  str,
PretenureFlag  pretenure = NOT_TENURED 
)
Handle< String > NewStringFromTwoByte ( Vector< const uc16 str,
PretenureFlag  pretenure = NOT_TENURED 
)

Definition at line 216 of file factory.cc.

References CALL_HEAP_FUNCTION.

Referenced by RegExpImpl::Compile(), String::New(), String::NewUndetectable(), and TEST().

Handle< String > NewStringFromUtf8 ( Vector< const char >  str,
PretenureFlag  pretenure = NOT_TENURED 
)
Handle< String > NewSubString ( Handle< String str,
int  begin,
int  end 
)
Handle< Object > NewSyntaxError ( const char *  type,
Handle< JSArray args 
)
Handle< Object > NewSyntaxError ( Handle< String message)

Definition at line 657 of file factory.cc.

References Factory::NewError().

Handle< Object > NewTypeError ( Handle< String message)

Definition at line 636 of file factory.cc.

References Factory::NewError().

Handle< TypeFeedbackInfo > NewTypeFeedbackInfo ( )

Definition at line 153 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 336 of file factory.cc.

References CALL_HEAP_FUNCTION.

Handle< String > NumberToString ( Handle< Object number)

Definition at line 1076 of file factory.cc.

References CALL_HEAP_FUNCTION.

Referenced by JSObject::SetDictionaryElement().

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

Definition at line 1346 of file factory.cc.

References MapCache::cast(), and Factory::CopyMap().

void SetContent ( Handle< JSArray array,
Handle< FixedArrayBase elements 
)

Definition at line 973 of file factory.cc.

References CALL_HEAP_FUNCTION_VOID.

void SetElementsCapacityAndLength ( Handle< JSArray array,
int  capacity,
int  length 
)
void SetIdentityHash ( Handle< JSObject object,
Smi hash 
)

Definition at line 1023 of file factory.cc.

References v8::internal::ALLOW_CREATION, and CALL_HEAP_FUNCTION_VOID.

Referenced by JSProxy::Fix().

Handle< String > SymbolFromString ( Handle< String value)

Definition at line 898 of file factory.cc.

References CALL_HEAP_FUNCTION, and Factory::LookupSymbol().

Referenced by Map::AppendCallbackDescriptors().

Handle< Object > ToBoolean ( bool  value)

Definition at line 1428 of file factory.cc.

References Isolate::heap().

Handle< Object > ToObject ( Handle< Object object)

Definition at line 1154 of file factory.cc.

References CALL_HEAP_FUNCTION, and v8::internal::Object.

Referenced by NumberObject::New(), BooleanObject::New(), and StringObject::New().

Handle< Object > ToObject ( Handle< Object object,
Handle< Context native_context 
)

Definition at line 1159 of file factory.cc.

References CALL_HEAP_FUNCTION, and v8::internal::Object.

Handle< String > Uint32ToString ( uint32_t  value)

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