v8  3.11.10(node0.8.26)
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< FixedArray > NewFixedArray (int size, PretenureFlag pretenure=NOT_TENURED)
 
Handle< FixedArray > NewFixedArrayWithHoles (int size, PretenureFlag pretenure=NOT_TENURED)
 
Handle< FixedDoubleArray > NewFixedDoubleArray (int size, PretenureFlag pretenure=NOT_TENURED)
 
Handle< SeededNumberDictionary > NewSeededNumberDictionary (int at_least_space_for)
 
Handle< UnseededNumberDictionary > NewUnseededNumberDictionary (int at_least_space_for)
 
Handle< StringDictionary > NewStringDictionary (int at_least_space_for)
 
Handle< ObjectHashSet > NewObjectHashSet (int at_least_space_for)
 
Handle< ObjectHashTable > NewObjectHashTable (int at_least_space_for)
 
Handle< DescriptorArray > NewDescriptorArray (int number_of_descriptors)
 
Handle< DeoptimizationInputData > NewDeoptimizationInputData (int deopt_entry_count, PretenureFlag pretenure)
 
Handle< DeoptimizationOutputData > NewDeoptimizationOutputData (int deopt_entry_count, PretenureFlag pretenure)
 
Handle< AccessorPair > NewAccessorPair ()
 
Handle< TypeFeedbackInfo > NewTypeFeedbackInfo ()
 
Handle< String > LookupSymbol (Vector< const char > str)
 
Handle< String > LookupSymbol (Handle< String > str)
 
Handle< String > LookupAsciiSymbol (Vector< const char > str)
 
Handle< String > LookupAsciiSymbol (Handle< SeqAsciiString >, int from, int length)
 
Handle< String > LookupTwoByteSymbol (Vector< const uc16 > str)
 
Handle< String > LookupAsciiSymbol (const char *str)
 
Handle< String > NewStringFromAscii (Vector< const char > str, PretenureFlag pretenure=NOT_TENURED)
 
Handle< String > NewStringFromUtf8 (Vector< const char > str, PretenureFlag pretenure=NOT_TENURED)
 
Handle< String > NewStringFromTwoByte (Vector< const uc16 > str, PretenureFlag pretenure=NOT_TENURED)
 
Handle< SeqAsciiString > NewRawAsciiString (int length, PretenureFlag pretenure=NOT_TENURED)
 
Handle< SeqTwoByteString > NewRawTwoByteString (int length, PretenureFlag pretenure=NOT_TENURED)
 
Handle< String > NewConsString (Handle< String > first, Handle< String > second)
 
Handle< String > NewSubString (Handle< String > str, int begin, int end)
 
Handle< String > NewProperSubString (Handle< String > str, int begin, int end)
 
Handle< String > NewExternalStringFromAscii (const ExternalAsciiString::Resource *resource)
 
Handle< String > NewExternalStringFromTwoByte (const ExternalTwoByteString::Resource *resource)
 
Handle< Context > NewGlobalContext ()
 
Handle< Context > NewModuleContext (Handle< Context > previous, Handle< ScopeInfo > scope_info)
 
Handle< Context > NewFunctionContext (int length, Handle< JSFunction > function)
 
Handle< Context > NewCatchContext (Handle< JSFunction > function, Handle< Context > previous, Handle< String > name, Handle< Object > thrown_object)
 
Handle< Context > NewWithContext (Handle< JSFunction > function, Handle< Context > previous, Handle< JSObject > extension)
 
Handle< Context > NewBlockContext (Handle< JSFunction > function, Handle< Context > previous, Handle< ScopeInfo > scope_info)
 
Handle< String > SymbolFromString (Handle< String > value)
 
Handle< Struct > NewStruct (InstanceType type)
 
Handle< AccessorInfo > NewAccessorInfo ()
 
Handle< Script > NewScript (Handle< String > source)
 
Handle< Foreign > NewForeign (Address addr, PretenureFlag pretenure=NOT_TENURED)
 
Handle< Foreign > NewForeign (const AccessorDescriptor *foreign)
 
Handle< ByteArray > NewByteArray (int length, PretenureFlag pretenure=NOT_TENURED)
 
