v8
3.25.30(node0.11.13)
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 921 of file factory.cc.
References CALL_HEAP_FUNCTION.
Referenced by Factory::NewFunctionFromSharedFunctionInfo().
void BecomeJSFunction | ( | Handle< JSReceiver > | object | ) |
Definition at line 1561 of file factory.cc.
References CALL_HEAP_FUNCTION_VOID, v8::internal::JS_FUNCTION_TYPE, and JSFunction::kSize.
Referenced by JSProxy::Fix().
void BecomeJSObject | ( | Handle< JSReceiver > | object | ) |
Definition at line 1553 of file factory.cc.
References CALL_HEAP_FUNCTION_VOID, v8::internal::JS_OBJECT_TYPE, and JSObject::kHeaderSize.
Referenced by JSProxy::Fix().
void ConfigureInstance | ( | Handle< FunctionTemplateInfo > | desc, |
Handle< JSObject > | instance, | ||
bool * | pending_exception | ||
) |
Definition at line 1996 of file factory.cc.
References Execution::ConfigureInstance().
Handle< FixedArray > CopyAndTenureFixedCOWArray | ( | Handle< FixedArray > | array | ) |
Definition at line 891 of file factory.cc.
References ASSERT, and CALL_HEAP_FUNCTION.
Definition at line 1305 of file factory.cc.
References CALL_HEAP_FUNCTION.
Referenced by Factory::CopyCode().
Definition at line 1312 of file factory.cc.
References CALL_HEAP_FUNCTION, and Factory::CopyCode().
Handle< ConstantPoolArray > CopyConstantPoolArray | ( | Handle< ConstantPoolArray > | array | ) |
Definition at line 915 of file factory.cc.
References CALL_HEAP_FUNCTION.
Handle< FixedArray > CopyFixedArray | ( | Handle< FixedArray > | array | ) |
Definition at line 886 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 909 of file factory.cc.
References CALL_HEAP_FUNCTION.
Referenced by Runtime::CreateArrayLiteralBoilerplate().
Definition at line 855 of file factory.cc.
References Factory::CopyWithPreallocatedFieldDescriptors(), StaticVisitorBase::GetVisitorId(), JSObject::kMaxInstanceSize, v8::internal::kPointerSize, and v8::internal::kPointerSizeLog2.
Referenced by Factory::ObjectLiteralMapFromCache(), TEST(), and Object::TurnOnAccessCheck().
Definition at line 881 of file factory.cc.
References CALL_HEAP_FUNCTION.
Handle< FixedArray > CopySizeFixedArray | ( | Handle< FixedArray > | array, |
int | new_length, | ||
PretenureFlag | pretenure = NOT_TENURED |
||
) |
Definition at line 900 of file factory.cc.
References CALL_HEAP_FUNCTION.
Referenced by DependentCode::Insert(), and Map::PutPrototypeTransition().
Definition at line 849 of file factory.cc.
References CALL_HEAP_FUNCTION.
Referenced by Factory::CopyMap().
Handle< JSFunction > CreateApiFunction | ( | Handle< FunctionTemplateInfo > | data, |
ApiInstanceType | type = JavaScriptObject |
||
) |
Definition at line 1748 of file factory.cc.
References Map::AppendCallbackDescriptors(), AccessorInfo::AppendUnique(), ASSERT, Isolate::builtins(), Handle< T >::cast(), Smi::cast(), AccessorInfo::cast(), FunctionTemplateInfo::cast(), ObjectTemplateInfo::cast(), v8::internal::code(), Map::EnsureDescriptorSlack(), v8::internal::info, Factory::InnerGlobalObject, v8::internal::internal_field_count, Value::IsString(), Value::IsUndefined(), 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::NewFixedArray(), Factory::NewFunction(), obj, Factory::OuterGlobalObject, JSObject::SetAccessor(), and UNREACHABLE.
Handle< SeededNumberDictionary > DictionaryAtNumberPut | ( | Handle< SeededNumberDictionary > | dictionary, |
uint32_t | key, | ||
Handle< Object > | value | ||
) |
Definition at line 1631 of file factory.cc.
References CALL_HEAP_FUNCTION.
Referenced by ArrayConcatVisitor::visit().
Handle< UnseededNumberDictionary > DictionaryAtNumberPut | ( | Handle< UnseededNumberDictionary > | dictionary, |
uint32_t | key, | ||
Handle< Object > | value | ||
) |
Definition at line 1641 of file factory.cc.
References CALL_HEAP_FUNCTION.
Definition at line 1116 of file factory.cc.
References ARRAY_SIZE, Handle< T >::cast(), v8::internal::CStrVector(), SmartPointerBase< Deallocator, T >::get(), Object::GetElementNoExceptionThrown(), v8::internal::Min(), Factory::NewStringFromUtf8(), OS::StrNCpy(), and v8::internal::TENURED.
Referenced by Factory::NewError().
Definition at line 2013 of file factory.cc.
References Isolate::heap(), and Handle< T >::null().
Definition at line 540 of file factory.h.
References Isolate::heap().
Handle<JSFunction> InstallMembers | ( | Handle< JSFunction > | function | ) |
Definition at line 232 of file factory.cc.
References Factory::InternalizeStringWithKey().
Referenced by Scanner::AllocateInternalizedString(), Scope::AllocateModulesRecursively(), Isolate::CaptureCurrentStackTrace(), Isolate::DoThrow(), Function::GetDisplayName(), MessageHandler::GetMessage(), JSProxy::GetPropertyAttributeWithHandler(), v8::internal::GetScriptNameOrSourceURL(), JSProxy::SetPropertyViaPrototypesWithHandler(), and TEST().
Handle< String > InternalizeOneByteString | ( | Handle< SeqOneByteString > | string, |
int | from, | ||
int | length | ||
) |
Definition at line 238 of file factory.cc.
References Factory::InternalizeStringWithKey().
Definition at line 225 of file factory.cc.
References CALL_HEAP_FUNCTION.
Referenced by Object::DeleteHiddenValue(), Object::GetHiddenValue(), Object::SetHiddenValue(), JSObject::SetPropertyForResult(), and THREADED_TEST().
template Handle< String > InternalizeStringWithKey< SubStringKey< uint16_t > > | ( | StringTableKey * | key | ) |
Definition at line 252 of file factory.cc.
References CALL_HEAP_FUNCTION.
Referenced by Factory::InternalizeOneByteString(), Factory::InternalizeTwoByteString(), and Factory::InternalizeUtf8String().
Definition at line 245 of file factory.cc.
References Factory::InternalizeStringWithKey().
Referenced by Scanner::AllocateInternalizedString().
Definition at line 218 of file factory.cc.
References Factory::InternalizeStringWithKey().
Referenced by JSProxy::CallTrap(), JSObject::EnqueueChangeRecord(), CpuProfileNode::GetFunctionName(), HeapGraphEdge::GetName(), HeapGraphNode::GetName(), v8::internal::GetProperty(), CpuProfileNode::GetScriptResourceName(), CpuProfile::GetTitle(), HeapSnapshot::GetTitle(), Factory::InternalizeUtf8String(), MessageHandler::MakeMessageObject(), Factory::NewError(), and TEST().
Definition at line 101 of file factory.h.
References v8::internal::CStrVector(), and Factory::InternalizeUtf8String().
Handle< AccessorPair > NewAccessorPair | ( | ) |
Definition at line 203 of file factory.cc.
References CALL_HEAP_FUNCTION.
Handle< AliasedArgumentsEntry > NewAliasedArgumentsEntry | ( | int | aliased_context_slot | ) |
Definition at line 666 of file factory.cc.
References v8::internal::ALIASED_ARGUMENTS_ENTRY_TYPE, Handle< T >::cast(), and Factory::NewStruct().
Handle< AllocationSite > NewAllocationSite | ( | ) |
Definition at line 801 of file factory.cc.
References CALL_HEAP_FUNCTION.
Referenced by AllocationSiteCreationContext::EnterNewScope(), and BinaryOpIC::Transition().
Definition at line 1740 of file factory.cc.
References CALL_HEAP_FUNCTION.
Handle< Context > NewBlockContext | ( | Handle< JSFunction > | function, |
Handle< Context > | previous, | ||
Handle< ScopeInfo > | scope_info | ||
) |
Definition at line 646 of file factory.cc.
References CALL_HEAP_FUNCTION.
Handle< Box > NewBox | ( | Handle< Object > | value, |
PretenureFlag | pretenure = NOT_TENURED |
||
) |
Definition at line 45 of file factory.cc.
References CALL_HEAP_FUNCTION.
Referenced by HeapTypeConfig::from_constant().
Handle< ByteArray > NewByteArray | ( | int | length, |
PretenureFlag | pretenure = NOT_TENURED |
||
) |
Definition at line 738 of file factory.cc.
References ASSERT, and CALL_HEAP_FUNCTION.
Referenced by DeclaredAccessorDescriptor::Create(), and BoyerMooreLookahead::EmitSkipInstructions().
Handle< Context > NewCatchContext | ( | Handle< JSFunction > | function, |
Handle< Context > | previous, | ||
Handle< String > | name, | ||
Handle< Object > | thrown_object | ||
) |
Definition at line 622 of file factory.cc.
References CALL_HEAP_FUNCTION.
Definition at line 776 of file factory.cc.
References CALL_HEAP_FUNCTION.
Handle< Code > NewCode | ( | const CodeDesc & | desc, |
Code::Flags | flags, | ||
Handle< Object > | self_reference, | ||
bool | immovable = false , |
||
bool | crankshafted = false , |
||
int | prologue_offset = Code::kPrologueOffsetNotSet |
||
) |
Definition at line 1291 of file factory.cc.
References CALL_HEAP_FUNCTION, and CreateCode().
Referenced by check(), PlatformCodeStub::GenerateCode(), HydrogenCodeStub::GenerateLightweightMissCode(), CodeGenerator::MakeCodeEpilogue(), and TEST().
Definition at line 370 of file factory.cc.
References ASSERT, Handle< T >::cast(), Name::kEmptyHashField, String::kMaxLength, ConsString::kMinLength, SlicedString::kMinLength, v8::internal::mode(), Factory::NewRawConsString(), Factory::NewRawOneByteString(), Factory::NewRawTwoByteString(), Handle< T >::null(), String::ONE_BYTE_ENCODING, v8::internal::STATIC_ASSERT(), and String::TWO_BYTE_ENCODING.
Referenced by String::Concat(), CpuProfileNode::GetFunctionName(), v8::internal::StringReplaceOneCharWithString(), and TEST().
Handle< ConstantPoolArray > NewConstantPoolArray | ( | int | number_of_int64_entries, |
int | number_of_code_ptr_entries, | ||
int | number_of_heap_ptr_entries, | ||
int | number_of_int32_entries | ||
) |
Definition at line 90 of file factory.cc.
References ASSERT, and CALL_HEAP_FUNCTION.
Referenced by TEST().
Handle< DeclaredAccessorDescriptor > NewDeclaredAccessorDescriptor | ( | ) |
Definition at line 675 of file factory.cc.
References Handle< T >::cast(), v8::internal::DECLARED_ACCESSOR_DESCRIPTOR_TYPE, and Factory::NewStruct().
Referenced by DeclaredAccessorDescriptor::Create().
Handle< DeclaredAccessorInfo > NewDeclaredAccessorInfo | ( | ) |
Definition at line 681 of file factory.cc.
References Handle< T >::cast(), v8::internal::DECLARED_ACCESSOR_INFO_TYPE, v8::internal::info, and Factory::NewStruct().
Handle< DeoptimizationInputData > NewDeoptimizationInputData | ( | int | deopt_entry_count, |
PretenureFlag | pretenure | ||
) |
Definition at line 179 of file factory.cc.
References DeoptimizationInputData::Allocate(), ASSERT, and CALL_HEAP_FUNCTION.
Handle< DeoptimizationOutputData > NewDeoptimizationOutputData | ( | int | deopt_entry_count, |
PretenureFlag | pretenure | ||
) |
Definition at line 191 of file factory.cc.
References DeoptimizationOutputData::Allocate(), ASSERT, and CALL_HEAP_FUNCTION.
Handle< DescriptorArray > NewDescriptorArray | ( | int | number_of_descriptors, |
int | slack = 0 |
||
) |
Definition at line 169 of file factory.cc.
References DescriptorArray::Allocate(), ASSERT, and CALL_HEAP_FUNCTION.
Referenced by Map::EnsureDescriptorSlack(), and TEST().
Definition at line 1153 of file factory.cc.
References ARRAY_SIZE, Handle< T >::cast(), Factory::EmergencyNewError(), Factory::InternalizeUtf8String(), and Execution::TryCall().
Referenced by Exception::Error(), Factory::NewError(), Factory::NewEvalError(), Factory::NewRangeError(), Factory::NewReferenceError(), Factory::NewSyntaxError(), Factory::NewTypeError(), and JSObject::SetPrototype().
Handle< Object > NewError | ( | const char * | maker, |
const char * | message, | ||
Vector< Handle< Object > > | args | ||
) |
Definition at line 1089 of file factory.cc.
References Factory::NewError(), Factory::NewFixedArray(), and Factory::NewJSArrayWithElements().
Definition at line 1110 of file factory.cc.
References Factory::NewError().
Definition at line 1181 of file factory.cc.
References Factory::NewError().
Definition at line 1186 of file factory.cc.
References ARRAY_SIZE, JSFunction::cast(), Factory::InternalizeUtf8String(), and Execution::TryCall().
Definition at line 1104 of file factory.cc.
References Factory::NewError().
Handle< ExecutableAccessorInfo > NewExecutableAccessorInfo | ( | ) |
Definition at line 690 of file factory.cc.
References Handle< T >::cast(), v8::internal::EXECUTABLE_ACCESSOR_INFO_TYPE, v8::internal::info, and Factory::NewStruct().
Referenced by Accessors::MakeModuleExport().
Definition at line 1284 of file factory.cc.
References CALL_HEAP_FUNCTION.
Referenced by External::New().
Handle< ExternalArray > NewExternalArray | ( | int | length, |
ExternalArrayType | array_type, | ||
void * | external_pointer, | ||
PretenureFlag | pretenure = NOT_TENURED |
||
) |
Definition at line 747 of file factory.cc.
References ASSERT, CALL_HEAP_FUNCTION, and Smi::kMaxValue.
Referenced by v8::NewTypedArray(), and THREADED_TEST().
Handle< String > NewExternalStringFromAscii | ( | const ExternalAsciiString::Resource * | resource | ) |
Definition at line 554 of file factory.cc.
References CALL_HEAP_FUNCTION.
Referenced by Bootstrapper::NativesSourceLookup(), TEST(), and THREADED_TEST().
Handle< String > NewExternalStringFromTwoByte | ( | const ExternalTwoByteString::Resource * | resource | ) |
Definition at line 563 of file factory.cc.
References CALL_HEAP_FUNCTION.
Referenced by TEST(), and TestCharacterStream().
Handle< FixedArray > NewFixedArray | ( | int | size, |
PretenureFlag | pretenure = NOT_TENURED |
||
) |
Definition at line 53 of file factory.cc.
References ASSERT, and CALL_HEAP_FUNCTION.
Referenced by BASE_EMBEDDED< Visitor >::Add(), NeanderArray::add(), v8::internal::CalculateLineEnds(), Factory::CreateApiFunction(), Shell::CreateEvaluationContext(), v8::internal::GetEnumPropertyKeys(), v8::internal::GetKeysInFixedArrayFor(), CompileTimeValue::GetValue(), v8::internal::InitScriptLineEnds(), MessageHandler::MakeMessageObject(), JSObject::MigrateToMap(), NeanderObject::NeanderObject(), Signature::New(), TypeSwitch::New(), Factory::NewError(), Factory::NewFunctionFromSharedFunctionInfo(), JSObject::PrepareElementsForSort(), ParserTraits::ReportMessageAt(), JSArray::SetElementsLength(), ElementsAccessorBase< ElementsAccessorSubclass, ElementsTraitsParam >::SetLengthImpl(), Factory::SetRegExpAtomData(), Factory::SetRegExpIrregexpData(), JSObjectWalkVisitor< ContextObject >::StructureWalk(), TEST(), HeapTypeConfig::union_create(), and HOptimizedGraphBuilder::VisitDeclarations().
Handle< FixedArray > NewFixedArrayWithHoles | ( | int | size, |
PretenureFlag | pretenure = NOT_TENURED |
||
) |
Definition at line 62 of file factory.cc.
References ASSERT, and CALL_HEAP_FUNCTION.
Referenced by v8::internal::ArrayConstructInitializeElements(), and Isolate::CaptureSimpleStackTrace().
Handle< FixedDoubleArray > NewFixedDoubleArray | ( | int | size, |
PretenureFlag | pretenure = NOT_TENURED |
||
) |
Definition at line 80 of file factory.cc.
References ASSERT, and CALL_HEAP_FUNCTION.
Referenced by v8::internal::ArrayConstructInitializeElements().
Handle< FixedTypedArrayBase > NewFixedTypedArray | ( | int | length, |
ExternalArrayType | array_type, | ||
PretenureFlag | pretenure = NOT_TENURED |
||
) |
Definition at line 762 of file factory.cc.
References ASSERT, CALL_HEAP_FUNCTION, and Smi::kMaxValue.
Definition at line 453 of file factory.cc.
References Factory::NewRawOneByteString(), and Factory::NewRawTwoByteString().
Handle< Foreign > NewForeign | ( | Address | addr, |
PretenureFlag | pretenure = NOT_TENURED |
||
) |
Definition at line 726 of file factory.cc.
References CALL_HEAP_FUNCTION.
Referenced by V8::AddMessageListener(), v8::FromCData(), Factory::NewForeign(), Factory::NewScript(), CompilationInfo::object_wrapper(), and TEST().
Handle< Foreign > NewForeign | ( | const AccessorDescriptor * | foreign | ) |
Definition at line 733 of file factory.cc.
References Factory::NewForeign(), and v8::internal::TENURED.
Definition at line 1663 of file factory.cc.
Referenced by Factory::CreateApiFunction(), Factory::NewFunction(), Factory::NewFunctionWithPrototype(), and TEST().
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 1206 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 613 of file factory.cc.
References CALL_HEAP_FUNCTION.
Handle< JSFunction > NewFunctionFromSharedFunctionInfo | ( | Handle< SharedFunctionInfo > | function_info, |
Handle< Context > | context, | ||
PretenureFlag | pretenure = TENURED |
||
) |
Definition at line 944 of file factory.cc.
References ASSERT, Factory::BaseNewFunctionFromSharedFunctionInfo(), v8::internal::code(), Isolate::DebuggerHasBreakPoints(), Heap::global_ic_age(), Isolate::heap(), JSFunction::kLiteralNativeContextIndex, v8::internal::literals(), Code::marked_for_deoptimization(), Factory::NewFixedArray(), BailoutId::None(), and v8::internal::NULL.
Referenced by Compiler::GetFunctionFromEval().
Handle< JSObject > NewFunctionPrototype | ( | Handle< JSFunction > | function | ) |
Definition at line 819 of file factory.cc.
References ASSERT, Map::Copy(), DONT_ENUM, v8::internal::handle(), Factory::NewJSObjectFromMap(), and JSObject::SetLocalPropertyIgnoreAttributes().
Referenced by JSFunction::EnsureHasInitialMap(), and Factory::NewFunction().
Handle< JSFunction > NewFunctionWithoutPrototype | ( | Handle< String > | name, |
StrictMode | strict_mode | ||
) |
Definition at line 1687 of file factory.cc.
Referenced by Factory::NewFunctionWithoutPrototype().
Definition at line 1265 of file factory.cc.
References ASSERT, Factory::NewFunctionWithoutPrototype(), and v8::internal::SLOPPY.
Handle< JSFunction > NewFunctionWithPrototype | ( | Handle< String > | name, |
InstanceType | type, | ||
int | instance_size, | ||
Handle< JSObject > | prototype, | ||
Handle< Code > | code, | ||
bool | force_initial_map | ||
) |
Definition at line 1236 of file factory.cc.
References v8::internal::GetInitialFastElementsKind(), v8::internal::JS_OBJECT_TYPE, JSObject::kHeaderSize, Factory::NewFunction(), Factory::NewMap(), and JSFunction::SetPrototype().
Handle< Context > NewGlobalContext | ( | Handle< JSFunction > | function, |
Handle< ScopeInfo > | scope_info | ||
) |
Definition at line 596 of file factory.cc.
References CALL_HEAP_FUNCTION.
Handle< GlobalObject > NewGlobalObject | ( | Handle< JSFunction > | constructor | ) |
Definition at line 1366 of file factory.cc.
References ASSERT, v8::internal::CALLBACKS, Map::CopyDropDescriptors(), v8::internal::JS_GLOBAL_OBJECT_TYPE, v8::internal::map, v8::internal::name, Factory::NewNameDictionary(), and Factory::NewPropertyCell().
Handle< HeapNumber > NewHeapNumber | ( | double | value, |
PretenureFlag | pretenure = NOT_TENURED |
||
) |
Definition at line 1022 of file factory.cc.
References CALL_HEAP_FUNCTION.
Referenced by JSObject::MigrateToMap(), TEST(), and Types< Type, TypeHandle, Region >::Types().
Handle< JSArray > NewJSArray | ( | ElementsKind | elements_kind, |
int | length, | ||
int | capacity, | ||
ArrayStorageAllocationMode | mode = INITIALIZE_ARRAY_ELEMENTS_WITH_HOLE , |
||
PretenureFlag | pretenure = NOT_TENURED |
||
) |
Definition at line 1437 of file factory.cc.
References CALL_HEAP_FUNCTION, and v8::internal::GetHoleyElementsKind().
Referenced by Isolate::CaptureCurrentStackTrace(), FormatMessage(), Array::New(), Factory::NewJSArray(), Scope::ResolveVariable(), JSObject::SetElement(), JSArray::SetElementsLength(), TEST(), ArrayConcatVisitor::ToArray(), and Types< Type, TypeHandle, Region >::Types().
|
inline |
Definition at line 361 of file factory.h.
References v8::internal::INITIALIZE_ARRAY_ELEMENTS_WITH_HOLE, and Factory::NewJSArray().
Handle< JSArrayBuffer > NewJSArrayBuffer | ( | ) |
Definition at line 1496 of file factory.cc.
References CALL_HEAP_FUNCTION.
Referenced by ArrayBuffer::New().
void NewJSArrayStorage | ( | Handle< JSArray > | array, |
int | length, | ||
int | capacity, | ||
ArrayStorageAllocationMode | mode = DONT_INITIALIZE_ARRAY_ELEMENTS |
||
) |
Definition at line 1471 of file factory.cc.
References CALL_HEAP_FUNCTION_VOID.
Handle< JSArray > NewJSArrayWithElements | ( | Handle< FixedArrayBase > | elements, |
ElementsKind | elements_kind, | ||
int | length, | ||
PretenureFlag | pretenure = NOT_TENURED |
||
) |
Definition at line 1456 of file factory.cc.
References ASSERT, and CALL_HEAP_FUNCTION.
Referenced by Isolate::CaptureSimpleStackTrace(), Shell::CreateEvaluationContext(), v8::internal::GetKeysFor(), Object::GetOwnPropertyNames(), Object::GetPropertyNames(), MessageHandler::MakeMessageObject(), Factory::NewError(), Factory::NewJSArrayWithElements(), ParserTraits::ReportMessageAt(), and TEST().
|
inline |
Definition at line 375 of file factory.h.
References Factory::NewJSArrayWithElements().
Handle< JSDataView > NewJSDataView | ( | ) |
Definition at line 1506 of file factory.cc.
References CALL_HEAP_FUNCTION.
Referenced by DataView::New().
Handle< JSGeneratorObject > NewJSGeneratorObject | ( | Handle< JSFunction > | function | ) |
Definition at line 1483 of file factory.cc.
References ASSERT, CALL_HEAP_FUNCTION, JSFunction::EnsureHasInitialMap(), v8::internal::JS_GENERATOR_OBJECT_TYPE, and v8::internal::map.
Handle< JSMessageObject > NewJSMessageObject | ( | Handle< String > | type, |
Handle< JSArray > | arguments, | ||
int | start_position, | ||
int | end_position, | ||
Handle< Object > | script, | ||
Handle< Object > | stack_frames | ||
) |
Definition at line 1594 of file factory.cc.
References CALL_HEAP_FUNCTION.
Referenced by MessageHandler::MakeMessageObject().
Definition at line 1339 of file factory.cc.
References CALL_HEAP_FUNCTION.
Referenced by v8::internal::RUNTIME_FUNCTION().
Handle< JSObject > NewJSObject | ( | Handle< JSFunction > | constructor, |
PretenureFlag | pretenure = NOT_TENURED |
||
) |
Definition at line 1319 of file factory.cc.
References CALL_HEAP_FUNCTION, and JSFunction::EnsureHasInitialMap().
Referenced by Isolate::CaptureCurrentStackTrace(), Runtime::CreateArrayLiteralBoilerplate(), v8::internal::GetScriptWrapper(), Object::New(), and TEST().
Handle< JSObject > NewJSObjectFromMap | ( | Handle< Map > | map, |
PretenureFlag | pretenure = NOT_TENURED , |
||
bool | allocate_properties = true , |
||
Handle< AllocationSite > | allocation_site = Handle<AllocationSite>::null() |
||
) |
Definition at line 1421 of file factory.cc.
References CALL_HEAP_FUNCTION, Handle< T >::is_null(), and v8::internal::NULL.
Referenced by Factory::NewFunctionPrototype(), TEST(), and Types< Type, TypeHandle, Region >::Types().
Handle<JSObject> NewJSObjectFromMapForDeoptimizer | ( | Handle< Map > | map, |
PretenureFlag | pretenure = NOT_TENURED |
||
) |
Handle< JSObject > NewJSObjectWithMemento | ( | Handle< JSFunction > | constructor, |
Handle< AllocationSite > | site | ||
) |
Definition at line 1328 of file factory.cc.
References CALL_HEAP_FUNCTION, JSFunction::EnsureHasInitialMap(), and v8::internal::NOT_TENURED.
Definition at line 1544 of file factory.cc.
References CALL_HEAP_FUNCTION.
Handle< JSTypedArray > NewJSTypedArray | ( | ExternalArrayType | type | ) |
Definition at line 1534 of file factory.cc.
References CALL_HEAP_FUNCTION.
Referenced by v8::NewTypedArray().
Handle< Map > NewMap | ( | InstanceType | type, |
int | instance_size, | ||
ElementsKind | elements_kind = TERMINAL_FAST_ELEMENTS_KIND |
||
) |
Definition at line 809 of file factory.cc.
References CALL_HEAP_FUNCTION.
Referenced by JSFunction::EnsureHasInitialMap(), Factory::NewFunction(), Factory::NewFunctionWithPrototype(), and TEST().
Definition at line 605 of file factory.cc.
References CALL_HEAP_FUNCTION.
Referenced by v8::internal::RUNTIME_FUNCTION().
Handle< NameDictionary > NewNameDictionary | ( | int | at_least_space_for | ) |
Definition at line 107 of file factory.cc.
References Dictionary< NameDictionaryShape, Name * >::Allocate(), ASSERT, and CALL_HEAP_FUNCTION.
Referenced by Factory::NewGlobalObject().
Definition at line 588 of file factory.cc.
References CALL_HEAP_FUNCTION.
Definition at line 1030 of file factory.cc.
References CALL_HEAP_FUNCTION.
Referenced by NeanderObject::NeanderObject().
Handle< Object > NewNumber | ( | double | value, |
PretenureFlag | pretenure = NOT_TENURED |
||
) |
Definition at line 998 of file factory.cc.
References CALL_HEAP_FUNCTION.
Referenced by FixedDoubleArray::get_as_handle(), V8_FINAL< kOperandKind, kNumCachedOperands >::handle(), Deoptimizer::MaterializeHeapObjects(), Number::New(), Integer::New(), NumberObject::New(), Execution::NewDate(), Integer::NewFromUnsigned(), Factory::NewNumberFromSize(), TEST(), ArrayConcatVisitor::ToArray(), and Value::ToArrayIndex().
Handle< Object > NewNumberFromInt | ( | int32_t | value, |
PretenureFlag | pretenure = NOT_TENURED |
||
) |
Definition at line 1006 of file factory.cc.
References CALL_HEAP_FUNCTION.
Referenced by Execution::CharAt(), HeapGraphEdge::GetName(), and Array::New().
|
inline |
Definition at line 623 of file factory.h.
References Smi::FromIntptr(), Smi::IsValid(), and Factory::NewNumber().
Referenced by v8::NewTypedArray(), and Runtime::SetupArrayBuffer().
Handle< Object > NewNumberFromUint | ( | uint32_t | value, |
PretenureFlag | pretenure = NOT_TENURED |
||
) |
Definition at line 1014 of file factory.cc.
References CALL_HEAP_FUNCTION.
Referenced by DictionaryElementsAccessor::DeleteCommon(), JSObject::PrepareElementsForSort(), JSObject::SetElement(), JSArray::SetElementsLength(), and TEST().
Handle< ObjectHashSet > NewObjectHashSet | ( | int | at_least_space_for | ) |
Definition at line 136 of file factory.cc.
References HashTable< ObjectHashTableShape< 1 >, Object * >::Allocate(), ASSERT, and CALL_HEAP_FUNCTION.
Handle< ObjectHashTable > NewObjectHashTable | ( | int | at_least_space_for, |
MinimumCapacity | capacity_option = USE_DEFAULT_MINIMUM_CAPACITY |
||
) |
Definition at line 145 of file factory.cc.
References HashTable< ObjectHashTableShape< 2 >, Object * >::Allocate(), ASSERT, and CALL_HEAP_FUNCTION.
Referenced by TEST().
Definition at line 580 of file factory.cc.
References CALL_HEAP_FUNCTION.
Referenced by Private::ForApi(), and Private::New().
Definition at line 475 of file factory.cc.
References ASSERT, Handle< T >::cast(), v8::internal::FlattenGetString(), Handle< T >::is_null(), Name::kEmptyHashField, SlicedString::kMinLength, v8::internal::LookupSingleCharacterStringFromCode(), Factory::NewRawOneByteString(), Factory::NewRawSlicedString(), Factory::NewRawTwoByteString(), String::ONE_BYTE_ENCODING, String::TWO_BYTE_ENCODING, and String::WriteToFlat().
Referenced by Factory::NewSubString(), and TEST().
Handle< PropertyCell > NewPropertyCell | ( | Handle< Object > | value | ) |
Definition at line 793 of file factory.cc.
References Factory::NewPropertyCellWithHole(), and PropertyCell::SetValueInferType().
Referenced by CodeStubGraphBuilder< Stub >::BuildCodeInitializedStub(), JSGlobalObject::EnsurePropertyCell(), and Factory::NewGlobalObject().
Handle< PropertyCell > NewPropertyCellWithHole | ( | ) |
Definition at line 785 of file factory.cc.
References CALL_HEAP_FUNCTION.
Referenced by Factory::NewPropertyCell().
Definition at line 1050 of file factory.cc.
References Factory::NewError().
Referenced by Exception::RangeError().
Definition at line 1056 of file factory.cc.
References Factory::NewError().
Handle< ConsString > NewRawConsString | ( | String::Encoding | encoding | ) |
Definition at line 361 of file factory.cc.
References CALL_HEAP_FUNCTION, v8::internal::map, v8::internal::NEW_SPACE, and String::ONE_BYTE_ENCODING.
Referenced by Factory::NewConsString().
Handle< SeqOneByteString > NewRawOneByteString | ( | int | length, |
PretenureFlag | pretenure = NOT_TENURED |
||
) |
Definition at line 291 of file factory.cc.
References CALL_HEAP_FUNCTION.
Referenced by URIEscape::Escape(), Factory::NewConsString(), Factory::NewFlatConcatString(), Factory::NewProperSubString(), and v8::internal::NewRawString().
Handle< SlicedString > NewRawSlicedString | ( | String::Encoding | encoding | ) |
Definition at line 466 of file factory.cc.
References CALL_HEAP_FUNCTION, v8::internal::map, v8::internal::NEW_SPACE, and String::ONE_BYTE_ENCODING.
Referenced by Factory::NewProperSubString().
Handle< SeqTwoByteString > NewRawTwoByteString | ( | int | length, |
PretenureFlag | pretenure = NOT_TENURED |
||
) |
Definition at line 300 of file factory.cc.
References CALL_HEAP_FUNCTION.
Referenced by Factory::NewConsString(), Factory::NewFlatConcatString(), Factory::NewProperSubString(), and v8::internal::NewRawString().
Definition at line 1072 of file factory.cc.
References Factory::NewError().
Referenced by IC::ReferenceError(), Exception::ReferenceError(), and ParserTraits::ReportMessageAt().
Definition at line 1078 of file factory.cc.
References Factory::NewError().
Definition at line 1084 of file factory.cc.
References Factory::NewError().
Definition at line 1276 of file factory.cc.
References CALL_HEAP_FUNCTION.
Definition at line 699 of file factory.cc.
References Handle< T >::cast(), Smi::FromInt(), Smi::IsValid(), Factory::NewForeign(), Factory::NewStruct(), v8::internal::SCRIPT_TYPE, v8::internal::TENURED, and Script::TYPE_NORMAL.
Referenced by Compiler::CompileScript(), Compiler::GetFunctionFromEval(), TEST(), and TestParserSyncWithFlags().
Handle< SeededNumberDictionary > NewSeededNumberDictionary | ( | int | at_least_space_for | ) |
Definition at line 116 of file factory.cc.
References Dictionary< SeededNumberDictionaryShape, uint32_t >::Allocate(), ASSERT, and CALL_HEAP_FUNCTION.
Referenced by JSObject::Freeze(), and JSObject::NormalizeElements().
Handle< SharedFunctionInfo > NewSharedFunctionInfo | ( | Handle< String > | name, |
int | number_of_literals, | ||
bool | is_generator, | ||
Handle< Code > | code, | ||
Handle< ScopeInfo > | scope_info | ||
) |
Definition at line 1569 of file factory.cc.
References JSFunction::kLiteralsPrefixSize.
Referenced by Compiler::BuildFunctionInfo().
Handle< SharedFunctionInfo > NewSharedFunctionInfo | ( | Handle< String > | name | ) |
Definition at line 1612 of file factory.cc.
References CALL_HEAP_FUNCTION.
|
inline |
Definition at line 141 of file factory.h.
References Factory::NewStringFromOneByte().
Referenced by BASE_EMBEDDED< Visitor >::Add(), TEST(), TestCharacterStream(), TestParserSync(), BreakIterator::UnpackBreakIterator(), Collator::UnpackCollator(), DateFormat::UnpackDateFormat(), and NumberFormat::UnpackNumberFormat().
Handle< String > NewStringFromOneByte | ( | Vector< const uint8_t > | str, |
PretenureFlag | pretenure = NOT_TENURED |
||
) |
Definition at line 265 of file factory.cc.
References CALL_HEAP_FUNCTION.
Referenced by Scanner::AllocateNextLiteralString(), check(), Context::ErrorMessageForCodeGenerationFromStrings(), and Factory::NewStringFromAscii().
Handle< String > NewStringFromTwoByte | ( | Vector< const uc16 > | str, |
PretenureFlag | pretenure = NOT_TENURED |
||
) |
Definition at line 282 of file factory.cc.
References CALL_HEAP_FUNCTION.
Referenced by Scanner::AllocateNextLiteralString(), RegExpImpl::Compile(), and TEST().
Handle< String > NewStringFromUtf8 | ( | Vector< const char > | str, |
PretenureFlag | pretenure = NOT_TENURED |
||
) |
Definition at line 273 of file factory.cc.
References CALL_HEAP_FUNCTION.
Referenced by Shell::CreateEvaluationContext(), Factory::EmergencyNewError(), ParserTraits::ReportMessageAt(), TEST(), and StringStream::ToString().
Handle< Struct > NewStruct | ( | InstanceType | type | ) |
Definition at line 658 of file factory.cc.
References CALL_HEAP_FUNCTION.
Referenced by Signature::New(), TypeSwitch::New(), Factory::NewAliasedArgumentsEntry(), Factory::NewDeclaredAccessorDescriptor(), Factory::NewDeclaredAccessorInfo(), Factory::NewExecutableAccessorInfo(), Factory::NewScript(), ObjectTemplate::SetAccessCheckCallbacks(), ObjectTemplate::SetCallAsFunctionHandler(), FunctionTemplate::SetCallHandler(), ObjectTemplate::SetIndexedPropertyHandler(), and ObjectTemplate::SetNamedPropertyHandler().
Definition at line 183 of file factory.h.
References Factory::NewProperSubString().
Referenced by CompiledReplacement::Compile(), SharedFunctionInfo::GetSourceCode(), v8::internal::StringReplaceOneCharWithString(), and TEST().
Definition at line 572 of file factory.cc.
References CALL_HEAP_FUNCTION.
Referenced by Symbol::For(), Symbol::ForApi(), Symbol::New(), and TEST().
Definition at line 1061 of file factory.cc.
References Factory::NewError().
Referenced by ParserTraits::ReportMessageAt(), Scope::ResolveVariable(), and Exception::SyntaxError().
Definition at line 1067 of file factory.cc.
References Factory::NewError().
Definition at line 1039 of file factory.cc.
References Factory::NewError().
Referenced by JSProxy::CallTrap(), DictionaryElementsAccessor::DeleteCommon(), JSObject::Freeze(), Runtime::GetObjectProperty(), JSProxy::GetPropertyAttributeWithHandler(), JSObject::GetPropertyWithCallback(), JSObject::PreventExtensions(), JSObject::SetElement(), Runtime::SetObjectProperty(), JSObject::SetPropertyForResult(), JSProxy::SetPropertyViaPrototypesWithHandler(), JSObject::SetPropertyWithCallback(), JSObject::SetPrototype(), Execution::TryGetConstructorDelegate(), Execution::TryGetFunctionDelegate(), IC::TypeError(), and Exception::TypeError().
Definition at line 1045 of file factory.cc.
References Factory::NewError().
Handle< TypeFeedbackInfo > NewTypeFeedbackInfo | ( | ) |
Definition at line 210 of file factory.cc.
References CALL_HEAP_FUNCTION.
Handle< FixedArray > NewUninitializedFixedArray | ( | int | size | ) |
Definition at line 72 of file factory.cc.
References CALL_HEAP_FUNCTION.
Handle< UnseededNumberDictionary > NewUnseededNumberDictionary | ( | int | at_least_space_for | ) |
Definition at line 126 of file factory.cc.
References Dictionary< UnseededNumberDictionaryShape, uint32_t >::Allocate(), ASSERT, and CALL_HEAP_FUNCTION.
Handle< WeakHashTable > NewWeakHashTable | ( | int | at_least_space_for | ) |
Definition at line 157 of file factory.cc.
References HashTable< WeakHashTableShape< 2 >, Object * >::Allocate(), ASSERT, CALL_HEAP_FUNCTION, v8::internal::TENURED, and v8::internal::USE_DEFAULT_MINIMUM_CAPACITY.
Handle< Context > NewWithContext | ( | Handle< JSFunction > | function, |
Handle< Context > | previous, | ||
Handle< JSObject > | extension | ||
) |
Definition at line 636 of file factory.cc.
References CALL_HEAP_FUNCTION.
Definition at line 1619 of file factory.cc.
References CALL_HEAP_FUNCTION.
Definition at line 1939 of file factory.cc.
References MapCache::cast(), Factory::CopyMap(), and v8::internal::map.
void SetRegExpAtomData | ( | Handle< JSRegExp > | regexp, |
JSRegExp::Type | type, | ||
Handle< String > | source, | ||
JSRegExp::Flags | flags, | ||
Handle< Object > | match_pattern | ||
) |
Definition at line 1960 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 1974 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 2022 of file factory.cc.
Referenced by ParserTraits::BuildUnaryExpression(), JSProxy::GetPropertyAttributeWithHandler(), and Value::ToBoolean().
Definition at line 1696 of file factory.cc.
References CALL_HEAP_FUNCTION, v8::internal::Object, and Value::ToObject().
Referenced by NumberObject::New(), BooleanObject::New(), StringObject::New(), and SymbolObject::New().
Definition at line 1701 of file factory.cc.
References CALL_HEAP_FUNCTION, v8::internal::Object, and Value::ToObject().
Definition at line 1625 of file factory.cc.
References CALL_HEAP_FUNCTION.
Referenced by JSProxy::GetElementAttributeWithHandler(), JSObject::SetElement(), and JSArray::SetElementsLength().