v8
3.14.5(node0.10.28)
V8 is Google's open source JavaScript engine
|
#include <factory.h>
Public Types | |
enum | ApiInstanceType { JavaScriptObject, InnerGlobalObject, OuterGlobalObject } |
enum ApiInstanceType |
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.
Definition at line 884 of file factory.cc.
References CALL_HEAP_FUNCTION.
Referenced by Factory::CopyCode().
Definition at line 891 of file factory.cc.
References CALL_HEAP_FUNCTION, and Factory::CopyCode().
Handle< FixedArray > CopyFixedArray | ( | Handle< FixedArray > | array | ) |
Definition at line 523 of file factory.cc.
References CALL_HEAP_FUNCTION.
Referenced by Runtime::CreateArrayLiteralBoilerplate(), Object::GetOwnPropertyNames(), and Object::GetPropertyNames().
Handle< FixedDoubleArray > CopyFixedDoubleArray | ( | Handle< FixedDoubleArray > | array | ) |
Definition at line 528 of file factory.cc.
References CALL_HEAP_FUNCTION.
Referenced by Runtime::CreateArrayLiteralBoilerplate().
Definition at line 483 of file factory.cc.
References Factory::CopyWithPreallocatedFieldDescriptors(), StaticVisitorBase::GetVisitorId(), JSObject::kMaxInstanceSize, v8::internal::kPointerSize, and v8::internal::kPointerSizeLog2.
Referenced by Factory::ObjectLiteralMapFromCache(), and Object::TurnOnAccessCheck().
Definition at line 508 of file factory.cc.
References CALL_HEAP_FUNCTION.
Definition at line 477 of file factory.cc.
References CALL_HEAP_FUNCTION.
Referenced by Factory::CopyMap().
Handle< JSFunction > CreateApiFunction | ( | Handle< FunctionTemplateInfo > | data, |
ApiInstanceType | type = JavaScriptObject |
||
) |
Definition at line 1206 of file factory.cc.
References Map::AppendCallbackDescriptors(), ASSERT, Isolate::builtins(), Handle< T >::cast(), Smi::cast(), FunctionTemplateInfo::cast(), ObjectTemplateInfo::cast(), v8::internal::code(), Map::EnsureDescriptorSlack(), Factory::InnerGlobalObject, v8::internal::instance_template, v8::internal::INVALID_TYPE, Factory::JavaScriptObject, v8::internal::JS_GLOBAL_OBJECT_TYPE, v8::internal::JS_GLOBAL_PROXY_TYPE, v8::internal::JS_OBJECT_TYPE, JSObject::kHeaderSize, v8::internal::kPointerSize, JSGlobalProxy::kSize, JSGlobalObject::kSize, NeanderArray::length(), Factory::NewFunction(), and Factory::OuterGlobalObject.
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.
Definition at line 698 of file factory.cc.
References ARRAY_SIZE, v8::internal::CStrVector(), v8::internal::Min(), Factory::NewStringFromUtf8(), OS::StrNCpy(), and v8::internal::TENURED.
Referenced by Factory::NewError().
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.
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().
Definition at line 1419 of file factory.cc.
References Isolate::heap(), and Handle< T >::null().
Definition at line 431 of file factory.h.
References Isolate::heap().
Handle<JSFunction> InstallMembers | ( | Handle< JSFunction > | function | ) |
Definition at line 174 of file factory.cc.
References CALL_HEAP_FUNCTION.
Referenced by JSProxy::CallTrap(), Isolate::CaptureCurrentStackTrace(), Date::DateTimeConfigurationChangeNotification(), JSProxy::DeletePropertyWithHandler(), CpuProfileNode::GetFunctionName(), HeapGraphEdge::GetName(), HeapGraphNode::GetName(), v8::internal::GetProperty(), JSProxy::GetPropertyAttributeWithHandler(), CpuProfileNode::GetScriptResourceName(), CpuProfile::GetTitle(), HeapSnapshot::GetTitle(), Factory::LookupAsciiSymbol(), Factory::NewError(), and JSProxy::SetPropertyViaPrototypesWithHandler().
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().
Definition at line 89 of file factory.h.
References v8::internal::CStrVector(), and Factory::LookupSymbol().
Definition at line 161 of file factory.cc.
References CALL_HEAP_FUNCTION.
Referenced by Factory::LookupAsciiSymbol(), Factory::LookupSymbol(), String::NewSymbol(), and Factory::SymbolFromString().
Definition at line 168 of file factory.cc.
References CALL_HEAP_FUNCTION, and Factory::LookupSymbol().
Definition at line 192 of file factory.cc.
References CALL_HEAP_FUNCTION.
Handle< AccessorInfo > NewAccessorInfo | ( | ) |
Definition at line 366 of file factory.cc.
References v8::internal::ACCESSOR_INFO_TYPE, Handle< T >::cast(), and Factory::NewStruct().
Referenced by Accessors::MakeModuleExport().
Handle< AccessorPair > NewAccessorPair | ( | ) |
Definition at line 146 of file factory.cc.
References CALL_HEAP_FUNCTION.
Definition at line 1198 of file factory.cc.
References CALL_HEAP_FUNCTION.
Referenced by Accessors::FunctionGetArguments(), and Deoptimizer::MaterializeHeapObjects().
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().
Definition at line 243 of file factory.cc.
References CALL_HEAP_FUNCTION.
Referenced by String::Concat(), CpuProfileNode::GetFunctionName(), and v8::internal::StringReplaceOneCharWithString().
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().
Definition at line 735 of file factory.cc.
References ARRAY_SIZE, Handle< T >::cast(), Factory::EmergencyNewError(), Factory::LookupAsciiSymbol(), and Execution::TryCall().
Referenced by Exception::Error(), Factory::NewError(), Factory::NewEvalError(), Factory::NewRangeError(), Factory::NewReferenceError(), Factory::NewSyntaxError(), and Factory::NewTypeError().
Handle< Object > NewError | ( | const char * | maker, |
const char * | type, | ||
Vector< Handle< Object > > | args | ||
) |
Definition at line 673 of file factory.cc.
References Handle< T >::EscapeFrom(), Factory::NewError(), Factory::NewFixedArray(), and Factory::NewJSArrayWithElements().
Definition at line 692 of file factory.cc.
References Factory::NewError().
Definition at line 762 of file factory.cc.
References Factory::NewError().
Definition at line 767 of file factory.cc.
References ARRAY_SIZE, JSFunction::cast(), Factory::LookupAsciiSymbol(), and Execution::TryCall().
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 | ) |
Definition at line 270 of file factory.cc.
References CALL_HEAP_FUNCTION.
Referenced by Bootstrapper::NativesSourceLookup(), and v8::NewExternalAsciiStringHandle().
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 > NewFixedArray | ( | int | size, |
PretenureFlag | pretenure = NOT_TENURED |
||
) |
Definition at line 44 of file factory.cc.
References ASSERT, and CALL_HEAP_FUNCTION.
Referenced by v8::internal::CalculateLineEnds(), Accessors::FunctionGetArguments(), v8::internal::GetEnumPropertyKeys(), v8::internal::GetKeysInFixedArrayFor(), ThisNamedPropertyAssignmentFinder::GetThisPropertyAssignments(), v8::internal::InitScriptLineEnds(), Deoptimizer::MaterializeHeapObjects(), NeanderObject::NeanderObject(), Signature::New(), TypeSwitch::New(), Factory::NewError(), Factory::NewFunctionFromSharedFunctionInfo(), Parser::ReportMessageAt(), Factory::SetRegExpAtomData(), and Factory::SetRegExpIrregexpData().
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 |
||
) |
Definition at line 414 of file factory.cc.
References CALL_HEAP_FUNCTION.
Referenced by V8::AddMessageListener(), Factory::NewForeign(), Factory::NewScript(), and Object::SetPointerInInternalField().
Handle< Foreign > NewForeign | ( | const AccessorDescriptor * | foreign | ) |
Definition at line 421 of file factory.cc.
References Factory::NewForeign(), and v8::internal::TENURED.
Definition at line 1120 of file factory.cc.
Referenced by Factory::CreateApiFunction(), Factory::NewFunction(), and Factory::NewFunctionWithPrototype().
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 | ||
) |
Definition at line 787 of file factory.cc.
References ASSERT, v8::internal::JS_OBJECT_TYPE, JSObject::kHeaderSize, Factory::NewFunction(), Factory::NewFunctionPrototype(), and Factory::NewMap().
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< JSFunction > NewFunctionFromSharedFunctionInfo | ( | Handle< SharedFunctionInfo > | function_info, |
Handle< Context > | context, | ||
PretenureFlag | pretenure = TENURED |
||
) |
Definition at line 548 of file factory.cc.
References Factory::BaseNewFunctionFromSharedFunctionInfo(), Heap::global_ic_age(), Isolate::heap(), JSFunction::kLiteralNativeContextIndex, Factory::NewFixedArray(), and V8::UseCrankshaft().
Referenced by Script::Compile(), and Script::Run().
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().
Definition at line 853 of file factory.cc.
References ASSERT, v8::internal::CLASSIC_MODE, and Factory::NewFunctionWithoutPrototype().
Handle< JSFunction > NewFunctionWithPrototype | ( | Handle< String > | name, |
InstanceType | type, | ||
int | instance_size, | ||
Handle< JSObject > | prototype, | ||
Handle< Code > | code, | ||
bool | force_initial_map | ||
) |
Definition at line 817 of file factory.cc.
References CHECK_NOT_EMPTY_HANDLE, DONT_ENUM, v8::internal::GetInitialFastElementsKind(), v8::internal::JS_OBJECT_TYPE, JSObject::kHeaderSize, Factory::NewFunction(), Factory::NewMap(), JSObject::SetLocalPropertyIgnoreAttributes(), and v8::internal::SetPrototypeProperty().
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< JSArray > NewJSArray | ( | int | capacity, |
ElementsKind | elements_kind = TERMINAL_FAST_ELEMENTS_KIND , |
||
PretenureFlag | pretenure = NOT_TENURED |
||
) |
Definition at line 937 of file factory.cc.
References CALL_HEAP_FUNCTION, and v8::internal::INITIALIZE_ARRAY_ELEMENTS_WITH_HOLE.
Referenced by Scope::Analyze(), Isolate::CaptureCurrentStackTrace(), Array::New(), Scope::ResolveVariable(), and ArrayConcatVisitor::ToArray().
Handle< JSArray > NewJSArrayWithElements | ( | Handle< FixedArrayBase > | elements, |
ElementsKind | elements_kind = TERMINAL_FAST_ELEMENTS_KIND , |
||
PretenureFlag | pretenure = NOT_TENURED |
||
) |
Definition at line 951 of file factory.cc.
References CALL_HEAP_FUNCTION.
Referenced by v8::internal::GetKeysFor(), Object::GetOwnPropertyNames(), Object::GetPropertyNames(), Factory::NewError(), Parser::ReportMessageAt(), and v8::internal::RUNTIME_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.
Definition at line 912 of file factory.cc.
References CALL_HEAP_FUNCTION.
Referenced by Scope::AllocateModules().
Handle< JSObject > NewJSObject | ( | Handle< JSFunction > | constructor, |
PretenureFlag | pretenure = NOT_TENURED |
||
) |
Definition at line 904 of file factory.cc.
References CALL_HEAP_FUNCTION.
Referenced by Isolate::CaptureCurrentStackTrace(), Runtime::CreateArrayLiteralBoilerplate(), v8::internal::GetScriptWrapper(), and Object::New().
Definition at line 929 of file factory.cc.
References CALL_HEAP_FUNCTION, and v8::internal::NOT_TENURED.
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().
Definition at line 305 of file factory.cc.
References CALL_HEAP_FUNCTION.
Referenced by Scope::AllocateModules().
Definition at line 288 of file factory.cc.
References CALL_HEAP_FUNCTION.
Definition at line 621 of file factory.cc.
References CALL_HEAP_FUNCTION.
Referenced by NeanderObject::NeanderObject().
Handle< Object > NewNumber | ( | double | value, |
PretenureFlag | pretenure = NOT_TENURED |
||
) |
Definition at line 597 of file factory.cc.
References CALL_HEAP_FUNCTION.
Referenced by Deoptimizer::MaterializeHeapObjects(), Number::New(), Integer::New(), NumberObject::New(), Integer::NewFromUnsigned(), ArrayConcatVisitor::ToArray(), and Value::ToArrayIndex().
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 |
||
) |
Definition at line 613 of file factory.cc.
References CALL_HEAP_FUNCTION.
Referenced by DictionaryElementsAccessor::DeleteCommon(), JSObject::DeleteElement(), JSObject::SetDictionaryElement(), and JSObject::SetElement().
Handle< ObjectHashSet > NewObjectHashSet | ( | int | at_least_space_for | ) |
Definition at line 99 of file factory.cc.
References HashTable< ObjectHashTableShape< 1 >, Object * >::Allocate(), ASSERT, and CALL_HEAP_FUNCTION.
Referenced by v8::internal::RUNTIME_FUNCTION().
Handle< ObjectHashTable > NewObjectHashTable | ( | int | at_least_space_for | ) |
Definition at line 107 of file factory.cc.
References HashTable< ObjectHashTableShape< 2 >, Object * >::Allocate(), ASSERT, and CALL_HEAP_FUNCTION.
Referenced by v8::internal::RUNTIME_FUNCTION().
Definition at line 260 of file factory.cc.
References ASSERT, and CALL_HEAP_FUNCTION.
Definition at line 641 of file factory.cc.
References Factory::NewError().
Referenced by Exception::RangeError().
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().
Definition at line 662 of file factory.cc.
References Factory::NewError().
Referenced by IC::ReferenceError(), and Exception::ReferenceError().
Definition at line 668 of file factory.cc.
References Factory::NewError().
Definition at line 865 of file factory.cc.
References CALL_HEAP_FUNCTION.
Definition at line 374 of file factory.cc.
References Handle< T >::cast(), Smi::cast(), Script::COMPILATION_STATE_INITIAL, Script::COMPILATION_TYPE_HOST, Smi::FromInt(), Isolate::heap(), Smi::IsValid(), Factory::NewForeign(), Factory::NewStruct(), v8::internal::SCRIPT_TYPE, Heap::SetLastScriptId(), v8::internal::TENURED, and Script::TYPE_NORMAL.
Referenced by Compiler::CompileEval().
Handle< SeededNumberDictionary > NewSeededNumberDictionary | ( | int | at_least_space_for | ) |
Definition at line 81 of file factory.cc.
References Dictionary< SeededNumberDictionaryShape, uint32_t >::Allocate(), ASSERT, and CALL_HEAP_FUNCTION.
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 | ) |
Definition at line 73 of file factory.cc.
References Dictionary< StringDictionaryShape, String * >::Allocate(), ASSERT, and CALL_HEAP_FUNCTION.
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 Context::ErrorMessageForCodeGenerationFromStrings(), 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 |
||
) |
Definition at line 207 of file factory.cc.
References CALL_HEAP_FUNCTION.
Referenced by Factory::EmergencyNewError(), String::New(), String::NewUndetectable(), and Parser::ReportMessageAt().
Handle< Struct > NewStruct | ( | InstanceType | type | ) |
Definition at line 358 of file factory.cc.
References CALL_HEAP_FUNCTION.
Referenced by FunctionTemplate::New(), Signature::New(), TypeSwitch::New(), Factory::NewAccessorInfo(), Factory::NewScript(), ObjectTemplate::SetAccessCheckCallbacks(), and FunctionTemplate::SetCallHandler().
Definition at line 251 of file factory.cc.
References CALL_HEAP_FUNCTION.
Referenced by CompiledReplacement::Compile(), and v8::internal::StringReplaceOneCharWithString().
Definition at line 652 of file factory.cc.
References Factory::NewError().
Referenced by Scope::Analyze(), Parser::ReportMessageAt(), Scope::ResolveVariable(), and Exception::SyntaxError().
Definition at line 657 of file factory.cc.
References Factory::NewError().
Definition at line 630 of file factory.cc.
References Factory::NewError().
Referenced by JSProxy::CallTrap(), DictionaryElementsAccessor::DeleteCommon(), JSObject::DeleteElement(), JSObject::DeleteProperty(), JSProxy::DeletePropertyWithHandler(), Runtime::GetObjectProperty(), JSProxy::GetPropertyAttributeWithHandler(), JSObject::GetPropertyWithCallback(), JSObject::PreventExtensions(), JSObject::SetDictionaryElement(), JSObject::SetElement(), Runtime::SetObjectProperty(), JSObject::SetPropertyForResult(), JSProxy::SetPropertyViaPrototypesWithHandler(), JSObject::SetPropertyWithCallback(), IC::TypeError(), and Exception::TypeError().
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 | ) |
Definition at line 90 of file factory.cc.
References Dictionary< UnseededNumberDictionaryShape, uint32_t >::Allocate(), ASSERT, and CALL_HEAP_FUNCTION.
Handle< Context > NewWithContext | ( | Handle< JSFunction > | function, |
Handle< Context > | previous, | ||
Handle< JSObject > | extension | ||
) |
Definition at line 336 of file factory.cc.
References CALL_HEAP_FUNCTION.
Definition at line 1076 of file factory.cc.
References CALL_HEAP_FUNCTION.
Referenced by JSObject::SetDictionaryElement().
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.
Definition at line 963 of file factory.cc.
References CALL_HEAP_FUNCTION_VOID, and ElementsAccessor::SetCapacityAndLength().
Definition at line 1023 of file factory.cc.
References v8::internal::ALLOW_CREATION, and CALL_HEAP_FUNCTION_VOID.
Referenced by JSProxy::Fix().
void SetRegExpAtomData | ( | Handle< JSRegExp > | regexp, |
JSRegExp::Type | type, | ||
Handle< String > | source, | ||
JSRegExp::Flags | flags, | ||
Handle< Object > | match_pattern | ||
) |
Definition at line 1367 of file factory.cc.
References Smi::FromInt(), JSRegExp::kAtomDataSize, JSRegExp::kAtomPatternIndex, JSRegExp::kFlagsIndex, JSRegExp::kSourceIndex, JSRegExp::kTagIndex, Factory::NewFixedArray(), and JSRegExp::Flags::value().
void SetRegExpIrregexpData | ( | Handle< JSRegExp > | regexp, |
JSRegExp::Type | type, | ||
Handle< String > | source, | ||
JSRegExp::Flags | flags, | ||
int | capture_count | ||
) |
Definition at line 1381 of file factory.cc.
References Smi::FromInt(), JSRegExp::kFlagsIndex, JSRegExp::kIrregexpASCIICodeIndex, JSRegExp::kIrregexpASCIICodeSavedIndex, JSRegExp::kIrregexpCaptureCountIndex, JSRegExp::kIrregexpDataSize, JSRegExp::kIrregexpMaxRegisterCountIndex, JSRegExp::kIrregexpUC16CodeIndex, JSRegExp::kIrregexpUC16CodeSavedIndex, JSRegExp::kSourceIndex, JSRegExp::kTagIndex, JSRegExp::kUninitializedValue, Factory::NewFixedArray(), and JSRegExp::Flags::value().
Definition at line 898 of file factory.cc.
References CALL_HEAP_FUNCTION, and Factory::LookupSymbol().
Referenced by Map::AppendCallbackDescriptors().
Definition at line 1428 of file factory.cc.
References Isolate::heap().
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().
Definition at line 1159 of file factory.cc.
References CALL_HEAP_FUNCTION, and v8::internal::Object.
Definition at line 1082 of file factory.cc.
References CALL_HEAP_FUNCTION.
Referenced by JSProxy::DeleteElementWithHandler(), and JSProxy::GetElementAttributeWithHandler().