Handle< ExternalArray > NewExternalArray (int length, ExternalArrayType array_type, void *external_pointer, PretenureFlag pretenure=NOT_TENURED)
 
Handle< JSGlobalPropertyCell > NewJSGlobalPropertyCell (Handle< Object > value)
 
Handle< Map > NewMap (InstanceType type, int instance_size, ElementsKind elements_kind=TERMINAL_FAST_ELEMENTS_KIND)
 
Handle< JSObject > NewFunctionPrototype (Handle< JSFunction > function)
 
Handle< Map > CopyMapDropDescriptors (Handle< Map > map)
 
Handle< Map > CopyMap (Handle< Map > map, int extra_inobject_props)
 
Handle< Map > CopyMapDropTransitions (Handle< Map > map)
 
Handle< Map > GetElementsTransitionMap (Handle< JSObject > object, ElementsKind elements_kind)
 
Handle< FixedArray > CopyFixedArray (Handle< FixedArray > array)
 
Handle< FixedDoubleArray > CopyFixedDoubleArray (Handle< FixedDoubleArray > array)
 
Handle< Object > NewNumber (double value, PretenureFlag pretenure=NOT_TENURED)
 
Handle< Object > NewNumberFromInt (int32_t value, PretenureFlag pretenure=NOT_TENURED)
 
Handle< Object > NewNumberFromUint (uint32_t value, PretenureFlag pretenure=NOT_TENURED)
 
Handle< JSObject > NewNeanderObject ()
 
Handle< JSObject > NewArgumentsObject (Handle< Object > callee, int length)
 
Handle< JSObject > NewJSObject (Handle< JSFunction > constructor, PretenureFlag pretenure=NOT_TENURED)
 
Handle< GlobalObject > NewGlobalObject (Handle< JSFunction > constructor)
 
Handle< JSObject > NewJSObjectFromMap (Handle< Map > map)
 
Handle< JSModule > NewJSModule ()
 
Handle< JSArray > NewJSArray (int capacity, ElementsKind elements_kind=TERMINAL_FAST_ELEMENTS_KIND, PretenureFlag pretenure=NOT_TENURED)
 
Handle< JSArray > NewJSArrayWithElements (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< JSProxy > NewJSProxy (Handle< Object > handler, Handle< Object > prototype)
 
void BecomeJSObject (Handle< JSReceiver > object)
 
void BecomeJSFunction (Handle< JSReceiver > object)
 
void SetIdentityHash (Handle< JSObject > object, Object *hash)
 
Handle< JSFunction > NewFunction (Handle< String > name, Handle< Object > prototype)
 
Handle< JSFunction > NewFunctionWithoutPrototype (Handle< String > name, LanguageMode language_mode)
 
Handle< JSFunction > NewFunction (Handle< Object > super, bool is_global)
 
Handle< JSFunction > BaseNewFunctionFromSharedFunctionInfo (Handle< SharedFunctionInfo > function_info, Handle< Map > function_map, PretenureFlag pretenure)
 
Handle< JSFunction > NewFunctionFromSharedFunctionInfo (Handle< SharedFunctionInfo > function_info, Handle< Context > context, PretenureFlag pretenure=TENURED)
 
Handle< ScopeInfo > NewScopeInfo (int length)
 
Handle< Code > NewCode (const CodeDesc &desc, Code::Flags flags, Handle< Object > self_reference, bool immovable=false)
 
Handle< Code > CopyCode (Handle< Code > code)
 
Handle< Code > CopyCode (Handle< Code > code, Vector< byte > reloc_info)
 
Handle< Object > ToObject (Handle< Object > object)
 
Handle< Object > ToObject (Handle< Object > object, Handle< Context > global_context)
 
Handle< Object > NewError (const char *maker, const char *type, Handle< JSArray > args)
 
Handle< String > EmergencyNewError (const char *type, Handle< JSArray > args)
 
Handle< Object > NewError (const char *maker, const char *type, Vector< Handle< Object > > args)
 
Handle< Object > NewError (const char *type, Vector< Handle< Object > > args)
 
Handle< Object > NewError (Handle< String > message)
 
Handle< Object > NewError (const char *constructor, Handle< String > message)
 
Handle< Object > NewTypeError (const char *type, Vector< Handle< Object > > args)
 
Handle< Object > NewTypeError (Handle< String > message)
 
Handle< Object > NewRangeError (const char *type, Vector< Handle< Object > > args)
 
Handle< Object > NewRangeError (Handle< String > message)
 
Handle< Object > NewSyntaxError (const char *type, Handle< JSArray > args)
 
Handle< Object > NewSyntaxError (Handle< String > message)
 
Handle< Object > NewReferenceError (const char *type, Vector< Handle< Object > > args)
 
Handle< Object > NewReferenceError (Handle< String > message)
 
Handle< Object > NewEvalError (const char *type, Vector< Handle< Object > > args)
 
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< JSFunction > NewFunctionWithPrototype (Handle< String > name, InstanceType type, int instance_size, Handle< JSObject > prototype, Handle< Code > code, bool force_initial_map)
 
Handle< JSFunction > NewFunctionWithoutPrototype (Handle< String > name, Handle< Code > code)
 
Handle< DescriptorArray > CopyAppendForeignDescriptor (Handle< DescriptorArray > array, Handle< String > key, Handle< Object > value, PropertyAttributes attributes)
 
Handle< String > NumberToString (Handle< Object > number)
 
Handle< String > Uint32ToString (uint32_t value)
 
Handle< JSFunction > CreateApiFunction (Handle< FunctionTemplateInfo > data, ApiInstanceType type=JavaScriptObject)
 
Handle< JSFunction > InstallMembers (Handle< JSFunction > function)
 
void ConfigureInstance (Handle< FunctionTemplateInfo > desc, Handle< JSObject > instance, bool *pending_exception)
 
Handle< String > hidden_symbol ()
 
Handle< SharedFunctionInfo > NewSharedFunctionInfo (Handle< String > name, int number_of_literals, Handle< Code > code, Handle< ScopeInfo > scope_info)
 
Handle< SharedFunctionInfo > NewSharedFunctionInfo (Handle< String > name)
 
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)
 
