v8
3.11.10(node0.8.26)
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 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.
Definition at line 868 of file factory.cc.
References CALL_HEAP_FUNCTION.
Referenced by Factory::CopyCode().
Definition at line 875 of file factory.cc.
References CALL_HEAP_FUNCTION, and Factory::CopyCode().
Handle< FixedArray > CopyFixedArray | ( | Handle< FixedArray > | array | ) |
Definition at line 516 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 521 of file factory.cc.
References CALL_HEAP_FUNCTION.
Referenced by Runtime::CreateArrayLiteralBoilerplate().
Definition at line 474 of file factory.cc.
References Factory::CopyMapDropDescriptors(), StaticVisitorBase::GetVisitorId(), JSObject::kMaxInstanceSize, v8::internal::kPointerSize, and v8::internal::kPointerSizeLog2.
Referenced by Factory::ObjectLiteralMapFromCache().
Definition at line 469 of file factory.cc.
References CALL_HEAP_FUNCTION.
Referenced by Factory::CopyMap().
Definition at line 499 of file factory.cc.
References CALL_HEAP_FUNCTION, and DescriptorArray::MAY_BE_SHARED.
Referenced by Object::TurnOnAccessCheck().
Handle< JSFunction > CreateApiFunction | ( | Handle< FunctionTemplateInfo > | data, |
ApiInstanceType | type = JavaScriptObject |
||
) |
Definition at line 1274 of file factory.cc.
References ASSERT, Isolate::builtins(), Handle< T >::cast(), Smi::cast(), ObjectTemplateInfo::cast(), 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, Factory::NewFunction(), Factory::OuterGlobalObject, and v8::internal::type().
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.
Definition at line 682 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 1056 of file factory.cc.
References CALL_HEAP_FUNCTION_VOID.
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().
Definition at line 1476 of file factory.cc.
References Isolate::heap(), and Handle< T >::null().
Definition at line 433 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 88 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 358 of file factory.cc.
References v8::internal::ACCESSOR_INFO_TYPE, Handle< T >::cast(), and Factory::NewStruct().
Handle< AccessorPair > NewAccessorPair | ( | ) |
Definition at line 146 of file factory.cc.
References CALL_HEAP_FUNCTION.
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().
Definition at line 243 of file factory.cc.
References CALL_HEAP_FUNCTION.
Referenced by String::Concat(), CpuProfileNode::GetFunctionName(), and Runtime::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 | ) |
Definition at line 115 of file factory.cc.
References DescriptorArray::Allocate(), ASSERT, CALL_HEAP_FUNCTION, and DescriptorArray::MAY_BE_SHARED.
Definition at line 719 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 657 of file factory.cc.
References Handle< T >::EscapeFrom(), Factory::NewError(), Factory::NewFixedArray(), and Factory::NewJSArrayWithElements().
Definition at line 676 of file factory.cc.
References Factory::NewError().
Definition at line 746 of file factory.cc.
References Factory::NewError().
Definition at line 751 of file factory.cc.
References ARRAY_SIZE, JSFunction::cast(), Factory::LookupAsciiSymbol(), and Execution::TryCall().
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 | ) |
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(), 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 406 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 413 of file factory.cc.
References Factory::NewForeign(), and v8::internal::TENURED.
Definition at line 1188 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 771 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 305 of file factory.cc.
References CALL_HEAP_FUNCTION.
Handle< JSFunction > NewFunctionFromSharedFunctionInfo | ( | Handle< SharedFunctionInfo > | function_info, |
Handle< Context > | context, | ||
PretenureFlag | pretenure = TENURED |
||
) |
Definition at line 541 of file factory.cc.
References Factory::BaseNewFunctionFromSharedFunctionInfo(), Heap::global_ic_age(), Isolate::heap(), JSFunction::kLiteralGlobalContextIndex, Factory::NewFixedArray(), and V8::UseCrankshaft().
Referenced by Script::Compile(), and Script::Run().
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().
Definition at line 837 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 801 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().
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< JSArray > NewJSArray | ( | int | capacity, |
ElementsKind | elements_kind = TERMINAL_FAST_ELEMENTS_KIND , |
||
PretenureFlag | pretenure = NOT_TENURED |
||
) |
Definition at line 1005 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 1019 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 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.
Definition at line 981 of file factory.cc.
References CALL_HEAP_FUNCTION.
Handle< JSObject > NewJSObject | ( | Handle< JSFunction > | constructor, |
PretenureFlag | pretenure = NOT_TENURED |
||
) |
Definition at line 973 of file factory.cc.
References CALL_HEAP_FUNCTION.
Referenced by Isolate::CaptureCurrentStackTrace(), Runtime::CreateArrayLiteralBoilerplate(), v8::internal::GetScriptWrapper(), and Object::New().
Definition at line 997 of file factory.cc.
References CALL_HEAP_FUNCTION, and v8::internal::NOT_TENURED.
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().
Definition at line 296 of file factory.cc.
References CALL_HEAP_FUNCTION.
Definition at line 605 of file factory.cc.
References CALL_HEAP_FUNCTION.
Referenced by NeanderObject::NeanderObject().
Handle< Object > NewNumber | ( | double | value, |
PretenureFlag | pretenure = NOT_TENURED |
||
) |
Definition at line 581 of file factory.cc.
References CALL_HEAP_FUNCTION.
Referenced by Deoptimizer::MaterializeHeapNumbers(), 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 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 |
||
) |
Definition at line 597 of file factory.cc.
References CALL_HEAP_FUNCTION.
Referenced by DictionaryElementsAccessor::DeleteCommon(), 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 625 of file factory.cc.
References Factory::NewError().
Referenced by Exception::RangeError().
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().
Definition at line 646 of file factory.cc.
References Factory::NewError().
Referenced by IC::ReferenceError(), and Exception::ReferenceError().
Definition at line 652 of file factory.cc.
References Factory::NewError().
Definition at line 849 of file factory.cc.
References CALL_HEAP_FUNCTION.
Definition at line 366 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 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 | ) |
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 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 350 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 Runtime::StringReplaceOneCharWithString().
Definition at line 636 of file factory.cc.
References Factory::NewError().
Referenced by Scope::Analyze(), Parser::ReportMessageAt(), Scope::ResolveVariable(), and Exception::SyntaxError().
Definition at line 641 of file factory.cc.
References Factory::NewError().
Definition at line 614 of file factory.cc.
References Factory::NewError().
Referenced by JSProxy::CallTrap(), DictionaryElementsAccessor::DeleteCommon(), 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 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 | ) |
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 328 of file factory.cc.
References CALL_HEAP_FUNCTION.
Definition at line 1144 of file factory.cc.
References CALL_HEAP_FUNCTION.
Referenced by JSObject::SetDictionaryElement().
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.
Definition at line 1031 of file factory.cc.
References CALL_HEAP_FUNCTION_VOID, and ElementsAccessor::SetCapacityAndLength().
Definition at line 1091 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 1424 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 1438 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 905 of file factory.cc.
References CALL_HEAP_FUNCTION, and Factory::LookupSymbol().
Definition at line 1485 of file factory.cc.
References Isolate::heap().
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().
Definition at line 1227 of file factory.cc.
References CALL_HEAP_FUNCTION, and v8::internal::Object.
Definition at line 1150 of file factory.cc.
References CALL_HEAP_FUNCTION.
Referenced by JSProxy::DeleteElementWithHandler(), and JSProxy::GetElementAttributeWithHandler().