Lines Matching refs:Factory
5 #include "src/heap/factory.h"
114 HeapObject* Factory::AllocateRawWithImmortalMap(int size,
124 HeapObject* Factory::AllocateRawWithAllocationSite(
144 void Factory::InitializeAllocationMemento(AllocationMemento* memento,
154 HeapObject* Factory::AllocateRawArray(int size, PretenureFlag pretenure) {
165 HeapObject* Factory::AllocateRawFixedArray(int length,
173 HeapObject* Factory::AllocateRawWeakArrayList(int capacity,
181 HeapObject* Factory::New(Handle<Map> map, PretenureFlag pretenure) {
194 Handle<HeapObject> Factory::NewFillerObject(int size, bool double_align,
207 Handle<PrototypeInfo> Factory::NewPrototypeInfo() {
217 Handle<EnumCache> Factory::NewEnumCache(Handle<FixedArray> keys,
222 Handle<Tuple2> Factory::NewTuple2(Handle<Object> value1, Handle<Object> value2,
231 Handle<Tuple3> Factory::NewTuple3(Handle<Object> value1, Handle<Object> value2,
242 Handle<ArrayBoilerplateDescription> Factory::NewArrayBoilerplateDescription(
252 Handle<TemplateObjectDescription> Factory::NewTemplateObjectDescription(
263 Handle<Oddball> Factory::NewOddball(Handle<Map> map, const char* to_string,
272 Handle<Oddball> Factory::NewSelfReferenceMarker(PretenureFlag pretenure) {
278 Handle<PropertyArray> Factory::NewPropertyArray(int length,
290 Handle<FixedArray> Factory::NewFixedArrayWithFiller(
304 Handle<T> Factory::NewFixedArrayWithMap(Heap::RootListIndex map_root_index,
316 Handle<T> Factory::NewWeakFixedArrayWithMap(Heap::RootListIndex map_root_index,
338 template Handle<FixedArray> Factory::NewFixedArrayWithMap<FixedArray>(
342 Factory::NewWeakFixedArrayWithMap<DescriptorArray>(Heap::RootListIndex, int,
345 Handle<FixedArray> Factory::NewFixedArray(int length, PretenureFlag pretenure) {
352 Handle<WeakFixedArray> Factory::NewWeakFixedArray(int length,
367 MaybeHandle<FixedArray> Factory::TryNewFixedArray(int length,
390 Handle<FixedArray> Factory::NewFixedArrayWithHoles(int length,
398 Handle<FixedArray> Factory::NewUninitializedFixedArray(
410 Handle<FeedbackVector> Factory::NewFeedbackVector(
433 Handle<ObjectBoilerplateDescription> Factory::NewObjectBoilerplateDescription(
468 Handle<FixedArrayBase> Factory::NewFixedDoubleArray(int length,
484 Handle<FixedArrayBase> Factory::NewFixedDoubleArrayWithHoles(
494 Handle<FeedbackMetadata> Factory::NewFeedbackMetadata(int slot_count,
512 Handle<FrameArray> Factory::NewFrameArray(int number_of_frames,
521 Handle<SmallOrderedHashSet> Factory::NewSmallOrderedHashSet(
536 Handle<SmallOrderedHashMap> Factory::NewSmallOrderedHashMap(
551 Handle<OrderedHashSet> Factory::NewOrderedHashSet() {
555 Handle<OrderedHashMap> Factory::NewOrderedHashMap() {
559 Handle<AccessorPair> Factory::NewAccessorPair() {
568 Handle<String> Factory::InternalizeUtf8String(Vector<const char> string) {
573 Handle<String> Factory::InternalizeOneByteString(Vector<const uint8_t> string) {
578 Handle<String> Factory::InternalizeOneByteString(
584 Handle<String> Factory::InternalizeTwoByteString(Vector<const uc16> string) {
590 Handle<String> Factory::InternalizeStringWithKey(StringTableKey* key) {
594 MaybeHandle<String> Factory::NewStringFromOneByte(Vector<const uint8_t> string,
611 MaybeHandle<String> Factory::NewStringFromUtf8(Vector<const char> string,
649 MaybeHandle<String> Factory::NewStringFromUtf8SubString(
694 MaybeHandle<String> Factory::NewStringFromTwoByte(const uc16* string,
714 MaybeHandle<String> Factory::NewStringFromTwoByte(Vector<const uc16> string,
719 MaybeHandle<String> Factory::NewStringFromTwoByte(
770 Handle<SeqOneByteString> Factory::AllocateRawOneByteInternalizedString(
792 Handle<String> Factory::AllocateTwoByteInternalizedString(
812 Handle<String> Factory::AllocateInternalizedStringImpl(T t, int chars,
846 Handle<String> Factory::NewInternalizedStringFromUtf8(Vector<const char> str,
858 Handle<String> Factory::NewOneByteInternalizedString(Vector<const uint8_t> str,
866 Handle<String> Factory::NewOneByteInternalizedSubString(
875 Handle<String> Factory::NewTwoByteInternalizedString(Vector<const uc16> str,
880 Handle<String> Factory::NewInternalizedStringImpl(Handle<String> string,
891 MaybeHandle<Map> GetInternalizedStringMap(Factory* f, Handle<String> string) {
916 MaybeHandle<Map> Factory::InternalizedStringMapForString(
925 Handle<StringClass> Factory::InternalizeExternalString(Handle<String> string) {
938 Factory::InternalizeExternalString<ExternalOneByteString>(Handle<String>);
940 Factory::InternalizeExternalString<ExternalTwoByteString>(Handle<String>);
942 MaybeHandle<SeqOneByteString> Factory::NewRawOneByteString(
947 DCHECK_GT(length, 0); // Use Factory::empty_string() instead.
960 MaybeHandle<SeqTwoByteString> Factory::NewRawTwoByteString(
965 DCHECK_GT(length, 0); // Use Factory::empty_string() instead.
978 Handle<String> Factory::LookupSingleCharacterStringFromCode(uint32_t code) {
1027 isolate->factory()->NewRawOneByteString(2).ToHandleChecked();
1034 isolate->factory()->NewRawTwoByteString(2).ToHandleChecked();
1053 MaybeHandle<String> Factory::NewConsString(Handle<String> left,
1134 Handle<String> Factory::NewConsString(Handle<String> left, Handle<String> right,
1156 Handle<String> Factory::NewSurrogatePairString(uint16_t lead, uint16_t trail) {
1163 isolate()->factory()->NewRawTwoByteString(2).ToHandleChecked();
1170 Handle<String> Factory::NewProperSubString(Handle<String> str, int begin,
1237 MaybeHandle<String> Factory::NewExternalStringFromOneByte(
1262 MaybeHandle<String> Factory::NewExternalStringFromTwoByte(
1295 Handle<ExternalOneByteString> Factory::NewNativeSourceString(
1311 Handle<JSStringIterator> Factory::NewJSStringIterator(Handle<String> string) {
1323 Handle<Symbol> Factory::NewSymbol(PretenureFlag flag) {
1343 Handle<Symbol> Factory::NewPrivateSymbol(PretenureFlag flag) {
1350 Handle<Symbol> Factory::NewPrivateFieldSymbol() {
1356 Handle<NativeContext> Factory::NewNativeContext() {
1366 Handle<Context> Factory::NewScriptContext(Handle<NativeContext> outer,
1379 Handle<ScriptContextTable> Factory::NewScriptContextTable() {
1388 Handle<Context> Factory::NewModuleContext(Handle<Module> module,
1402 Handle<Context> Factory::NewFunctionContext(Handle<Context> outer,
1425 Handle<Context> Factory::NewCatchContext(Handle<Context> previous,
1439 Handle<Context> Factory::NewDebugEvaluateContext(Handle<Context> previous,
1460 Handle<Context> Factory::NewWithContext(Handle<Context> previous,
1472 Handle<Context> Factory::NewBlockContext(Handle<Context> previous,
1484 Handle<Context> Factory::NewBuiltinContext(Handle<NativeContext> native_context,
1495 Handle<Struct> Factory::NewStruct(InstanceType type, PretenureFlag pretenure) {
1514 Handle<AliasedArgumentsEntry> Factory::NewAliasedArgumentsEntry(
1522 Handle<AccessorInfo> Factory::NewAccessorInfo() {
1532 Handle<Script> Factory::NewScript(Handle<String> source, PretenureFlag tenure) {
1536 Handle<Script> Factory::NewScriptWithId(Handle<String> source, int script_id,
1565 Handle<Script> Factory::CloneScript(Handle<Script> script) {
1593 Handle<CallableTask> Factory::NewCallableTask(Handle<JSReceiver> callable,
1603 Handle<CallbackTask> Factory::NewCallbackTask(Handle<Foreign> callback,
1612 Handle<PromiseResolveThenableJobTask> Factory::NewPromiseResolveThenableJobTask(
1626 Handle<Foreign> Factory::NewForeign(Address addr, PretenureFlag pretenure) {
1637 Handle<ByteArray> Factory::NewByteArray(int length, PretenureFlag pretenure) {
1651 Handle<BytecodeArray> Factory::NewBytecodeArray(
1683 Handle<FixedTypedArrayBase> Factory::NewFixedTypedArrayWithExternalPointer(
1699 Handle<FixedTypedArrayBase> Factory::NewFixedTypedArray(
1725 Handle<Cell> Factory::NewCell(Handle<Object> value) {
1735 Handle<FeedbackCell> Factory::NewNoClosuresCell(Handle<HeapObject> value) {
1744 Handle<FeedbackCell> Factory::NewOneClosureCell(Handle<HeapObject> value) {
1753 Handle<FeedbackCell> Factory::NewManyClosuresCell(Handle<HeapObject> value) {
1762 Handle<PropertyCell> Factory::NewPropertyCell(Handle<Name> name,
1777 Handle<TransitionArray> Factory::NewTransitionArray(int number_of_transitions,
1796 Handle<AllocationSite> Factory::NewAllocationSite(bool with_weak_next) {
1811 Handle<Map> Factory::NewMap(InstanceType type, int instance_size,
1827 Map* Factory::InitializeMap(Map* map, InstanceType type, int instance_size,
1870 Handle<JSObject> Factory::CopyJSObject(Handle<JSObject> source) {
1874 Handle<JSObject> Factory::CopyJSObjectWithAllocationSite(
1959 Handle<T> Factory::CopyArrayWithMap(Handle<T> src, Handle<Map> map) {
1982 Handle<T> Factory::CopyArrayAndGrow(Handle<T> src, int grow_by,
2002 Handle<FixedArray> Factory::CopyFixedArrayWithMap(Handle<FixedArray> array,
2007 Handle<FixedArray> Factory::CopyFixedArrayAndGrow(Handle<FixedArray> array,
2013 Handle<WeakFixedArray> Factory::CopyWeakFixedArrayAndGrow(
2037 Handle<WeakArrayList> Factory::CopyWeakArrayListAndGrow(
2060 Handle<PropertyArray> Factory::CopyPropertyArrayAndGrow(
2065 Handle<FixedArray> Factory::CopyFixedArrayUpTo(Handle<FixedArray> array,
2084 Handle<FixedArray> Factory::CopyFixedArray(Handle<FixedArray> array) {
2089 Handle<FixedArray> Factory::CopyAndTenureFixedCOWArray(
2102 Handle<FixedDoubleArray> Factory::CopyFixedDoubleArray(
2115 Handle<FeedbackVector> Factory::CopyFeedbackVector(
2142 Handle<Object> Factory::NewNumber(double value, PretenureFlag pretenure) {
2151 Handle<Object> Factory::NewNumberFromInt(int32_t value,
2158 Handle<Object> Factory::NewNumberFromUint(uint32_t value,
2167 Handle<HeapNumber> Factory::NewHeapNumber(PretenureFlag pretenure) {
2175 Handle<MutableHeapNumber> Factory::NewMutableHeapNumber(
2184 Handle<FreshlyAllocatedBigInt> Factory::NewBigInt(int length,
2194 Handle<Object> Factory::NewError(Handle<JSFunction> constructor,
2214 // running the factory method, use the exception as the result.
2223 Handle<Object> Factory::NewError(Handle<JSFunction> constructor,
2241 Handle<Object> Factory::NewInvalidStringLengthError() {
2253 Handle<Object> Factory::New##NAME(MessageTemplate::Template template_index, \
2270 Handle<JSFunction> Factory::NewFunction(Handle<Map> map,
2293 Handle<JSFunction> Factory::NewFunctionForTest(Handle<String> name) {
2301 Handle<JSFunction> Factory::NewFunction(const NewFunctionArgs& args) {
2383 Handle<JSObject> Factory::NewFunctionPrototype(Handle<JSFunction> function) {
2417 Handle<JSFunction> Factory::NewFunctionFromSharedFunctionInfo(
2427 Handle<JSFunction> Factory::NewFunctionFromSharedFunctionInfo(
2437 Handle<JSFunction> Factory::NewFunctionFromSharedFunctionInfo(
2450 Handle<JSFunction> Factory::NewFunctionFromSharedFunctionInfo(
2482 Handle<ScopeInfo> Factory::NewScopeInfo(int length) {
2487 Handle<ModuleInfo> Factory::NewModuleInfo() {
2492 Handle<PreParsedScopeData> Factory::NewPreParsedScopeData(int length) {
2507 Factory::NewUncompiledDataWithoutPreParsedScope(Handle<String> inferred_name,
2525 Factory::NewUncompiledDataWithPreParsedScope(
2543 Handle<JSObject> Factory::NewExternal(void* value) {
2550 Handle<CodeDataContainer> Factory::NewCodeDataContainer(int flags) {
2560 MaybeHandle<Code> Factory::TryNewCode(
2610 Handle<Code> Factory::NewCode(
2658 Handle<Code> Factory::NewCodeForDeserialization(uint32_t size) {
2674 Handle<Code> Factory::NewOffHeapTrampolineFor(Handle<Code> code,
2704 Handle<Code> Factory::CopyCode(Handle<Code> code) {
2739 Handle<BytecodeArray> Factory::CopyBytecodeArray(
2761 Handle<JSObject> Factory::NewJSObject(Handle<JSFunction> constructor,
2768 Handle<JSObject> Factory::NewJSObjectWithNullProto(PretenureFlag pretenure) {
2778 Handle<JSGlobalObject> Factory::NewJSGlobalObject(
2839 void Factory::InitializeJSObjectFromMap(Handle<JSObject> obj,
2854 void Factory::InitializeJSObjectBody(Handle<JSObject> obj, Handle<Map> map,
2881 Handle<JSObject> Factory::NewJSObjectFromMap(
2904 Handle<JSObject> Factory::NewSlowJSObjectFromMap(Handle<Map> map, int capacity,
2914 Handle<JSArray> Factory::NewJSArray(ElementsKind elements_kind,
2926 Handle<JSArray> Factory::NewJSArray(ElementsKind elements_kind, int length,
2935 Handle<JSArray> Factory::NewJSArrayWithElements(Handle<FixedArrayBase> elements,
2948 void Factory::NewJSArrayStorage(Handle<JSArray> array, int length, int capacity,
2982 Handle<JSWeakMap> Factory::NewJSWeakMap() {
2995 Handle<JSModuleNamespace> Factory::NewJSModuleNamespace() {
3006 Handle<JSGeneratorObject> Factory::NewJSGeneratorObject(
3018 Handle<Module> Factory::NewModule(Handle<SharedFunctionInfo> code) {
3050 Handle<JSArrayBuffer> Factory::NewJSArrayBuffer(SharedFlag shared,
3061 Handle<JSIteratorResult> Factory::NewJSIteratorResult(Handle<Object> value,
3072 Handle<JSAsyncFromSyncIterator> Factory::NewJSAsyncFromSyncIterator(
3084 Handle<JSMap> Factory::NewJSMap() {
3091 Handle<JSSet> Factory::NewJSSet() {
3098 Handle<JSMapIterator> Factory::NewJSMapIterator(Handle<Map> map,
3108 Handle<JSSetIterator> Factory::NewJSSetIterator(Handle<Map> map,
3118 void Factory::TypeAndSizeForElementsKind(ElementsKind kind,
3198 isolate->factory()->NewNumberFromSize(byte_offset, pretenure);
3202 isolate->factory()->NewNumberFromSize(byte_length, pretenure);
3208 Handle<JSTypedArray> Factory::NewJSTypedArray(ExternalArrayType type,
3216 Handle<JSTypedArray> Factory::NewJSTypedArray(ElementsKind elements_kind,
3224 Handle<JSTypedArray> Factory::NewJSTypedArray(ExternalArrayType type,
3254 Handle<JSTypedArray> Factory::NewJSTypedArray(ElementsKind elements_kind,
3293 Handle<JSDataView> Factory::NewJSDataView(Handle<JSArrayBuffer> buffer,
3303 MaybeHandle<JSBoundFunction> Factory::NewJSBoundFunction(
3353 Handle<JSProxy> Factory::NewJSProxy(Handle<JSReceiver> target,
3374 Handle<JSGlobalProxy> Factory::NewUninitializedJSGlobalProxy(int size) {
3384 void Factory::ReinitializeJSGlobalProxy(Handle<JSGlobalProxy> object,
3417 Handle<SharedFunctionInfo> Factory::NewSharedFunctionInfoForLiteral(
3428 Handle<JSMessageObject> Factory::NewJSMessageObject(
3449 Handle<SharedFunctionInfo> Factory::NewSharedFunctionInfoForApiFunction(
3457 Handle<SharedFunctionInfo> Factory::NewSharedFunctionInfoForBuiltin(
3464 Handle<SharedFunctionInfo> Factory::NewSharedFunctionInfo(
3552 Handle<String> Factory::NumberToStringCacheSet(Handle<Object> number, int hash,
3574 Handle<Object> Factory::NumberToStringCacheGet(Object* number, int hash) {
3585 Handle<String> Factory::NumberToString(Handle<Object> number,
3610 Handle<String> Factory::NumberToString(Smi* number, bool check_cache) {
3626 Handle<DebugInfo> Factory::NewDebugInfo(Handle<SharedFunctionInfo> shared) {
3648 Handle<CoverageInfo> Factory::NewCoverageInfo(
3664 Handle<BreakPointInfo> Factory::NewBreakPointInfo(int source_position) {
3672 Handle<BreakPoint> Factory::NewBreakPoint(int id, Handle<String> condition) {
3680 Handle<StackFrameInfo> Factory::NewStackFrameInfo() {
3694 Factory::NewSourcePositionTableWithFrameCache(
3708 Handle<JSObject> Factory::NewArgumentsObject(Handle<JSFunction> callee,
3730 Handle<Map> Factory::ObjectLiteralMapFromCache(Handle<NativeContext> context,
3775 Handle<LoadHandler> Factory::NewLoadHandler(int data_count) {
3794 Handle<StoreHandler> Factory::NewStoreHandler(int data_count) {
3816 void Factory::SetRegExpAtomData(Handle<JSRegExp> regexp, JSRegExp::Type type,
3828 void Factory::SetRegExpIrregexpData(Handle<JSRegExp> regexp,
3844 Handle<RegExpMatchInfo> Factory::NewRegExpMatchInfo() {
3862 Handle<Object> Factory::GlobalConstantFor(Handle<Name> name) {
3871 Handle<Object> Factory::ToBoolean(bool value) {
3875 Handle<String> Factory::ToPrimitiveHintString(ToPrimitiveHint hint) {
3887 Handle<Map> Factory::CreateSloppyFunctionMap(
3930 Handle<Name> name = isolate()->factory()->name_string();
3964 Handle<Map> Factory::CreateStrictFunctionMap(
4006 Handle<Name> name = isolate()->factory()->name_string();
4021 Handle<Name> name = isolate()->factory()->home_object_symbol();
4040 Handle<Map> Factory::CreateClassFunctionMap(Handle<JSFunction> empty_function) {
4074 Handle<JSPromise> Factory::NewJSPromiseWithoutHook(PretenureFlag pretenure) {
4085 Handle<JSPromise> Factory::NewJSPromise(PretenureFlag pretenure) {
4091 Handle<CallHandlerInfo> Factory::NewCallHandlerInfo(bool has_no_side_effect) {