Handle< SeededNumberDictionary > DictionaryAtNumberPut (Handle< SeededNumberDictionary >, uint32_t key, Handle< Object > value)
 
Handle< UnseededNumberDictionary > DictionaryAtNumberPut (Handle< UnseededNumberDictionary >, uint32_t key, Handle< Object > value)
 
Handle< Map > ObjectLiteralMapFromCache (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< Object > GlobalConstantFor (Handle< String > name)
 
Handle< Object > ToBoolean (bool value)
 

Detailed Description

Definition at line 40 of file factory.h.

Member Enumeration Documentation

Enumerator
JavaScriptObject 
InnerGlobalObject 
OuterGlobalObject 

Definition at line 398 of file factory.h.

Member Function Documentation

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

Definition at line 527 of file factory.cc.

References CALL_HEAP_FUNCTION.

Referenced by Factory::NewFunctionFromSharedFunctionInfo().

void BecomeJSFunction ( Handle< JSReceiver >  object)

Definition at line 1083 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 1075 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 1460 of file factory.cc.

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

Handle< DescriptorArray > CopyAppendForeignDescriptor ( Handle< DescriptorArray >  array,
Handle< String >  key,
Handle< Object >  value,
PropertyAttributes  attributes 
)

Definition at line 894 of file factory.cc.

References CALL_HEAP_FUNCTION.

Handle< Code > CopyCode ( Handle< Code >  code)

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

References CALL_HEAP_FUNCTION, and Factory::CopyCode().

Handle< FixedDoubleArray > CopyFixedDoubleArray ( Handle< FixedDoubleArray >  array)

Definition at line 521 of file factory.cc.

References CALL_HEAP_FUNCTION.

Referenced by Runtime::CreateArrayLiteralBoilerplate().

Handle< Map > CopyMapDropDescriptors ( Handle< Map >  map)

Definition at line 469 of file factory.cc.

References CALL_HEAP_FUNCTION.

Referenced by Factory::CopyMap().

Handle< Map > CopyMapDropTransitions ( Handle< Map >  map)

Definition at line 499 of file factory.cc.

References CALL_HEAP_FUNCTION, and DescriptorArray::MAY_BE_SHARED.

Referenced by Object::TurnOnAccessCheck().

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

Definition at line 1156 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 1166 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 1056 of file factory.cc.

References CALL_HEAP_FUNCTION_VOID.

void EnsureCanContainHeapObjectElements ( Handle< JSArray >  array)

Definition at line 1049 of file factory.cc.

References CALL_HEAP_FUNCTION_VOID.

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

Definition at line 506 of file factory.cc.

References CALL_HEAP_FUNCTION.

Referenced by ArrayConcatVisitor::ToArray().

Handle< Object > GlobalConstantFor ( Handle< String >  name)

Definition at line 1476 of file factory.cc.

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

Handle<String> hidden_symbol ( )
inline

Definition at line 433 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 88 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 
)

