• Home
  • Raw
  • Download

Lines Matching refs:Handle

56 void InitializeCode(Heap* heap, Handle<Code> code, int object_size,  in InitializeCode()
58 Handle<Object> self_ref, int32_t builtin_index, in InitializeCode()
59 Handle<ByteArray> source_position_table, in InitializeCode()
60 Handle<DeoptimizationData> deopt_data, in InitializeCode()
61 Handle<ByteArray> reloc_info, in InitializeCode()
62 Handle<CodeDataContainer> data_container, uint32_t stub_key, in InitializeCode()
125 Handle<Map> map, PretenureFlag pretenure, in AllocateRawWithAllocationSite()
126 Handle<AllocationSite> allocation_site) { in AllocateRawWithAllocationSite()
181 HeapObject* Factory::New(Handle<Map> map, PretenureFlag pretenure) { in New()
194 Handle<HeapObject> Factory::NewFillerObject(int size, bool double_align, in NewFillerObject()
204 return Handle<HeapObject>(result, isolate()); in NewFillerObject()
207 Handle<PrototypeInfo> Factory::NewPrototypeInfo() { in NewPrototypeInfo()
208 Handle<PrototypeInfo> result = in NewPrototypeInfo()
209 Handle<PrototypeInfo>::cast(NewStruct(PROTOTYPE_INFO_TYPE, TENURED)); in NewPrototypeInfo()
217 Handle<EnumCache> Factory::NewEnumCache(Handle<FixedArray> keys, in NewEnumCache()
218 Handle<FixedArray> indices) { in NewEnumCache()
219 return Handle<EnumCache>::cast(NewTuple2(keys, indices, TENURED)); in NewEnumCache()
222 Handle<Tuple2> Factory::NewTuple2(Handle<Object> value1, Handle<Object> value2, in NewTuple2()
224 Handle<Tuple2> result = in NewTuple2()
225 Handle<Tuple2>::cast(NewStruct(TUPLE2_TYPE, pretenure)); in NewTuple2()
231 Handle<Tuple3> Factory::NewTuple3(Handle<Object> value1, Handle<Object> value2, in NewTuple3()
232 Handle<Object> value3, in NewTuple3()
234 Handle<Tuple3> result = in NewTuple3()
235 Handle<Tuple3>::cast(NewStruct(TUPLE3_TYPE, pretenure)); in NewTuple3()
242 Handle<ArrayBoilerplateDescription> Factory::NewArrayBoilerplateDescription( in NewArrayBoilerplateDescription()
243 ElementsKind elements_kind, Handle<FixedArrayBase> constant_values) { in NewArrayBoilerplateDescription()
244 Handle<ArrayBoilerplateDescription> result = in NewArrayBoilerplateDescription()
245 Handle<ArrayBoilerplateDescription>::cast( in NewArrayBoilerplateDescription()
252 Handle<TemplateObjectDescription> Factory::NewTemplateObjectDescription( in NewTemplateObjectDescription()
253 Handle<FixedArray> raw_strings, Handle<FixedArray> cooked_strings) { in NewTemplateObjectDescription()
256 Handle<TemplateObjectDescription> result = in NewTemplateObjectDescription()
257 Handle<TemplateObjectDescription>::cast(NewStruct(TUPLE2_TYPE, TENURED)); in NewTemplateObjectDescription()
263 Handle<Oddball> Factory::NewOddball(Handle<Map> map, const char* to_string, in NewOddball()
264 Handle<Object> to_number, in NewOddball()
267 Handle<Oddball> oddball(Oddball::cast(New(map, pretenure)), isolate()); in NewOddball()
272 Handle<Oddball> Factory::NewSelfReferenceMarker(PretenureFlag pretenure) { in NewSelfReferenceMarker()
278 Handle<PropertyArray> Factory::NewPropertyArray(int length, in NewPropertyArray()
284 Handle<PropertyArray> array(PropertyArray::cast(result), isolate()); in NewPropertyArray()
290 Handle<FixedArray> Factory::NewFixedArrayWithFiller( in NewFixedArrayWithFiller()
297 Handle<FixedArray> array(FixedArray::cast(result), isolate()); in NewFixedArrayWithFiller()
304 Handle<T> Factory::NewFixedArrayWithMap(Heap::RootListIndex map_root_index, in NewFixedArrayWithMap()
311 return Handle<T>::cast(NewFixedArrayWithFiller( in NewFixedArrayWithMap()
316 Handle<T> Factory::NewWeakFixedArrayWithMap(Heap::RootListIndex map_root_index, in NewWeakFixedArrayWithMap()
330 Handle<WeakFixedArray> array(WeakFixedArray::cast(result), isolate()); in NewWeakFixedArrayWithMap()
335 return Handle<T>::cast(array); in NewWeakFixedArrayWithMap()
338 template Handle<FixedArray> Factory::NewFixedArrayWithMap<FixedArray>(
341 template Handle<DescriptorArray>
345 Handle<FixedArray> Factory::NewFixedArray(int length, PretenureFlag pretenure) { in NewFixedArray()
352 Handle<WeakFixedArray> Factory::NewWeakFixedArray(int length, in NewWeakFixedArray()
360 Handle<WeakFixedArray> array(WeakFixedArray::cast(result), isolate()); in NewWeakFixedArray()
383 Handle<FixedArray> array(FixedArray::cast(result), isolate()); in TryNewFixedArray()
390 Handle<FixedArray> Factory::NewFixedArrayWithHoles(int length, in NewFixedArrayWithHoles()
398 Handle<FixedArray> Factory::NewUninitializedFixedArray( in NewUninitializedFixedArray()
410 Handle<FeedbackVector> Factory::NewFeedbackVector( in NewFeedbackVector()
411 Handle<SharedFunctionInfo> shared, PretenureFlag pretenure) { in NewFeedbackVector()
418 Handle<FeedbackVector> vector(FeedbackVector::cast(result), isolate()); in NewFeedbackVector()
433 Handle<ObjectBoilerplateDescription> Factory::NewObjectBoilerplateDescription( in NewObjectBoilerplateDescription()
453 Handle<ObjectBoilerplateDescription> description = in NewObjectBoilerplateDescription()
454 Handle<ObjectBoilerplateDescription>::cast(NewFixedArrayWithMap( in NewObjectBoilerplateDescription()
468 Handle<FixedArrayBase> Factory::NewFixedDoubleArray(int length, in NewFixedDoubleArray()
479 Handle<FixedDoubleArray> array(FixedDoubleArray::cast(result), isolate()); in NewFixedDoubleArray()
484 Handle<FixedArrayBase> Factory::NewFixedDoubleArrayWithHoles( in NewFixedDoubleArrayWithHoles()
487 Handle<FixedArrayBase> array = NewFixedDoubleArray(length, pretenure); in NewFixedDoubleArrayWithHoles()
489 Handle<FixedDoubleArray>::cast(array)->FillWithHoles(0, length); in NewFixedDoubleArrayWithHoles()
494 Handle<FeedbackMetadata> Factory::NewFeedbackMetadata(int slot_count, in NewFeedbackMetadata()
500 Handle<FeedbackMetadata> data(FeedbackMetadata::cast(result), isolate()); in NewFeedbackMetadata()
512 Handle<FrameArray> Factory::NewFrameArray(int number_of_frames, in NewFrameArray()
515 Handle<FixedArray> result = NewFixedArrayWithHoles( in NewFrameArray()
518 return Handle<FrameArray>::cast(result); in NewFrameArray()
521 Handle<SmallOrderedHashSet> Factory::NewSmallOrderedHashSet( in NewSmallOrderedHashSet()
530 Handle<SmallOrderedHashSet> table(SmallOrderedHashSet::cast(result), in NewSmallOrderedHashSet()
536 Handle<SmallOrderedHashMap> Factory::NewSmallOrderedHashMap( in NewSmallOrderedHashMap()
545 Handle<SmallOrderedHashMap> table(SmallOrderedHashMap::cast(result), in NewSmallOrderedHashMap()
551 Handle<OrderedHashSet> Factory::NewOrderedHashSet() { in NewOrderedHashSet()
555 Handle<OrderedHashMap> Factory::NewOrderedHashMap() { in NewOrderedHashMap()
559 Handle<AccessorPair> Factory::NewAccessorPair() { in NewAccessorPair()
560 Handle<AccessorPair> accessors = in NewAccessorPair()
561 Handle<AccessorPair>::cast(NewStruct(ACCESSOR_PAIR_TYPE, TENURED)); in NewAccessorPair()
568 Handle<String> Factory::InternalizeUtf8String(Vector<const char> string) { in InternalizeUtf8String()
573 Handle<String> Factory::InternalizeOneByteString(Vector<const uint8_t> string) { in InternalizeOneByteString()
578 Handle<String> Factory::InternalizeOneByteString( in InternalizeOneByteString()
579 Handle<SeqOneByteString> string, int from, int length) { in InternalizeOneByteString()
584 Handle<String> Factory::InternalizeTwoByteString(Vector<const uc16> string) { in InternalizeTwoByteString()
590 Handle<String> Factory::InternalizeStringWithKey(StringTableKey* key) { in InternalizeStringWithKey()
599 Handle<SeqOneByteString> result; in NewStringFromOneByte()
633 Handle<SeqTwoByteString> result; in NewStringFromUtf8()
650 Handle<SeqOneByteString> str, int begin, int length, in NewStringFromUtf8SubString()
672 Handle<SeqTwoByteString> result; in NewStringFromUtf8SubString()
700 Handle<SeqOneByteString> result; in NewStringFromTwoByte()
706 Handle<SeqTwoByteString> result; in NewStringFromTwoByte()
732 bool inline IsOneByte(Handle<String> str) { in IsOneByte()
758 inline void WriteOneByteData(Handle<String> s, uint8_t* chars, int len) { in WriteOneByteData()
763 inline void WriteTwoByteData(Handle<String> s, uint16_t* chars, int len) { in WriteTwoByteData()
770 Handle<SeqOneByteString> Factory::AllocateRawOneByteInternalizedString( in AllocateRawOneByteInternalizedString()
785 Handle<SeqOneByteString> answer(SeqOneByteString::cast(result), isolate()); in AllocateRawOneByteInternalizedString()
792 Handle<String> Factory::AllocateTwoByteInternalizedString( in AllocateTwoByteInternalizedString()
800 Handle<SeqTwoByteString> answer(SeqTwoByteString::cast(result), isolate()); in AllocateTwoByteInternalizedString()
812 Handle<String> Factory::AllocateInternalizedStringImpl(T t, int chars, in AllocateInternalizedStringImpl()
833 Handle<String> answer(String::cast(result), isolate()); in AllocateInternalizedStringImpl()
846 Handle<String> Factory::NewInternalizedStringFromUtf8(Vector<const char> str, in NewInternalizedStringFromUtf8()
850 Handle<SeqOneByteString> result = in NewInternalizedStringFromUtf8()
858 Handle<String> Factory::NewOneByteInternalizedString(Vector<const uint8_t> str, in NewOneByteInternalizedString()
860 Handle<SeqOneByteString> result = in NewOneByteInternalizedString()
866 Handle<String> Factory::NewOneByteInternalizedSubString( in NewOneByteInternalizedSubString()
867 Handle<SeqOneByteString> string, int offset, int length, in NewOneByteInternalizedSubString()
869 Handle<SeqOneByteString> result = in NewOneByteInternalizedSubString()
875 Handle<String> Factory::NewTwoByteInternalizedString(Vector<const uc16> str, in NewTwoByteInternalizedString()
880 Handle<String> Factory::NewInternalizedStringImpl(Handle<String> string, in NewInternalizedStringImpl()
891 MaybeHandle<Map> GetInternalizedStringMap(Factory* f, Handle<String> string) { in GetInternalizedStringMap()
917 Handle<String> string) { in InternalizedStringMapForString()
925 Handle<StringClass> Factory::InternalizeExternalString(Handle<String> string) { in InternalizeExternalString()
926 Handle<StringClass> cast_string = Handle<StringClass>::cast(string); in InternalizeExternalString()
927 Handle<Map> map = GetInternalizedStringMap(this, string).ToHandleChecked(); in InternalizeExternalString()
928 Handle<StringClass> external_string(StringClass::cast(New(map, TENURED)), in InternalizeExternalString()
937 template Handle<ExternalOneByteString>
938 Factory::InternalizeExternalString<ExternalOneByteString>(Handle<String>);
939 template Handle<ExternalTwoByteString>
940 Factory::InternalizeExternalString<ExternalTwoByteString>(Handle<String>);
953 Handle<SeqOneByteString> string(SeqOneByteString::cast(result), isolate()); in NewRawOneByteString()
971 Handle<SeqTwoByteString> string(SeqTwoByteString::cast(result), isolate()); in NewRawTwoByteString()
978 Handle<String> Factory::LookupSingleCharacterStringFromCode(uint32_t code) { in LookupSingleCharacterStringFromCode()
989 Handle<String> result = in LookupSingleCharacterStringFromCode()
996 Handle<SeqTwoByteString> result = NewRawTwoByteString(1).ToHandleChecked(); in LookupSingleCharacterStringFromCode()
1007 static inline Handle<String> MakeOrFindTwoCharacterString(Isolate* isolate, in MakeOrFindTwoCharacterString()
1013 Handle<String> result; in MakeOrFindTwoCharacterString()
1026 Handle<SeqOneByteString> str = in MakeOrFindTwoCharacterString()
1033 Handle<SeqTwoByteString> str = in MakeOrFindTwoCharacterString()
1043 Handle<String> ConcatStringContent(Handle<StringType> result, in ConcatStringContent()
1044 Handle<String> first, in ConcatStringContent()
1045 Handle<String> second) { in ConcatStringContent()
1053 MaybeHandle<String> Factory::NewConsString(Handle<String> left, in NewConsString()
1054 Handle<String> right) { in NewConsString()
1056 left = handle(Handle<ThinString>::cast(left)->actual(), isolate()); in NewConsString()
1059 right = handle(Handle<ThinString>::cast(right)->actual(), isolate()); in NewConsString()
1104 Handle<SeqOneByteString> result = in NewConsString()
1111 ? Handle<ExternalOneByteString>::cast(left)->GetChars() in NewConsString()
1112 : Handle<SeqOneByteString>::cast(left)->GetChars(); in NewConsString()
1116 ? Handle<ExternalOneByteString>::cast(right)->GetChars() in NewConsString()
1117 : Handle<SeqOneByteString>::cast(right)->GetChars(); in NewConsString()
1134 Handle<String> Factory::NewConsString(Handle<String> left, Handle<String> right, in NewConsString()
1141 Handle<ConsString> result( in NewConsString()
1156 Handle<String> Factory::NewSurrogatePairString(uint16_t lead, uint16_t trail) { in NewSurrogatePairString()
1162 Handle<SeqTwoByteString> str = in NewSurrogatePairString()
1170 Handle<String> Factory::NewProperSubString(Handle<String> str, int begin, in NewProperSubString()
1195 Handle<SeqOneByteString> result = in NewProperSubString()
1202 Handle<SeqTwoByteString> result = in NewProperSubString()
1214 Handle<SlicedString> slice = Handle<SlicedString>::cast(str); in NewProperSubString()
1215 str = Handle<String>(slice->parent(), isolate()); in NewProperSubString()
1219 Handle<ThinString> thin = Handle<ThinString>::cast(str); in NewProperSubString()
1224 Handle<Map> map = str->IsOneByteRepresentation() in NewProperSubString()
1227 Handle<SlicedString> slice(SlicedString::cast(New(map, NOT_TENURED)), in NewProperSubString()
1245 Handle<Map> map; in NewExternalStringFromOneByte()
1252 Handle<ExternalOneByteString> external_string( in NewExternalStringFromOneByte()
1276 Handle<Map> map; in NewExternalStringFromTwoByte()
1285 Handle<ExternalTwoByteString> external_string( in NewExternalStringFromTwoByte()
1295 Handle<ExternalOneByteString> Factory::NewNativeSourceString( in NewNativeSourceString()
1300 Handle<Map> map = native_source_string_map(); in NewNativeSourceString()
1301 Handle<ExternalOneByteString> external_string( in NewNativeSourceString()
1311 Handle<JSStringIterator> Factory::NewJSStringIterator(Handle<String> string) { in NewJSStringIterator()
1312 Handle<Map> map(isolate()->native_context()->string_iterator_map(), in NewJSStringIterator()
1314 Handle<String> flat_string = String::Flatten(isolate(), string); in NewJSStringIterator()
1315 Handle<JSStringIterator> iterator = in NewJSStringIterator()
1316 Handle<JSStringIterator>::cast(NewJSObjectFromMap(map)); in NewJSStringIterator()
1323 Handle<Symbol> Factory::NewSymbol(PretenureFlag flag) { in NewSymbol()
1334 Handle<Symbol> symbol(Symbol::cast(result), isolate()); in NewSymbol()
1343 Handle<Symbol> Factory::NewPrivateSymbol(PretenureFlag flag) { in NewPrivateSymbol()
1345 Handle<Symbol> symbol = NewSymbol(flag); in NewPrivateSymbol()
1350 Handle<Symbol> Factory::NewPrivateFieldSymbol() { in NewPrivateFieldSymbol()
1351 Handle<Symbol> symbol = NewSymbol(); in NewPrivateFieldSymbol()
1356 Handle<NativeContext> Factory::NewNativeContext() { in NewNativeContext()
1357 Handle<NativeContext> context = NewFixedArrayWithMap<NativeContext>( in NewNativeContext()
1366 Handle<Context> Factory::NewScriptContext(Handle<NativeContext> outer, in NewScriptContext()
1367 Handle<ScopeInfo> scope_info) { in NewScriptContext()
1369 Handle<Context> context = NewFixedArrayWithMap<Context>( in NewScriptContext()
1379 Handle<ScriptContextTable> Factory::NewScriptContextTable() { in NewScriptContextTable()
1380 Handle<ScriptContextTable> context_table = in NewScriptContextTable()
1388 Handle<Context> Factory::NewModuleContext(Handle<Module> module, in NewModuleContext()
1389 Handle<NativeContext> outer, in NewModuleContext()
1390 Handle<ScopeInfo> scope_info) { in NewModuleContext()
1392 Handle<Context> context = NewFixedArrayWithMap<Context>( in NewModuleContext()
1402 Handle<Context> Factory::NewFunctionContext(Handle<Context> outer, in NewFunctionContext()
1403 Handle<ScopeInfo> scope_info) { in NewFunctionContext()
1417 Handle<Context> context = NewFixedArrayWithMap<Context>(mapRootIndex, length); in NewFunctionContext()
1425 Handle<Context> Factory::NewCatchContext(Handle<Context> previous, in NewCatchContext()
1426 Handle<ScopeInfo> scope_info, in NewCatchContext()
1427 Handle<Object> thrown_object) { in NewCatchContext()
1429 Handle<Context> context = NewFixedArrayWithMap<Context>( in NewCatchContext()
1439 Handle<Context> Factory::NewDebugEvaluateContext(Handle<Context> previous, in NewDebugEvaluateContext()
1440 Handle<ScopeInfo> scope_info, in NewDebugEvaluateContext()
1441 Handle<JSReceiver> extension, in NewDebugEvaluateContext()
1442 Handle<Context> wrapped, in NewDebugEvaluateContext()
1443 Handle<StringSet> whitelist) { in NewDebugEvaluateContext()
1446 Handle<HeapObject> ext = extension.is_null() in NewDebugEvaluateContext()
1447 ? Handle<HeapObject>::cast(the_hole_value()) in NewDebugEvaluateContext()
1448 : Handle<HeapObject>::cast(extension); in NewDebugEvaluateContext()
1449 Handle<Context> c = NewFixedArrayWithMap<Context>( in NewDebugEvaluateContext()
1460 Handle<Context> Factory::NewWithContext(Handle<Context> previous, in NewWithContext()
1461 Handle<ScopeInfo> scope_info, in NewWithContext()
1462 Handle<JSReceiver> extension) { in NewWithContext()
1463 Handle<Context> context = NewFixedArrayWithMap<Context>( in NewWithContext()
1472 Handle<Context> Factory::NewBlockContext(Handle<Context> previous, in NewBlockContext()
1473 Handle<ScopeInfo> scope_info) { in NewBlockContext()
1475 Handle<Context> context = NewFixedArrayWithMap<Context>( in NewBlockContext()
1484 Handle<Context> Factory::NewBuiltinContext(Handle<NativeContext> native_context, in NewBuiltinContext()
1487 Handle<Context> context = in NewBuiltinContext()
1495 Handle<Struct> Factory::NewStruct(InstanceType type, PretenureFlag pretenure) { in NewStruct()
1509 Handle<Struct> str(Struct::cast(result), isolate()); in NewStruct()
1514 Handle<AliasedArgumentsEntry> Factory::NewAliasedArgumentsEntry( in NewAliasedArgumentsEntry()
1516 Handle<AliasedArgumentsEntry> entry = Handle<AliasedArgumentsEntry>::cast( in NewAliasedArgumentsEntry()
1522 Handle<AccessorInfo> Factory::NewAccessorInfo() { in NewAccessorInfo()
1523 Handle<AccessorInfo> info = in NewAccessorInfo()
1524 Handle<AccessorInfo>::cast(NewStruct(ACCESSOR_INFO_TYPE, TENURED)); in NewAccessorInfo()
1532 Handle<Script> Factory::NewScript(Handle<String> source, PretenureFlag tenure) { in NewScript()
1536 Handle<Script> Factory::NewScriptWithId(Handle<String> source, int script_id, in NewScriptWithId()
1542 Handle<Script> script = Handle<Script>::cast(NewStruct(SCRIPT_TYPE, tenure)); in NewScriptWithId()
1557 Handle<WeakArrayList> scripts = script_list(); in NewScriptWithId()
1565 Handle<Script> Factory::CloneScript(Handle<Script> script) { in CloneScript()
1568 Handle<Script> new_script = in CloneScript()
1569 Handle<Script>::cast(NewStruct(SCRIPT_TYPE, TENURED)); in CloneScript()
1585 Handle<WeakArrayList> scripts = script_list(); in CloneScript()
1593 Handle<CallableTask> Factory::NewCallableTask(Handle<JSReceiver> callable, in NewCallableTask()
1594 Handle<Context> context) { in NewCallableTask()
1596 Handle<CallableTask> microtask = in NewCallableTask()
1597 Handle<CallableTask>::cast(NewStruct(CALLABLE_TASK_TYPE)); in NewCallableTask()
1603 Handle<CallbackTask> Factory::NewCallbackTask(Handle<Foreign> callback, in NewCallbackTask()
1604 Handle<Foreign> data) { in NewCallbackTask()
1605 Handle<CallbackTask> microtask = in NewCallbackTask()
1606 Handle<CallbackTask>::cast(NewStruct(CALLBACK_TASK_TYPE)); in NewCallbackTask()
1612 Handle<PromiseResolveThenableJobTask> Factory::NewPromiseResolveThenableJobTask( in NewPromiseResolveThenableJobTask()
1613 Handle<JSPromise> promise_to_resolve, Handle<JSReceiver> then, in NewPromiseResolveThenableJobTask()
1614 Handle<JSReceiver> thenable, Handle<Context> context) { in NewPromiseResolveThenableJobTask()
1616 Handle<PromiseResolveThenableJobTask> microtask = in NewPromiseResolveThenableJobTask()
1617 Handle<PromiseResolveThenableJobTask>::cast( in NewPromiseResolveThenableJobTask()
1626 Handle<Foreign> Factory::NewForeign(Address addr, PretenureFlag pretenure) { in NewForeign()
1632 Handle<Foreign> foreign(Foreign::cast(result), isolate()); in NewForeign()
1637 Handle<ByteArray> Factory::NewByteArray(int length, PretenureFlag pretenure) { in NewByteArray()
1645 Handle<ByteArray> array(ByteArray::cast(result), isolate()); in NewByteArray()
1651 Handle<BytecodeArray> Factory::NewBytecodeArray( in NewBytecodeArray()
1653 Handle<FixedArray> constant_pool) { in NewBytecodeArray()
1664 Handle<BytecodeArray> instance(BytecodeArray::cast(result), isolate()); in NewBytecodeArray()
1683 Handle<FixedTypedArrayBase> Factory::NewFixedTypedArrayWithExternalPointer( in NewFixedTypedArrayWithExternalPointer()
1691 Handle<FixedTypedArrayBase> elements(FixedTypedArrayBase::cast(result), in NewFixedTypedArrayWithExternalPointer()
1699 Handle<FixedTypedArrayBase> Factory::NewFixedTypedArray( in NewFixedTypedArray()
1713 Handle<FixedTypedArrayBase> elements(FixedTypedArrayBase::cast(object), in NewFixedTypedArray()
1725 Handle<Cell> Factory::NewCell(Handle<Object> value) { in NewCell()
1730 Handle<Cell> cell(Cell::cast(result), isolate()); in NewCell()
1735 Handle<FeedbackCell> Factory::NewNoClosuresCell(Handle<HeapObject> value) { in NewNoClosuresCell()
1739 Handle<FeedbackCell> cell(FeedbackCell::cast(result), isolate()); in NewNoClosuresCell()
1744 Handle<FeedbackCell> Factory::NewOneClosureCell(Handle<HeapObject> value) { in NewOneClosureCell()
1748 Handle<FeedbackCell> cell(FeedbackCell::cast(result), isolate()); in NewOneClosureCell()
1753 Handle<FeedbackCell> Factory::NewManyClosuresCell(Handle<HeapObject> value) { in NewManyClosuresCell()
1757 Handle<FeedbackCell> cell(FeedbackCell::cast(result), isolate()); in NewManyClosuresCell()
1762 Handle<PropertyCell> Factory::NewPropertyCell(Handle<Name> name, in NewPropertyCell()
1768 Handle<PropertyCell> cell(PropertyCell::cast(result), isolate()); in NewPropertyCell()
1777 Handle<TransitionArray> Factory::NewTransitionArray(int number_of_transitions, in NewTransitionArray()
1780 Handle<TransitionArray> array = NewWeakFixedArrayWithMap<TransitionArray>( in NewTransitionArray()
1796 Handle<AllocationSite> Factory::NewAllocationSite(bool with_weak_next) { in NewAllocationSite()
1797 Handle<Map> map = with_weak_next ? allocation_site_map() in NewAllocationSite()
1799 Handle<AllocationSite> site(AllocationSite::cast(New(map, TENURED)), in NewAllocationSite()
1811 Handle<Map> Factory::NewMap(InstanceType type, int instance_size, in NewMap()
1870 Handle<JSObject> Factory::CopyJSObject(Handle<JSObject> source) { in CopyJSObject()
1871 return CopyJSObjectWithAllocationSite(source, Handle<AllocationSite>()); in CopyJSObject()
1874 Handle<JSObject> Factory::CopyJSObjectWithAllocationSite( in CopyJSObjectWithAllocationSite()
1875 Handle<JSObject> source, Handle<AllocationSite> site) { in CopyJSObjectWithAllocationSite()
1876 Handle<Map> map(source->map(), isolate()); in CopyJSObjectWithAllocationSite()
1903 Handle<JSObject> clone(JSObject::cast(raw_clone), isolate()); in CopyJSObjectWithAllocationSite()
1932 Handle<PropertyArray> prop = CopyArrayWithMap( in CopyJSObjectWithAllocationSite()
1937 Handle<FixedArray> properties( in CopyJSObjectWithAllocationSite()
1939 Handle<FixedArray> prop = CopyFixedArray(properties); in CopyJSObjectWithAllocationSite()
1959 Handle<T> Factory::CopyArrayWithMap(Handle<T> src, Handle<Map> map) { in CopyArrayWithMap()
1978 return Handle<T>(result, isolate()); in CopyArrayWithMap()
1982 Handle<T> Factory::CopyArrayAndGrow(Handle<T> src, int grow_by, in CopyArrayAndGrow()
1999 return Handle<T>(result, isolate()); in CopyArrayAndGrow()
2002 Handle<FixedArray> Factory::CopyFixedArrayWithMap(Handle<FixedArray> array, in CopyFixedArrayWithMap()
2003 Handle<Map> map) { in CopyFixedArrayWithMap()
2007 Handle<FixedArray> Factory::CopyFixedArrayAndGrow(Handle<FixedArray> array, in CopyFixedArrayAndGrow()
2013 Handle<WeakFixedArray> Factory::CopyWeakFixedArrayAndGrow( in CopyWeakFixedArrayAndGrow()
2014 Handle<WeakFixedArray> src, int grow_by, PretenureFlag pretenure) { in CopyWeakFixedArrayAndGrow()
2034 return Handle<WeakFixedArray>(result, isolate()); in CopyWeakFixedArrayAndGrow()
2037 Handle<WeakArrayList> Factory::CopyWeakArrayListAndGrow( in CopyWeakArrayListAndGrow()
2038 Handle<WeakArrayList> src, int grow_by, PretenureFlag pretenure) { in CopyWeakArrayListAndGrow()
2057 return Handle<WeakArrayList>(result, isolate()); in CopyWeakArrayListAndGrow()
2060 Handle<PropertyArray> Factory::CopyPropertyArrayAndGrow( in CopyPropertyArrayAndGrow()
2061 Handle<PropertyArray> array, int grow_by, PretenureFlag pretenure) { in CopyPropertyArrayAndGrow()
2065 Handle<FixedArray> Factory::CopyFixedArrayUpTo(Handle<FixedArray> array, in CopyFixedArrayUpTo()
2074 Handle<FixedArray> result(FixedArray::cast(obj), isolate()); in CopyFixedArrayUpTo()
2084 Handle<FixedArray> Factory::CopyFixedArray(Handle<FixedArray> array) { in CopyFixedArray()
2089 Handle<FixedArray> Factory::CopyAndTenureFixedCOWArray( in CopyAndTenureFixedCOWArray()
2090 Handle<FixedArray> array) { in CopyAndTenureFixedCOWArray()
2092 Handle<FixedArray> result = in CopyAndTenureFixedCOWArray()
2102 Handle<FixedDoubleArray> Factory::CopyFixedDoubleArray( in CopyFixedDoubleArray()
2103 Handle<FixedDoubleArray> array) { in CopyFixedDoubleArray()
2106 Handle<FixedDoubleArray> result = in CopyFixedDoubleArray()
2107 Handle<FixedDoubleArray>::cast(NewFixedDoubleArray(len, NOT_TENURED)); in CopyFixedDoubleArray()
2115 Handle<FeedbackVector> Factory::CopyFeedbackVector( in CopyFeedbackVector()
2116 Handle<FeedbackVector> array) { in CopyFeedbackVector()
2120 Handle<FeedbackVector> result(FeedbackVector::cast(obj), isolate()); in CopyFeedbackVector()
2142 Handle<Object> Factory::NewNumber(double value, PretenureFlag pretenure) { in NewNumber()
2151 Handle<Object> Factory::NewNumberFromInt(int32_t value, in NewNumberFromInt()
2158 Handle<Object> Factory::NewNumberFromUint(uint32_t value, in NewNumberFromUint()
2167 Handle<HeapNumber> Factory::NewHeapNumber(PretenureFlag pretenure) { in NewHeapNumber()
2175 Handle<MutableHeapNumber> Factory::NewMutableHeapNumber( in NewMutableHeapNumber()
2184 Handle<FreshlyAllocatedBigInt> Factory::NewBigInt(int length, in NewBigInt()
2194 Handle<Object> Factory::NewError(Handle<JSFunction> constructor, in NewError()
2196 Handle<Object> arg0, Handle<Object> arg1, in NewError()
2197 Handle<Object> arg2) { in NewError()
2209 Handle<Object> result; in NewError()
2223 Handle<Object> Factory::NewError(Handle<JSFunction> constructor, in NewError()
2224 Handle<String> message) { in NewError()
2228 Handle<Object> no_caller; in NewError()
2241 Handle<Object> Factory::NewInvalidStringLengthError() { in NewInvalidStringLengthError()
2253 Handle<Object> Factory::New##NAME(MessageTemplate::Template template_index, \
2254 Handle<Object> arg0, Handle<Object> arg1, \
2255 Handle<Object> arg2) { \
2270 Handle<JSFunction> Factory::NewFunction(Handle<Map> map, in DEFINE_ERROR()
2271 Handle<SharedFunctionInfo> info, in DEFINE_ERROR()
2272 Handle<Context> context, in DEFINE_ERROR()
2274 Handle<JSFunction> function(JSFunction::cast(New(map, pretenure)), isolate()); in DEFINE_ERROR()
2293 Handle<JSFunction> Factory::NewFunctionForTest(Handle<String> name) { in NewFunctionForTest()
2296 Handle<JSFunction> result = NewFunction(args); in NewFunctionForTest()
2301 Handle<JSFunction> Factory::NewFunction(const NewFunctionArgs& args) { in NewFunction()
2305 Handle<NativeContext> context(isolate()->native_context()); in NewFunction()
2306 Handle<Map> map = args.GetMap(isolate()); in NewFunction()
2307 Handle<SharedFunctionInfo> info = in NewFunction()
2317 Handle<Code> code; in NewFunction()
2341 Handle<JSFunction> result = NewFunction(map, info, context); in NewFunction()
2365 Handle<Map> initial_map = NewMap(args.type_, args.instance_size_, in NewFunction()
2371 Handle<Object> prototype = args.maybe_prototype_.ToHandleChecked(); in NewFunction()
2383 Handle<JSObject> Factory::NewFunctionPrototype(Handle<JSFunction> function) { in NewFunctionPrototype()
2386 Handle<NativeContext> native_context(function->context()->native_context(), in NewFunctionPrototype()
2388 Handle<Map> new_map; in NewFunctionPrototype()
2400 Handle<JSFunction> object_function(native_context->object_function(), in NewFunctionPrototype()
2407 Handle<JSObject> prototype = NewJSObjectFromMap(new_map); in NewFunctionPrototype()
2417 Handle<JSFunction> Factory::NewFunctionFromSharedFunctionInfo( in NewFunctionFromSharedFunctionInfo()
2418 Handle<SharedFunctionInfo> info, Handle<Context> context, in NewFunctionFromSharedFunctionInfo()
2420 Handle<Map> initial_map( in NewFunctionFromSharedFunctionInfo()
2427 Handle<JSFunction> Factory::NewFunctionFromSharedFunctionInfo( in NewFunctionFromSharedFunctionInfo()
2428 Handle<SharedFunctionInfo> info, Handle<Context> context, in NewFunctionFromSharedFunctionInfo()
2429 Handle<FeedbackCell> feedback_cell, PretenureFlag pretenure) { in NewFunctionFromSharedFunctionInfo()
2430 Handle<Map> initial_map( in NewFunctionFromSharedFunctionInfo()
2437 Handle<JSFunction> Factory::NewFunctionFromSharedFunctionInfo( in NewFunctionFromSharedFunctionInfo()
2438 Handle<Map> initial_map, Handle<SharedFunctionInfo> info, in NewFunctionFromSharedFunctionInfo()
2439 Handle<Context> context, PretenureFlag pretenure) { in NewFunctionFromSharedFunctionInfo()
2441 Handle<JSFunction> result = in NewFunctionFromSharedFunctionInfo()
2450 Handle<JSFunction> Factory::NewFunctionFromSharedFunctionInfo( in NewFunctionFromSharedFunctionInfo()
2451 Handle<Map> initial_map, Handle<SharedFunctionInfo> info, in NewFunctionFromSharedFunctionInfo()
2452 Handle<Context> context, Handle<FeedbackCell> feedback_cell, in NewFunctionFromSharedFunctionInfo()
2455 Handle<JSFunction> result = in NewFunctionFromSharedFunctionInfo()
2482 Handle<ScopeInfo> Factory::NewScopeInfo(int length) { in NewScopeInfo()
2487 Handle<ModuleInfo> Factory::NewModuleInfo() { in NewModuleInfo()
2492 Handle<PreParsedScopeData> Factory::NewPreParsedScopeData(int length) { in NewPreParsedScopeData()
2494 Handle<PreParsedScopeData> result( in NewPreParsedScopeData()
2506 Handle<UncompiledDataWithoutPreParsedScope>
2507 Factory::NewUncompiledDataWithoutPreParsedScope(Handle<String> inferred_name, in NewUncompiledDataWithoutPreParsedScope()
2511 Handle<UncompiledDataWithoutPreParsedScope> result( in NewUncompiledDataWithoutPreParsedScope()
2524 Handle<UncompiledDataWithPreParsedScope>
2526 Handle<String> inferred_name, int32_t start_position, int32_t end_position, in NewUncompiledDataWithPreParsedScope()
2528 Handle<PreParsedScopeData> pre_parsed_scope_data) { in NewUncompiledDataWithPreParsedScope()
2529 Handle<UncompiledDataWithPreParsedScope> result( in NewUncompiledDataWithPreParsedScope()
2543 Handle<JSObject> Factory::NewExternal(void* value) { in NewExternal()
2544 Handle<Foreign> foreign = NewForeign(reinterpret_cast<Address>(value)); in NewExternal()
2545 Handle<JSObject> external = NewJSObjectFromMap(external_map()); in NewExternal()
2550 Handle<CodeDataContainer> Factory::NewCodeDataContainer(int flags) { in NewCodeDataContainer()
2551 Handle<CodeDataContainer> data_container( in NewCodeDataContainer()
2561 const CodeDesc& desc, Code::Kind kind, Handle<Object> self_ref, in TryNewCode()
2567 Handle<ByteArray> reloc_info = NewByteArray(desc.reloc_size, TENURED); in TryNewCode()
2568 Handle<CodeDataContainer> data_container = NewCodeDataContainer(0); in TryNewCode()
2569 Handle<ByteArray> source_position_table = in TryNewCode()
2573 Handle<DeoptimizationData> deopt_data = in TryNewCode()
2576 Handle<Code> code; in TryNewCode()
2610 Handle<Code> Factory::NewCode( in NewCode()
2611 const CodeDesc& desc, Code::Kind kind, Handle<Object> self_ref, in NewCode()
2617 Handle<ByteArray> reloc_info = NewByteArray(desc.reloc_size, TENURED); in NewCode()
2618 Handle<CodeDataContainer> data_container = NewCodeDataContainer(0); in NewCode()
2619 Handle<ByteArray> source_position_table = in NewCode()
2623 Handle<DeoptimizationData> deopt_data = in NewCode()
2627 Handle<Code> code; in NewCode()
2658 Handle<Code> Factory::NewCodeForDeserialization(uint32_t size) { in NewCodeForDeserialization()
2674 Handle<Code> Factory::NewOffHeapTrampolineFor(Handle<Code> code, in NewOffHeapTrampolineFor()
2681 Handle<Code> result = in NewOffHeapTrampolineFor()
2704 Handle<Code> Factory::CopyCode(Handle<Code> code) { in CopyCode()
2705 Handle<CodeDataContainer> data_container = in CopyCode()
2716 Handle<Code> new_code(Code::cast(result), isolate()); in CopyCode()
2739 Handle<BytecodeArray> Factory::CopyBytecodeArray( in CopyBytecodeArray()
2740 Handle<BytecodeArray> bytecode_array) { in CopyBytecodeArray()
2745 Handle<BytecodeArray> copy(BytecodeArray::cast(result), isolate()); in CopyBytecodeArray()
2761 Handle<JSObject> Factory::NewJSObject(Handle<JSFunction> constructor, in NewJSObject()
2764 Handle<Map> map(constructor->initial_map(), isolate()); in NewJSObject()
2768 Handle<JSObject> Factory::NewJSObjectWithNullProto(PretenureFlag pretenure) { in NewJSObjectWithNullProto()
2769 Handle<JSObject> result = in NewJSObjectWithNullProto()
2771 Handle<Map> new_map = Map::Copy( in NewJSObjectWithNullProto()
2772 isolate(), Handle<Map>(result->map(), isolate()), "ObjectWithNullProto"); in NewJSObjectWithNullProto()
2778 Handle<JSGlobalObject> Factory::NewJSGlobalObject( in NewJSGlobalObject()
2779 Handle<JSFunction> constructor) { in NewJSGlobalObject()
2781 Handle<Map> map(constructor->initial_map(), isolate()); in NewJSGlobalObject()
2801 Handle<GlobalDictionary> dictionary = in NewJSGlobalObject()
2806 Handle<DescriptorArray> descs(map->instance_descriptors(), isolate()); in NewJSGlobalObject()
2813 Handle<Name> name(descs->GetKey(i), isolate()); in NewJSGlobalObject()
2814 Handle<PropertyCell> cell = NewPropertyCell(name); in NewJSGlobalObject()
2821 Handle<JSGlobalObject> global(JSGlobalObject::cast(New(map, TENURED)), in NewJSGlobalObject()
2826 Handle<Map> new_map = Map::CopyDropDescriptors(isolate(), map); in NewJSGlobalObject()
2839 void Factory::InitializeJSObjectFromMap(Handle<JSObject> obj, in InitializeJSObjectFromMap()
2840 Handle<Object> properties, in InitializeJSObjectFromMap()
2841 Handle<Map> map) { in InitializeJSObjectFromMap()
2854 void Factory::InitializeJSObjectBody(Handle<JSObject> obj, Handle<Map> map, in InitializeJSObjectBody()
2881 Handle<JSObject> Factory::NewJSObjectFromMap( in NewJSObjectFromMap()
2882 Handle<Map> map, PretenureFlag pretenure, in NewJSObjectFromMap()
2883 Handle<AllocationSite> allocation_site) { in NewJSObjectFromMap()
2894 Handle<JSObject> js_obj(JSObject::cast(obj), isolate()); in NewJSObjectFromMap()
2904 Handle<JSObject> Factory::NewSlowJSObjectFromMap(Handle<Map> map, int capacity, in NewSlowJSObjectFromMap()
2907 Handle<NameDictionary> object_properties = in NewSlowJSObjectFromMap()
2909 Handle<JSObject> js_object = NewJSObjectFromMap(map, pretenure); in NewSlowJSObjectFromMap()
2914 Handle<JSArray> Factory::NewJSArray(ElementsKind elements_kind, in NewJSArray()
2922 return Handle<JSArray>::cast( in NewJSArray()
2926 Handle<JSArray> Factory::NewJSArray(ElementsKind elements_kind, int length, in NewJSArray()
2930 Handle<JSArray> array = NewJSArray(elements_kind, pretenure); in NewJSArray()
2935 Handle<JSArray> Factory::NewJSArrayWithElements(Handle<FixedArrayBase> elements, in NewJSArrayWithElements()
2940 Handle<JSArray> array = NewJSArray(elements_kind, pretenure); in NewJSArrayWithElements()
2948 void Factory::NewJSArrayStorage(Handle<JSArray> array, int length, int capacity, in NewJSArrayStorage()
2959 Handle<FixedArrayBase> elms; in NewJSArrayStorage()
2982 Handle<JSWeakMap> Factory::NewJSWeakMap() { in NewJSWeakMap()
2984 Handle<Map> map(native_context->js_weak_map_fun()->initial_map(), isolate()); in NewJSWeakMap()
2985 Handle<JSWeakMap> weakmap(JSWeakMap::cast(*NewJSObjectFromMap(map)), in NewJSWeakMap()
2995 Handle<JSModuleNamespace> Factory::NewJSModuleNamespace() { in NewJSModuleNamespace()
2996 Handle<Map> map = isolate()->js_module_namespace_map(); in NewJSModuleNamespace()
2997 Handle<JSModuleNamespace> module_namespace( in NewJSModuleNamespace()
2998 Handle<JSModuleNamespace>::cast(NewJSObjectFromMap(map))); in NewJSModuleNamespace()
3006 Handle<JSGeneratorObject> Factory::NewJSGeneratorObject( in NewJSGeneratorObject()
3007 Handle<JSFunction> function) { in NewJSGeneratorObject()
3010 Handle<Map> map(function->initial_map(), isolate()); in NewJSGeneratorObject()
3015 return Handle<JSGeneratorObject>::cast(NewJSObjectFromMap(map)); in NewJSGeneratorObject()
3018 Handle<Module> Factory::NewModule(Handle<SharedFunctionInfo> code) { in NewModule()
3019 Handle<ModuleInfo> module_info(code->scope_info()->ModuleDescriptorInfo(), in NewModule()
3021 Handle<ObjectHashTable> exports = in NewModule()
3023 Handle<FixedArray> regular_exports = in NewModule()
3025 Handle<FixedArray> regular_imports = in NewModule()
3028 Handle<FixedArray> requested_modules = in NewModule()
3033 Handle<Module> module = Handle<Module>::cast(NewStruct(MODULE_TYPE, TENURED)); in NewModule()
3050 Handle<JSArrayBuffer> Factory::NewJSArrayBuffer(SharedFlag shared, in NewJSArrayBuffer()
3052 Handle<JSFunction> array_buffer_fun( in NewJSArrayBuffer()
3057 Handle<Map> map(array_buffer_fun->initial_map(), isolate()); in NewJSArrayBuffer()
3058 return Handle<JSArrayBuffer>::cast(NewJSObjectFromMap(map, pretenure)); in NewJSArrayBuffer()
3061 Handle<JSIteratorResult> Factory::NewJSIteratorResult(Handle<Object> value, in NewJSIteratorResult()
3063 Handle<Map> map(isolate()->native_context()->iterator_result_map(), in NewJSIteratorResult()
3065 Handle<JSIteratorResult> js_iter_result = in NewJSIteratorResult()
3066 Handle<JSIteratorResult>::cast(NewJSObjectFromMap(map)); in NewJSIteratorResult()
3072 Handle<JSAsyncFromSyncIterator> Factory::NewJSAsyncFromSyncIterator( in NewJSAsyncFromSyncIterator()
3073 Handle<JSReceiver> sync_iterator, Handle<Object> next) { in NewJSAsyncFromSyncIterator()
3074 Handle<Map> map(isolate()->native_context()->async_from_sync_iterator_map(), in NewJSAsyncFromSyncIterator()
3076 Handle<JSAsyncFromSyncIterator> iterator = in NewJSAsyncFromSyncIterator()
3077 Handle<JSAsyncFromSyncIterator>::cast(NewJSObjectFromMap(map)); in NewJSAsyncFromSyncIterator()
3084 Handle<JSMap> Factory::NewJSMap() { in NewJSMap()
3085 Handle<Map> map(isolate()->native_context()->js_map_map(), isolate()); in NewJSMap()
3086 Handle<JSMap> js_map = Handle<JSMap>::cast(NewJSObjectFromMap(map)); in NewJSMap()
3091 Handle<JSSet> Factory::NewJSSet() { in NewJSSet()
3092 Handle<Map> map(isolate()->native_context()->js_set_map(), isolate()); in NewJSSet()
3093 Handle<JSSet> js_set = Handle<JSSet>::cast(NewJSObjectFromMap(map)); in NewJSSet()
3098 Handle<JSMapIterator> Factory::NewJSMapIterator(Handle<Map> map, in NewJSMapIterator()
3099 Handle<OrderedHashMap> table, in NewJSMapIterator()
3101 Handle<JSMapIterator> result = in NewJSMapIterator()
3102 Handle<JSMapIterator>::cast(NewJSObjectFromMap(map)); in NewJSMapIterator()
3108 Handle<JSSetIterator> Factory::NewJSSetIterator(Handle<Map> map, in NewJSSetIterator()
3109 Handle<OrderedHashSet> table, in NewJSSetIterator()
3111 Handle<JSSetIterator> result = in NewJSSetIterator()
3112 Handle<JSSetIterator>::cast(NewJSObjectFromMap(map)); in NewJSSetIterator()
3182 i::Handle<i::JSArrayBufferView> obj, in SetupArrayBufferView()
3183 i::Handle<i::JSArrayBuffer> buffer, in SetupArrayBufferView()
3197 i::Handle<i::Object> byte_offset_object = in SetupArrayBufferView()
3201 i::Handle<i::Object> byte_length_object = in SetupArrayBufferView()
3208 Handle<JSTypedArray> Factory::NewJSTypedArray(ExternalArrayType type, in NewJSTypedArray()
3210 Handle<JSFunction> typed_array_fun(GetTypedArrayFun(type, isolate()), in NewJSTypedArray()
3212 Handle<Map> map(typed_array_fun->initial_map(), isolate()); in NewJSTypedArray()
3213 return Handle<JSTypedArray>::cast(NewJSObjectFromMap(map, pretenure)); in NewJSTypedArray()
3216 Handle<JSTypedArray> Factory::NewJSTypedArray(ElementsKind elements_kind, in NewJSTypedArray()
3218 Handle<JSFunction> typed_array_fun(GetTypedArrayFun(elements_kind, isolate()), in NewJSTypedArray()
3220 Handle<Map> map(typed_array_fun->initial_map(), isolate()); in NewJSTypedArray()
3221 return Handle<JSTypedArray>::cast(NewJSObjectFromMap(map, pretenure)); in NewJSTypedArray()
3224 Handle<JSTypedArray> Factory::NewJSTypedArray(ExternalArrayType type, in NewJSTypedArray()
3225 Handle<JSArrayBuffer> buffer, in NewJSTypedArray()
3228 Handle<JSTypedArray> obj = NewJSTypedArray(type, pretenure); in NewJSTypedArray()
3243 Handle<Object> length_object = NewNumberFromSize(length, pretenure); in NewJSTypedArray()
3246 Handle<FixedTypedArrayBase> elements = NewFixedTypedArrayWithExternalPointer( in NewJSTypedArray()
3249 Handle<Map> map = JSObject::GetElementsTransitionMap(obj, elements_kind); in NewJSTypedArray()
3254 Handle<JSTypedArray> Factory::NewJSTypedArray(ElementsKind elements_kind, in NewJSTypedArray()
3257 Handle<JSTypedArray> obj = NewJSTypedArray(elements_kind, pretenure); in NewJSTypedArray()
3275 i::Handle<i::Object> byte_length_object = in NewJSTypedArray()
3278 Handle<Object> length_object = in NewJSTypedArray()
3282 Handle<JSArrayBuffer> buffer = in NewJSTypedArray()
3287 Handle<FixedTypedArrayBase> elements = NewFixedTypedArray( in NewJSTypedArray()
3293 Handle<JSDataView> Factory::NewJSDataView(Handle<JSArrayBuffer> buffer, in NewJSDataView()
3296 Handle<Map> map(isolate()->native_context()->data_view_fun()->initial_map(), in NewJSDataView()
3298 Handle<JSDataView> obj = Handle<JSDataView>::cast(NewJSObjectFromMap(map)); in NewJSDataView()
3304 Handle<JSReceiver> target_function, Handle<Object> bound_this, in NewJSBoundFunction()
3305 Vector<Handle<Object>> bound_args) { in NewJSBoundFunction()
3315 Handle<Object> prototype; in NewJSBoundFunction()
3324 Handle<FixedArray> bound_arguments; in NewJSBoundFunction()
3335 Handle<Map> map = target_function->IsConstructor() in NewJSBoundFunction()
3344 Handle<JSBoundFunction> result = in NewJSBoundFunction()
3345 Handle<JSBoundFunction>::cast(NewJSObjectFromMap(map)); in NewJSBoundFunction()
3353 Handle<JSProxy> Factory::NewJSProxy(Handle<JSReceiver> target, in NewJSProxy()
3354 Handle<JSReceiver> handler) { in NewJSProxy()
3356 Handle<Map> map; in NewJSProxy()
3359 map = Handle<Map>(isolate()->proxy_constructor_map()); in NewJSProxy()
3361 map = Handle<Map>(isolate()->proxy_callable_map()); in NewJSProxy()
3364 map = Handle<Map>(isolate()->proxy_map()); in NewJSProxy()
3367 Handle<JSProxy> result(JSProxy::cast(New(map, NOT_TENURED)), isolate()); in NewJSProxy()
3374 Handle<JSGlobalProxy> Factory::NewUninitializedJSGlobalProxy(int size) { in NewUninitializedJSGlobalProxy()
3377 Handle<Map> map = NewMap(JS_GLOBAL_PROXY_TYPE, size); in NewUninitializedJSGlobalProxy()
3381 return Handle<JSGlobalProxy>::cast(NewJSObjectFromMap(map, NOT_TENURED)); in NewUninitializedJSGlobalProxy()
3384 void Factory::ReinitializeJSGlobalProxy(Handle<JSGlobalProxy> object, in ReinitializeJSGlobalProxy()
3385 Handle<JSFunction> constructor) { in ReinitializeJSGlobalProxy()
3387 Handle<Map> map(constructor->initial_map(), isolate()); in ReinitializeJSGlobalProxy()
3388 Handle<Map> old_map(object->map(), isolate()); in ReinitializeJSGlobalProxy()
3391 Handle<Object> raw_properties_or_hash(object->raw_properties_or_hash(), in ReinitializeJSGlobalProxy()
3417 Handle<SharedFunctionInfo> Factory::NewSharedFunctionInfoForLiteral( in NewSharedFunctionInfoForLiteral()
3418 FunctionLiteral* literal, Handle<Script> script, bool is_toplevel) { in NewSharedFunctionInfoForLiteral()
3420 Handle<SharedFunctionInfo> shared = NewSharedFunctionInfoForBuiltin( in NewSharedFunctionInfoForLiteral()
3428 Handle<JSMessageObject> Factory::NewJSMessageObject( in NewJSMessageObject()
3429 MessageTemplate::Template message, Handle<Object> argument, in NewJSMessageObject()
3430 int start_position, int end_position, Handle<Script> script, in NewJSMessageObject()
3431 Handle<Object> stack_frames) { in NewJSMessageObject()
3432 Handle<Map> map = message_object_map(); in NewJSMessageObject()
3433 Handle<JSMessageObject> message_obj( in NewJSMessageObject()
3449 Handle<SharedFunctionInfo> Factory::NewSharedFunctionInfoForApiFunction( in NewSharedFunctionInfoForApiFunction()
3451 Handle<FunctionTemplateInfo> function_template_info, FunctionKind kind) { in NewSharedFunctionInfoForApiFunction()
3452 Handle<SharedFunctionInfo> shared = NewSharedFunctionInfo( in NewSharedFunctionInfoForApiFunction()
3457 Handle<SharedFunctionInfo> Factory::NewSharedFunctionInfoForBuiltin( in NewSharedFunctionInfoForBuiltin()
3459 Handle<SharedFunctionInfo> shared = NewSharedFunctionInfo( in NewSharedFunctionInfoForBuiltin()
3464 Handle<SharedFunctionInfo> Factory::NewSharedFunctionInfo( in NewSharedFunctionInfo()
3469 Handle<String> shared_name; in NewSharedFunctionInfo()
3475 Handle<Map> map = shared_function_info_map(); in NewSharedFunctionInfo()
3476 Handle<SharedFunctionInfo> share(SharedFunctionInfo::cast(New(map, TENURED)), in NewSharedFunctionInfo()
3485 Handle<HeapObject> function_data; in NewSharedFunctionInfo()
3529 Handle<WeakArrayList> noscript_list = noscript_shared_function_infos(); in NewSharedFunctionInfo()
3541 inline int NumberToStringCacheHash(Handle<FixedArray> cache, Smi* number) { in NumberToStringCacheHash()
3545 inline int NumberToStringCacheHash(Handle<FixedArray> cache, double number) { in NumberToStringCacheHash()
3552 Handle<String> Factory::NumberToStringCacheSet(Handle<Object> number, int hash, in NumberToStringCacheSet()
3557 Handle<String> js_string = in NumberToStringCacheSet()
3564 Handle<FixedArray> new_cache = NewFixedArray(full_size, TENURED); in NumberToStringCacheSet()
3574 Handle<Object> Factory::NumberToStringCacheGet(Object* number, int hash) { in NumberToStringCacheGet()
3579 return Handle<String>( in NumberToStringCacheGet()
3585 Handle<String> Factory::NumberToString(Handle<Object> number, in NumberToString()
3589 double double_value = Handle<HeapNumber>::cast(number)->value(); in NumberToString()
3599 Handle<Object> cached = NumberToStringCacheGet(*number, hash); in NumberToString()
3600 if (!cached->IsUndefined(isolate())) return Handle<String>::cast(cached); in NumberToString()
3610 Handle<String> Factory::NumberToString(Smi* number, bool check_cache) { in NumberToString()
3614 Handle<Object> cached = NumberToStringCacheGet(number, hash); in NumberToString()
3615 if (!cached->IsUndefined(isolate())) return Handle<String>::cast(cached); in NumberToString()
3626 Handle<DebugInfo> Factory::NewDebugInfo(Handle<SharedFunctionInfo> shared) { in NewDebugInfo()
3630 Handle<DebugInfo> debug_info = in NewDebugInfo()
3631 Handle<DebugInfo>::cast(NewStruct(DEBUG_INFO_TYPE, TENURED)); in NewDebugInfo()
3648 Handle<CoverageInfo> Factory::NewCoverageInfo( in NewCoverageInfo()
3653 Handle<CoverageInfo> info = in NewCoverageInfo()
3654 Handle<CoverageInfo>::cast(NewUninitializedFixedArray(length)); in NewCoverageInfo()
3664 Handle<BreakPointInfo> Factory::NewBreakPointInfo(int source_position) { in NewBreakPointInfo()
3665 Handle<BreakPointInfo> new_break_point_info = in NewBreakPointInfo()
3666 Handle<BreakPointInfo>::cast(NewStruct(TUPLE2_TYPE, TENURED)); in NewBreakPointInfo()
3672 Handle<BreakPoint> Factory::NewBreakPoint(int id, Handle<String> condition) { in NewBreakPoint()
3673 Handle<BreakPoint> new_break_point = in NewBreakPoint()
3674 Handle<BreakPoint>::cast(NewStruct(TUPLE2_TYPE, TENURED)); in NewBreakPoint()
3680 Handle<StackFrameInfo> Factory::NewStackFrameInfo() { in NewStackFrameInfo()
3681 Handle<StackFrameInfo> stack_frame_info = Handle<StackFrameInfo>::cast( in NewStackFrameInfo()
3693 Handle<SourcePositionTableWithFrameCache>
3695 Handle<ByteArray> source_position_table, in NewSourcePositionTableWithFrameCache()
3696 Handle<SimpleNumberDictionary> stack_frame_cache) { in NewSourcePositionTableWithFrameCache()
3697 Handle<SourcePositionTableWithFrameCache> in NewSourcePositionTableWithFrameCache()
3699 Handle<SourcePositionTableWithFrameCache>::cast( in NewSourcePositionTableWithFrameCache()
3708 Handle<JSObject> Factory::NewArgumentsObject(Handle<JSFunction> callee, in NewArgumentsObject()
3712 Handle<Map> map = strict_mode_callee ? isolate()->strict_arguments_map() in NewArgumentsObject()
3714 AllocationSiteUsageContext context(isolate(), Handle<AllocationSite>(), in NewArgumentsObject()
3717 Handle<JSObject> result = NewJSObjectFromMap(map); in NewArgumentsObject()
3718 Handle<Smi> value(Smi::FromInt(length), isolate()); in NewArgumentsObject()
3730 Handle<Map> Factory::ObjectLiteralMapFromCache(Handle<NativeContext> context, in ObjectLiteralMapFromCache()
3750 Handle<Object> maybe_cache(context->map_cache(), isolate()); in ObjectLiteralMapFromCache()
3757 Handle<WeakFixedArray> cache = Handle<WeakFixedArray>::cast(maybe_cache); in ObjectLiteralMapFromCache()
3768 Handle<WeakFixedArray> cache = Handle<WeakFixedArray>::cast(maybe_cache); in ObjectLiteralMapFromCache()
3769 Handle<Map> map = Map::Create(isolate(), number_of_properties); in ObjectLiteralMapFromCache()
3775 Handle<LoadHandler> Factory::NewLoadHandler(int data_count) { in NewLoadHandler()
3776 Handle<Map> map; in NewLoadHandler()
3794 Handle<StoreHandler> Factory::NewStoreHandler(int data_count) { in NewStoreHandler()
3795 Handle<Map> map; in NewStoreHandler()
3816 void Factory::SetRegExpAtomData(Handle<JSRegExp> regexp, JSRegExp::Type type, in SetRegExpAtomData()
3817 Handle<String> source, JSRegExp::Flags flags, in SetRegExpAtomData()
3818 Handle<Object> data) { in SetRegExpAtomData()
3819 Handle<FixedArray> store = NewFixedArray(JSRegExp::kAtomDataSize); in SetRegExpAtomData()
3828 void Factory::SetRegExpIrregexpData(Handle<JSRegExp> regexp, in SetRegExpIrregexpData()
3829 JSRegExp::Type type, Handle<String> source, in SetRegExpIrregexpData()
3831 Handle<FixedArray> store = NewFixedArray(JSRegExp::kIrregexpDataSize); in SetRegExpIrregexpData()
3844 Handle<RegExpMatchInfo> Factory::NewRegExpMatchInfo() { in NewRegExpMatchInfo()
3850 Handle<FixedArray> elems = NewFixedArray(kInitialSize); in NewRegExpMatchInfo()
3851 Handle<RegExpMatchInfo> result = Handle<RegExpMatchInfo>::cast(elems); in NewRegExpMatchInfo()
3862 Handle<Object> Factory::GlobalConstantFor(Handle<Name> name) { in GlobalConstantFor()
3868 return Handle<Object>::null(); in GlobalConstantFor()
3871 Handle<Object> Factory::ToBoolean(bool value) { in ToBoolean()
3875 Handle<String> Factory::ToPrimitiveHintString(ToPrimitiveHint hint) { in ToPrimitiveHintString()
3887 Handle<Map> Factory::CreateSloppyFunctionMap( in CreateSloppyFunctionMap()
3896 Handle<Map> map = NewMap( in CreateSloppyFunctionMap()
3902 Handle<JSFunction> empty_function; in CreateSloppyFunctionMap()
3930 Handle<Name> name = isolate()->factory()->name_string(); in CreateSloppyFunctionMap()
3964 Handle<Map> Factory::CreateStrictFunctionMap( in CreateStrictFunctionMap()
3965 FunctionMode function_mode, Handle<JSFunction> empty_function) { in CreateStrictFunctionMap()
3975 Handle<Map> map = NewMap( in CreateStrictFunctionMap()
4006 Handle<Name> name = isolate()->factory()->name_string(); in CreateStrictFunctionMap()
4021 Handle<Name> name = isolate()->factory()->home_object_symbol(); in CreateStrictFunctionMap()
4040 Handle<Map> Factory::CreateClassFunctionMap(Handle<JSFunction> empty_function) { in CreateClassFunctionMap()
4041 Handle<Map> map = NewMap(JS_FUNCTION_TYPE, JSFunction::kSizeWithPrototype); in CreateClassFunctionMap()
4074 Handle<JSPromise> Factory::NewJSPromiseWithoutHook(PretenureFlag pretenure) { in NewJSPromiseWithoutHook()
4075 Handle<JSPromise> promise = Handle<JSPromise>::cast( in NewJSPromiseWithoutHook()
4085 Handle<JSPromise> Factory::NewJSPromise(PretenureFlag pretenure) { in NewJSPromise()
4086 Handle<JSPromise> promise = NewJSPromiseWithoutHook(pretenure); in NewJSPromise()
4091 Handle<CallHandlerInfo> Factory::NewCallHandlerInfo(bool has_no_side_effect) { in NewCallHandlerInfo()
4092 Handle<Map> map = has_no_side_effect in NewCallHandlerInfo()
4095 Handle<CallHandlerInfo> info(CallHandlerInfo::cast(New(map, TENURED)), in NewCallHandlerInfo()
4106 Handle<String> name, in ForWasm()
4107 Handle<WasmExportedFunctionData> exported_function_data, Handle<Map> map) { in ForWasm()
4119 NewFunctionArgs NewFunctionArgs::ForBuiltin(Handle<String> name, in ForBuiltin()
4120 Handle<Map> map, int builtin_id) { in ForBuiltin()
4137 Handle<String> name, Handle<Map> map, LanguageMode language_mode) { in ForFunctionWithoutCode()
4152 Handle<String> name, Handle<Object> prototype, InstanceType type, in ForBuiltinWithPrototype()
4176 Handle<String> name, int builtin_id, LanguageMode language_mode) { in ForBuiltinWithoutPrototype()
4210 Handle<Map> NewFunctionArgs::GetMap(Isolate* isolate) const { in GetMap()