Definition at line 1266 of file factory.cc.

References CALL_HEAP_FUNCTION.

Referenced by Accessors::FunctionGetArguments().

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

Definition at line 338 of file factory.cc.

References CALL_HEAP_FUNCTION.

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

Definition at line 418 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 314 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 857 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)
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 676 of file factory.cc.

References Factory::NewError().

Handle< Object > NewError ( Handle< String >  message)

Definition at line 746 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 670 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 427 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 413 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 305 of file factory.cc.

References CALL_HEAP_FUNCTION.

Handle< JSObject > NewFunctionPrototype ( Handle< JSFunction >  function)

Definition at line 461 of file factory.cc.

References CALL_HEAP_FUNCTION.

Referenced by Factory::NewFunction().

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

Definition at line 1212 of file factory.cc.

Referenced by Factory::NewFunctionWithoutPrototype().

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

Definition at line 288 of file factory.cc.

References CALL_HEAP_FUNCTION.

Handle< GlobalObject > NewGlobalObject ( Handle< JSFunction >  constructor)

Definition at line 988 of file factory.cc.

References CALL_HEAP_FUNCTION.

Handle< JSGlobalPropertyCell > NewJSGlobalPropertyCell ( Handle< Object >  value)

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

References CALL_HEAP_FUNCTION.

Handle< JSModule > NewJSModule ( )

Definition at line 981 of file factory.cc.

References CALL_HEAP_FUNCTION.

Handle< JSObject > NewJSObjectFromMap ( Handle< Map >  map)

Definition at line 997 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 1066 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 451 of file factory.cc.

References CALL_HEAP_FUNCTION.

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

Handle< Context > NewModuleContext ( Handle< Context >  previous,
Handle< ScopeInfo >  scope_info 
)

Definition at line 296 of file factory.cc.

References CALL_HEAP_FUNCTION.

Handle< JSObject > NewNeanderObject ( )

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

References Factory::NewError().

Referenced by Exception::RangeError().

Handle< Object > NewRangeError ( Handle< String >  message)

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

References Factory::NewError().

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

Handle< Object > NewReferenceError ( Handle< String >  message)

Definition at line 652 of file factory.cc.

References Factory::NewError().

Handle< ScopeInfo > NewScopeInfo ( int  length)

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

References JSFunction::kLiteralsPrefixSize.

Handle< SharedFunctionInfo > NewSharedFunctionInfo ( Handle< String >  name)

Definition at line 1137 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 
)

Definition at line 199 of file factory.cc.

References CALL_HEAP_FUNCTION.

Referenced by V8HeapExplorer::TagGlobalObjects(), and TEST().

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 641 of file factory.cc.

References Factory::NewError().

Handle< Object > NewTypeError ( Handle< String >  message)

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

References CALL_HEAP_FUNCTION.

Handle< String > NumberToString ( Handle< Object >  number)

Definition at line 1144 of file factory.cc.

References CALL_HEAP_FUNCTION.

Referenced by JSObject::SetDictionaryElement().

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

Definition at line 1403 of file factory.cc.

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

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

Definition at line 1041 of file factory.cc.

References CALL_HEAP_FUNCTION_VOID.

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

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

References CALL_HEAP_FUNCTION, and Factory::LookupSymbol().

Handle< Object > ToBoolean ( bool  value)

Definition at line 1485 of file factory.cc.

References Isolate::heap().

Handle< Object > ToObject ( Handle< Object >  object)

Definition at line 1222 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 >  global_context 
)

Definition at line 1227 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: