Lines Matching refs:Handle

18 Handle<T> Factory::New(Handle<Map> map, AllocationSpace space) {  in New()
27 Handle<T> Factory::New(Handle<Map> map, in New()
29 Handle<AllocationSite> allocation_site) { in New()
37 Handle<HeapObject> Factory::NewFillerObject(int size, in NewFillerObject()
47 Handle<Box> Factory::NewBox(Handle<Object> value) { in NewBox()
48 Handle<Box> result = Handle<Box>::cast(NewStruct(BOX_TYPE)); in NewBox()
54 Handle<Oddball> Factory::NewOddball(Handle<Map> map, in NewOddball()
56 Handle<Object> to_number, in NewOddball()
58 Handle<Oddball> oddball = New<Oddball>(map, OLD_POINTER_SPACE); in NewOddball()
64 Handle<FixedArray> Factory::NewFixedArray(int size, PretenureFlag pretenure) { in NewFixedArray()
73 Handle<FixedArray> Factory::NewFixedArrayWithHoles(int size, in NewFixedArrayWithHoles()
85 Handle<FixedArray> Factory::NewUninitializedFixedArray(int size) { in NewUninitializedFixedArray()
93 Handle<FixedArrayBase> Factory::NewFixedDoubleArray(int size, in NewFixedDoubleArray()
103 Handle<FixedArrayBase> Factory::NewFixedDoubleArrayWithHoles( in NewFixedDoubleArrayWithHoles()
107 Handle<FixedArrayBase> array = NewFixedDoubleArray(size, pretenure); in NewFixedDoubleArrayWithHoles()
109 Handle<FixedDoubleArray> double_array = in NewFixedDoubleArrayWithHoles()
110 Handle<FixedDoubleArray>::cast(array); in NewFixedDoubleArrayWithHoles()
119 Handle<ConstantPoolArray> Factory::NewConstantPoolArray( in NewConstantPoolArray()
129 Handle<ConstantPoolArray> Factory::NewExtendedConstantPoolArray( in NewExtendedConstantPoolArray()
141 Handle<OrderedHashSet> Factory::NewOrderedHashSet() { in NewOrderedHashSet()
146 Handle<OrderedHashMap> Factory::NewOrderedHashMap() { in NewOrderedHashMap()
151 Handle<AccessorPair> Factory::NewAccessorPair() { in NewAccessorPair()
152 Handle<AccessorPair> accessors = in NewAccessorPair()
153 Handle<AccessorPair>::cast(NewStruct(ACCESSOR_PAIR_TYPE)); in NewAccessorPair()
160 Handle<TypeFeedbackInfo> Factory::NewTypeFeedbackInfo() { in NewTypeFeedbackInfo()
161 Handle<TypeFeedbackInfo> info = in NewTypeFeedbackInfo()
162 Handle<TypeFeedbackInfo>::cast(NewStruct(TYPE_FEEDBACK_INFO_TYPE)); in NewTypeFeedbackInfo()
169 Handle<String> Factory::InternalizeUtf8String(Vector<const char> string) { in InternalizeUtf8String()
176 Handle<String> Factory::InternalizeString(Handle<String> string) { in InternalizeString()
182 Handle<String> Factory::InternalizeOneByteString(Vector<const uint8_t> string) { in InternalizeOneByteString()
188 Handle<String> Factory::InternalizeOneByteString( in InternalizeOneByteString()
189 Handle<SeqOneByteString> string, int from, int length) { in InternalizeOneByteString()
195 Handle<String> Factory::InternalizeTwoByteString(Vector<const uc16> string) { in InternalizeTwoByteString()
202 Handle<String> Factory::InternalizeStringWithKey(StringTableKey* key) { in InternalizeStringWithKey()
211 Handle<SeqOneByteString> result; in NewStringFromOneByte()
246 Handle<SeqTwoByteString> result; in NewStringFromUtf8()
269 Handle<SeqOneByteString> result; in NewStringFromTwoByte()
278 Handle<SeqTwoByteString> result; in NewStringFromTwoByte()
290 Handle<String> Factory::NewInternalizedStringFromUtf8(Vector<const char> str, in NewInternalizedStringFromUtf8()
301 MUST_USE_RESULT Handle<String> Factory::NewOneByteInternalizedString( in NewOneByteInternalizedString()
311 MUST_USE_RESULT Handle<String> Factory::NewOneByteInternalizedSubString( in NewOneByteInternalizedSubString()
312 Handle<SeqOneByteString> string, int offset, int length, in NewOneByteInternalizedSubString()
322 MUST_USE_RESULT Handle<String> Factory::NewTwoByteInternalizedString( in NewTwoByteInternalizedString()
332 Handle<String> Factory::NewInternalizedStringImpl( in NewInternalizedStringImpl()
333 Handle<String> string, int chars, uint32_t hash_field) { in NewInternalizedStringImpl()
343 Handle<String> string) { in InternalizedStringMapForString()
392 Handle<String> Factory::LookupSingleCharacterStringFromCode(uint32_t code) { in LookupSingleCharacterStringFromCode()
403 Handle<String> result = in LookupSingleCharacterStringFromCode()
410 Handle<SeqTwoByteString> result = NewRawTwoByteString(1).ToHandleChecked(); in LookupSingleCharacterStringFromCode()
423 static inline Handle<String> MakeOrFindTwoCharacterString(Isolate* isolate, in MakeOrFindTwoCharacterString()
429 Handle<String> result; in MakeOrFindTwoCharacterString()
442 Handle<SeqOneByteString> str = in MakeOrFindTwoCharacterString()
449 Handle<SeqTwoByteString> str = in MakeOrFindTwoCharacterString()
460 Handle<String> ConcatStringContent(Handle<StringType> result, in ConcatStringContent()
461 Handle<String> first, in ConcatStringContent()
462 Handle<String> second) { in ConcatStringContent()
471 MaybeHandle<String> Factory::NewConsString(Handle<String> left, in NewConsString()
472 Handle<String> right) { in NewConsString()
516 Handle<SeqOneByteString> result = in NewConsString()
523 ? Handle<ExternalOneByteString>::cast(left)->GetChars() in NewConsString()
524 : Handle<SeqOneByteString>::cast(left)->GetChars(); in NewConsString()
528 ? Handle<ExternalOneByteString>::cast(right)->GetChars() in NewConsString()
529 : Handle<SeqOneByteString>::cast(right)->GetChars(); in NewConsString()
541 Handle<Map> map = (is_one_byte || is_one_byte_data_in_two_byte_string) in NewConsString()
544 Handle<ConsString> result = New<ConsString>(map, NEW_SPACE); in NewConsString()
557 Handle<String> Factory::NewProperSubString(Handle<String> str, in NewProperSubString()
583 Handle<SeqOneByteString> result = in NewProperSubString()
590 Handle<SeqTwoByteString> result = in NewProperSubString()
602 Handle<SlicedString> slice = Handle<SlicedString>::cast(str); in NewProperSubString()
603 str = Handle<String>(slice->parent(), isolate()); in NewProperSubString()
608 Handle<Map> map = str->IsOneByteRepresentation() in NewProperSubString()
611 Handle<SlicedString> slice = New<SlicedString>(map, NEW_SPACE); in NewProperSubString()
628 Handle<Map> map = external_one_byte_string_map(); in NewExternalStringFromOneByte()
629 Handle<ExternalOneByteString> external_string = in NewExternalStringFromOneByte()
651 Handle<Map> map = is_one_byte ? in NewExternalStringFromTwoByte()
653 Handle<ExternalTwoByteString> external_string = in NewExternalStringFromTwoByte()
663 Handle<Symbol> Factory::NewSymbol() { in NewSymbol()
671 Handle<Symbol> Factory::NewPrivateSymbol() { in NewPrivateSymbol()
672 Handle<Symbol> symbol = NewSymbol(); in NewPrivateSymbol()
678 Handle<Symbol> Factory::NewPrivateOwnSymbol() { in NewPrivateOwnSymbol()
679 Handle<Symbol> symbol = NewSymbol(); in NewPrivateOwnSymbol()
686 Handle<Context> Factory::NewNativeContext() { in NewNativeContext()
687 Handle<FixedArray> array = NewFixedArray(Context::NATIVE_CONTEXT_SLOTS); in NewNativeContext()
689 Handle<Context> context = Handle<Context>::cast(array); in NewNativeContext()
696 Handle<Context> Factory::NewGlobalContext(Handle<JSFunction> function, in NewGlobalContext()
697 Handle<ScopeInfo> scope_info) { in NewGlobalContext()
698 Handle<FixedArray> array = in NewGlobalContext()
701 Handle<Context> context = Handle<Context>::cast(array); in NewGlobalContext()
711 Handle<Context> Factory::NewModuleContext(Handle<ScopeInfo> scope_info) { in NewModuleContext()
712 Handle<FixedArray> array = in NewModuleContext()
716 Handle<Context> context = Handle<Context>::cast(array); in NewModuleContext()
722 Handle<Context> Factory::NewFunctionContext(int length, in NewFunctionContext()
723 Handle<JSFunction> function) { in NewFunctionContext()
725 Handle<FixedArray> array = NewFixedArray(length); in NewFunctionContext()
727 Handle<Context> context = Handle<Context>::cast(array); in NewFunctionContext()
736 Handle<Context> Factory::NewCatchContext(Handle<JSFunction> function, in NewCatchContext()
737 Handle<Context> previous, in NewCatchContext()
738 Handle<String> name, in NewCatchContext()
739 Handle<Object> thrown_object) { in NewCatchContext()
741 Handle<FixedArray> array = NewFixedArray(Context::MIN_CONTEXT_SLOTS + 1); in NewCatchContext()
743 Handle<Context> context = Handle<Context>::cast(array); in NewCatchContext()
753 Handle<Context> Factory::NewWithContext(Handle<JSFunction> function, in NewWithContext()
754 Handle<Context> previous, in NewWithContext()
755 Handle<JSReceiver> extension) { in NewWithContext()
756 Handle<FixedArray> array = NewFixedArray(Context::MIN_CONTEXT_SLOTS); in NewWithContext()
758 Handle<Context> context = Handle<Context>::cast(array); in NewWithContext()
767 Handle<Context> Factory::NewBlockContext(Handle<JSFunction> function, in NewBlockContext()
768 Handle<Context> previous, in NewBlockContext()
769 Handle<ScopeInfo> scope_info) { in NewBlockContext()
770 Handle<FixedArray> array = in NewBlockContext()
773 Handle<Context> context = Handle<Context>::cast(array); in NewBlockContext()
782 Handle<Struct> Factory::NewStruct(InstanceType type) { in NewStruct()
790 Handle<CodeCache> Factory::NewCodeCache() { in NewCodeCache()
791 Handle<CodeCache> code_cache = in NewCodeCache()
792 Handle<CodeCache>::cast(NewStruct(CODE_CACHE_TYPE)); in NewCodeCache()
799 Handle<AliasedArgumentsEntry> Factory::NewAliasedArgumentsEntry( in NewAliasedArgumentsEntry()
801 Handle<AliasedArgumentsEntry> entry = Handle<AliasedArgumentsEntry>::cast( in NewAliasedArgumentsEntry()
808 Handle<DeclaredAccessorDescriptor> Factory::NewDeclaredAccessorDescriptor() { in NewDeclaredAccessorDescriptor()
809 return Handle<DeclaredAccessorDescriptor>::cast( in NewDeclaredAccessorDescriptor()
814 Handle<DeclaredAccessorInfo> Factory::NewDeclaredAccessorInfo() { in NewDeclaredAccessorInfo()
815 Handle<DeclaredAccessorInfo> info = in NewDeclaredAccessorInfo()
816 Handle<DeclaredAccessorInfo>::cast( in NewDeclaredAccessorInfo()
823 Handle<ExecutableAccessorInfo> Factory::NewExecutableAccessorInfo() { in NewExecutableAccessorInfo()
824 Handle<ExecutableAccessorInfo> info = in NewExecutableAccessorInfo()
825 Handle<ExecutableAccessorInfo>::cast( in NewExecutableAccessorInfo()
832 Handle<Script> Factory::NewScript(Handle<String> source) { in NewScript()
840 Handle<Foreign> wrapper = NewForeign(0, TENURED); in NewScript()
841 Handle<Script> script = Handle<Script>::cast(NewStruct(SCRIPT_TYPE)); in NewScript()
859 Handle<Foreign> Factory::NewForeign(Address addr, PretenureFlag pretenure) { in NewForeign()
866 Handle<Foreign> Factory::NewForeign(const AccessorDescriptor* desc) { in NewForeign()
871 Handle<ByteArray> Factory::NewByteArray(int length, PretenureFlag pretenure) { in NewByteArray()
880 Handle<ExternalArray> Factory::NewExternalArray(int length, in NewExternalArray()
895 Handle<FixedTypedArrayBase> Factory::NewFixedTypedArray( in NewFixedTypedArray()
909 Handle<Cell> Factory::NewCell(Handle<Object> value) { in NewCell()
918 Handle<PropertyCell> Factory::NewPropertyCellWithHole() { in NewPropertyCellWithHole()
926 Handle<PropertyCell> Factory::NewPropertyCell(Handle<Object> value) { in NewPropertyCell()
928 Handle<PropertyCell> cell = NewPropertyCellWithHole(); in NewPropertyCell()
934 Handle<AllocationSite> Factory::NewAllocationSite() { in NewAllocationSite()
935 Handle<Map> map = allocation_site_map(); in NewAllocationSite()
936 Handle<AllocationSite> site = New<AllocationSite>(map, OLD_POINTER_SPACE); in NewAllocationSite()
946 Handle<Map> Factory::NewMap(InstanceType type, in NewMap()
956 Handle<JSObject> Factory::CopyJSObject(Handle<JSObject> object) { in CopyJSObject()
963 Handle<JSObject> Factory::CopyJSObjectWithAllocationSite( in CopyJSObjectWithAllocationSite()
964 Handle<JSObject> object, in CopyJSObjectWithAllocationSite()
965 Handle<AllocationSite> site) { in CopyJSObjectWithAllocationSite()
974 Handle<FixedArray> Factory::CopyFixedArrayWithMap(Handle<FixedArray> array, in CopyFixedArrayWithMap()
975 Handle<Map> map) { in CopyFixedArrayWithMap()
982 Handle<FixedArray> Factory::CopyFixedArray(Handle<FixedArray> array) { in CopyFixedArray()
989 Handle<FixedArray> Factory::CopyAndTenureFixedCOWArray( in CopyAndTenureFixedCOWArray()
990 Handle<FixedArray> array) { in CopyAndTenureFixedCOWArray()
998 Handle<FixedDoubleArray> Factory::CopyFixedDoubleArray( in CopyFixedDoubleArray()
999 Handle<FixedDoubleArray> array) { in CopyFixedDoubleArray()
1006 Handle<ConstantPoolArray> Factory::CopyConstantPoolArray( in CopyConstantPoolArray()
1007 Handle<ConstantPoolArray> array) { in CopyConstantPoolArray()
1014 Handle<Object> Factory::NewNumber(double value, in NewNumber()
1031 Handle<Object> Factory::NewNumberFromInt(int32_t value, in NewNumberFromInt()
1039 Handle<Object> Factory::NewNumberFromUint(uint32_t value, in NewNumberFromUint()
1049 Handle<HeapNumber> Factory::NewHeapNumber(double value, in NewHeapNumber()
1060 Vector<Handle<Object> > args) { in NewTypeError()
1065 MaybeHandle<Object> Factory::NewTypeError(Handle<String> message) { in NewTypeError()
1071 Vector<Handle<Object> > args) { in NewRangeError()
1076 MaybeHandle<Object> Factory::NewRangeError(Handle<String> message) { in NewRangeError()
1082 Handle<JSArray> args) { in NewSyntaxError()
1087 MaybeHandle<Object> Factory::NewSyntaxError(Handle<String> message) { in NewSyntaxError()
1093 Vector<Handle<Object> > args) { in NewReferenceError()
1099 Handle<JSArray> args) { in NewReferenceError()
1104 MaybeHandle<Object> Factory::NewReferenceError(Handle<String> message) { in NewReferenceError()
1110 Vector<Handle<Object> > args) { in NewError()
1113 Handle<FixedArray> array = NewFixedArray(args.length()); in NewError()
1117 Handle<JSArray> object = NewJSArrayWithElements(array); in NewError()
1118 Handle<Object> result; in NewError()
1126 Vector<Handle<Object> > args) { in NewEvalError()
1132 Vector<Handle<Object> > args) { in NewError()
1137 Handle<String> Factory::EmergencyNewError(const char* message, in EmergencyNewError()
1138 Handle<JSArray> args) { in EmergencyNewError()
1154 Handle<String> arg_str = Handle<String>::cast( in EmergencyNewError()
1174 Handle<JSArray> args) { in NewError()
1175 Handle<String> make_str = InternalizeUtf8String(maker); in NewError()
1176 Handle<Object> fun_obj = Object::GetProperty( in NewError()
1183 Handle<JSFunction> fun = Handle<JSFunction>::cast(fun_obj); in NewError()
1184 Handle<Object> message_obj = InternalizeUtf8String(message); in NewError()
1185 Handle<Object> argv[] = { message_obj, args }; in NewError()
1189 Handle<Object> result; in NewError()
1202 MaybeHandle<Object> Factory::NewError(Handle<String> message) { in NewError()
1208 Handle<String> message) { in NewError()
1209 Handle<String> constr = InternalizeUtf8String(constructor); in NewError()
1210 Handle<JSFunction> fun = Handle<JSFunction>::cast(Object::GetProperty( in NewError()
1212 Handle<Object> argv[] = { message }; in NewError()
1216 Handle<Object> result; in NewError()
1229 void Factory::InitializeFunction(Handle<JSFunction> function, in InitializeFunction()
1230 Handle<SharedFunctionInfo> info, in InitializeFunction()
1231 Handle<Context> context) { in InitializeFunction()
1243 Handle<JSFunction> Factory::NewFunction(Handle<Map> map, in NewFunction()
1244 Handle<SharedFunctionInfo> info, in NewFunction()
1245 Handle<Context> context, in NewFunction()
1248 Handle<JSFunction> result = New<JSFunction>(map, space); in NewFunction()
1254 Handle<JSFunction> Factory::NewFunction(Handle<Map> map, in NewFunction()
1255 Handle<String> name, in NewFunction()
1257 Handle<Context> context(isolate()->native_context()); in NewFunction()
1258 Handle<SharedFunctionInfo> info = NewSharedFunctionInfo(name, code); in NewFunction()
1269 Handle<JSFunction> Factory::NewFunction(Handle<String> name) { in NewFunction()
1275 Handle<JSFunction> Factory::NewFunctionWithoutPrototype(Handle<String> name, in NewFunctionWithoutPrototype()
1276 Handle<Code> code) { in NewFunctionWithoutPrototype()
1282 Handle<JSFunction> Factory::NewFunction(Handle<String> name, in NewFunction()
1283 Handle<Code> code, in NewFunction()
1284 Handle<Object> prototype, in NewFunction()
1286 Handle<Map> map = read_only_prototype in NewFunction()
1289 Handle<JSFunction> result = NewFunction(map, name, code); in NewFunction()
1295 Handle<JSFunction> Factory::NewFunction(Handle<String> name, in NewFunction()
1296 Handle<Code> code, in NewFunction()
1297 Handle<Object> prototype, in NewFunction()
1302 Handle<JSFunction> function = NewFunction( in NewFunction()
1305 Handle<Map> initial_map = NewMap( in NewFunction()
1312 Handle<JSReceiver>::cast(prototype)); in NewFunction()
1318 Handle<JSFunction> Factory::NewFunction(Handle<String> name, in NewFunction()
1319 Handle<Code> code, in NewFunction()
1326 Handle<JSObject> Factory::NewFunctionPrototype(Handle<JSFunction> function) { in NewFunctionPrototype()
1329 Handle<Context> native_context(function->context()->native_context()); in NewFunctionPrototype()
1330 Handle<Map> new_map; in NewFunctionPrototype()
1338 Handle<JSFunction> object_function(native_context->object_function()); in NewFunctionPrototype()
1344 Handle<JSObject> prototype = NewJSObjectFromMap(new_map); in NewFunctionPrototype()
1354 Handle<JSFunction> Factory::NewFunctionFromSharedFunctionInfo( in NewFunctionFromSharedFunctionInfo()
1355 Handle<SharedFunctionInfo> info, in NewFunctionFromSharedFunctionInfo()
1356 Handle<Context> context, in NewFunctionFromSharedFunctionInfo()
1359 Handle<Map> map(Map::cast(context->native_context()->get(map_index))); in NewFunctionFromSharedFunctionInfo()
1360 Handle<JSFunction> result = NewFunction(map, info, context, pretenure); in NewFunctionFromSharedFunctionInfo()
1370 Handle<FixedArray> literals = NewFixedArray(number_of_literals, pretenure); in NewFunctionFromSharedFunctionInfo()
1404 Handle<ScopeInfo> Factory::NewScopeInfo(int length) { in NewScopeInfo()
1405 Handle<FixedArray> array = NewFixedArray(length, TENURED); in NewScopeInfo()
1407 Handle<ScopeInfo> scope_info = Handle<ScopeInfo>::cast(array); in NewScopeInfo()
1412 Handle<JSObject> Factory::NewExternal(void* value) { in NewExternal()
1413 Handle<Foreign> foreign = NewForeign(static_cast<Address>(value)); in NewExternal()
1414 Handle<JSObject> external = NewJSObjectFromMap(external_map()); in NewExternal()
1420 Handle<Code> Factory::NewCodeRaw(int object_size, bool immovable) { in NewCodeRaw()
1427 Handle<Code> Factory::NewCode(const CodeDesc& desc, in NewCode()
1429 Handle<Object> self_ref, in NewCode()
1434 Handle<ByteArray> reloc_info = NewByteArray(desc.reloc_size, TENURED); in NewCode()
1435 Handle<ConstantPoolArray> constant_pool = in NewCode()
1442 Handle<Code> code = NewCodeRaw(obj_size, immovable); in NewCode()
1493 Handle<Code> Factory::CopyCode(Handle<Code> code) { in CopyCode()
1500 Handle<Code> Factory::CopyCode(Handle<Code> code, Vector<byte> reloc_info) { in CopyCode()
1507 Handle<JSObject> Factory::NewJSObject(Handle<JSFunction> constructor, in NewJSObject()
1516 Handle<JSObject> Factory::NewJSObjectWithMemento( in NewJSObjectWithMemento()
1517 Handle<JSFunction> constructor, in NewJSObjectWithMemento()
1518 Handle<AllocationSite> site) { in NewJSObjectWithMemento()
1527 Handle<JSModule> Factory::NewJSModule(Handle<Context> context, in NewJSModule()
1528 Handle<ScopeInfo> scope_info) { in NewJSModule()
1530 Handle<Map> map = NewMap(JS_MODULE_TYPE, JSModule::kSize); in NewJSModule()
1532 Handle<JSModule> module = in NewJSModule()
1533 Handle<JSModule>::cast(NewJSObjectFromMap(map, TENURED)); in NewJSModule()
1540 Handle<GlobalObject> Factory::NewGlobalObject(Handle<JSFunction> constructor) { in NewGlobalObject()
1542 Handle<Map> map(constructor->initial_map()); in NewGlobalObject()
1562 Handle<NameDictionary> dictionary = in NewGlobalObject()
1567 Handle<DescriptorArray> descs(map->instance_descriptors()); in NewGlobalObject()
1572 Handle<Name> name(descs->GetKey(i)); in NewGlobalObject()
1573 Handle<Object> value(descs->GetCallbacksObject(i), isolate()); in NewGlobalObject()
1574 Handle<PropertyCell> cell = NewPropertyCell(value); in NewGlobalObject()
1580 Handle<GlobalObject> global = New<GlobalObject>(map, OLD_POINTER_SPACE); in NewGlobalObject()
1584 Handle<Map> new_map = Map::CopyDropDescriptors(map); in NewGlobalObject()
1597 Handle<JSObject> Factory::NewJSObjectFromMap( in NewJSObjectFromMap()
1598 Handle<Map> map, in NewJSObjectFromMap()
1601 Handle<AllocationSite> allocation_site) { in NewJSObjectFromMap()
1613 Handle<JSArray> Factory::NewJSArray(ElementsKind elements_kind, in NewJSArray()
1620 return Handle<JSArray>::cast(NewJSObjectFromMap(handle(map), pretenure)); in NewJSArray()
1624 Handle<JSArray> Factory::NewJSArray(ElementsKind elements_kind, in NewJSArray()
1629 Handle<JSArray> array = NewJSArray(elements_kind, pretenure); in NewJSArray()
1635 Handle<JSArray> Factory::NewJSArrayWithElements(Handle<FixedArrayBase> elements, in NewJSArrayWithElements()
1640 Handle<JSArray> array = NewJSArray(elements_kind, pretenure); in NewJSArrayWithElements()
1649 void Factory::NewJSArrayStorage(Handle<JSArray> array, in NewJSArrayStorage()
1661 Handle<FixedArrayBase> elms; in NewJSArrayStorage()
1685 Handle<JSGeneratorObject> Factory::NewJSGeneratorObject( in NewJSGeneratorObject()
1686 Handle<JSFunction> function) { in NewJSGeneratorObject()
1689 Handle<Map> map(function->initial_map()); in NewJSGeneratorObject()
1698 Handle<JSArrayBuffer> Factory::NewJSArrayBuffer() { in NewJSArrayBuffer()
1699 Handle<JSFunction> array_buffer_fun( in NewJSArrayBuffer()
1708 Handle<JSDataView> Factory::NewJSDataView() { in NewJSDataView()
1709 Handle<JSFunction> data_view_fun( in NewJSDataView()
1736 Handle<JSTypedArray> Factory::NewJSTypedArray(ExternalArrayType type) { in NewJSTypedArray()
1737 Handle<JSFunction> typed_array_fun_handle(GetTypedArrayFun(type, isolate())); in NewJSTypedArray()
1746 Handle<JSProxy> Factory::NewJSProxy(Handle<Object> handler, in NewJSProxy()
1747 Handle<Object> prototype) { in NewJSProxy()
1751 Handle<Map> map = NewMap(JS_PROXY_TYPE, JSProxy::kSize); in NewJSProxy()
1755 Handle<JSProxy> result = New<JSProxy>(map, NEW_SPACE); in NewJSProxy()
1763 Handle<JSProxy> Factory::NewJSFunctionProxy(Handle<Object> handler, in NewJSFunctionProxy()
1764 Handle<Object> call_trap, in NewJSFunctionProxy()
1765 Handle<Object> construct_trap, in NewJSFunctionProxy()
1766 Handle<Object> prototype) { in NewJSFunctionProxy()
1770 Handle<Map> map = NewMap(JS_FUNCTION_PROXY_TYPE, JSFunctionProxy::kSize); in NewJSFunctionProxy()
1774 Handle<JSFunctionProxy> result = New<JSFunctionProxy>(map, NEW_SPACE); in NewJSFunctionProxy()
1784 void Factory::ReinitializeJSProxy(Handle<JSProxy> proxy, InstanceType type, in ReinitializeJSProxy()
1790 Handle<Map> map = NewMap(type, size); in ReinitializeJSProxy()
1800 Handle<FixedArray> properties = NewFixedArray(prop_size, TENURED); in ReinitializeJSProxy()
1807 Handle<String> name = InternalizeStringWithKey(&key); in ReinitializeJSProxy()
1824 Handle<JSObject> jsobj = Handle<JSObject>::cast(proxy); in ReinitializeJSProxy()
1832 Handle<Context> context(isolate()->native_context()); in ReinitializeJSProxy()
1837 Handle<JSFunction> js_function = Handle<JSFunction>::cast(proxy); in ReinitializeJSProxy()
1846 void Factory::ReinitializeJSGlobalProxy(Handle<JSGlobalProxy> object, in ReinitializeJSGlobalProxy()
1847 Handle<JSFunction> constructor) { in ReinitializeJSGlobalProxy()
1849 Handle<Map> map(constructor->initial_map(), isolate()); in ReinitializeJSGlobalProxy()
1852 Handle<Object> hash(object->hash(), isolate()); in ReinitializeJSGlobalProxy()
1861 Handle<FixedArray> properties = NewFixedArray(prop_size, TENURED); in ReinitializeJSGlobalProxy()
1879 void Factory::BecomeJSObject(Handle<JSProxy> proxy) { in BecomeJSObject()
1884 void Factory::BecomeJSFunction(Handle<JSProxy> proxy) { in BecomeJSFunction()
1889 Handle<TypeFeedbackVector> Factory::NewTypeFeedbackVector(int slot_count) { in NewTypeFeedbackVector()
1895 return Handle<TypeFeedbackVector>::cast(empty_fixed_array()); in NewTypeFeedbackVector()
1906 Handle<SharedFunctionInfo> Factory::NewSharedFunctionInfo( in NewSharedFunctionInfo()
1907 Handle<String> name, int number_of_literals, FunctionKind kind, in NewSharedFunctionInfo()
1908 Handle<Code> code, Handle<ScopeInfo> scope_info, in NewSharedFunctionInfo()
1909 Handle<TypeFeedbackVector> feedback_vector) { in NewSharedFunctionInfo()
1911 Handle<SharedFunctionInfo> shared = NewSharedFunctionInfo(name, code); in NewSharedFunctionInfo()
1931 Handle<JSMessageObject> Factory::NewJSMessageObject( in NewJSMessageObject()
1932 Handle<String> type, in NewJSMessageObject()
1933 Handle<JSArray> arguments, in NewJSMessageObject()
1936 Handle<Object> script, in NewJSMessageObject()
1937 Handle<Object> stack_frames) { in NewJSMessageObject()
1938 Handle<Map> map = message_object_map(); in NewJSMessageObject()
1939 Handle<JSMessageObject> message = New<JSMessageObject>(map, NEW_SPACE); in NewJSMessageObject()
1953 Handle<SharedFunctionInfo> Factory::NewSharedFunctionInfo( in NewSharedFunctionInfo()
1954 Handle<String> name, in NewSharedFunctionInfo()
1956 Handle<Map> map = shared_function_info_map(); in NewSharedFunctionInfo()
1957 Handle<SharedFunctionInfo> share = New<SharedFunctionInfo>(map, in NewSharedFunctionInfo()
1962 Handle<Code> code; in NewSharedFunctionInfo()
1977 Handle<TypeFeedbackVector> feedback_vector = NewTypeFeedbackVector(0); in NewSharedFunctionInfo()
1999 static inline int NumberCacheHash(Handle<FixedArray> cache, in NumberCacheHash()
2000 Handle<Object> number) { in NumberCacheHash()
2003 return Handle<Smi>::cast(number)->value() & mask; in NumberCacheHash()
2012 Handle<Object> Factory::GetNumberStringCache(Handle<Object> number) { in GetNumberStringCache()
2018 return Handle<String>( in GetNumberStringCache()
2025 void Factory::SetNumberStringCache(Handle<Object> number, in SetNumberStringCache()
2026 Handle<String> string) { in SetNumberStringCache()
2037 Handle<FixedArray> new_cache = NewFixedArray(full_size, TENURED); in SetNumberStringCache()
2047 Handle<String> Factory::NumberToString(Handle<Object> number, in NumberToString()
2051 Handle<Object> cached = GetNumberStringCache(number); in NumberToString()
2052 if (!cached->IsUndefined()) return Handle<String>::cast(cached); in NumberToString()
2059 int num = Handle<Smi>::cast(number)->value(); in NumberToString()
2062 double num = Handle<HeapNumber>::cast(number)->value(); in NumberToString()
2068 Handle<String> js_string = NewStringFromAsciiChecked(str, TENURED); in NumberToString()
2074 Handle<DebugInfo> Factory::NewDebugInfo(Handle<SharedFunctionInfo> shared) { in NewDebugInfo()
2076 Handle<Code> code(shared->code()); in NewDebugInfo()
2080 Handle<Code> original_code(*Factory::CopyCode(code)); in NewDebugInfo()
2085 Handle<FixedArray> break_points( in NewDebugInfo()
2091 Handle<DebugInfo> debug_info = in NewDebugInfo()
2092 Handle<DebugInfo>::cast(NewStruct(DEBUG_INFO_TYPE)); in NewDebugInfo()
2105 Handle<JSObject> Factory::NewArgumentsObject(Handle<JSFunction> callee, in NewArgumentsObject()
2108 Handle<Map> map = strict_mode_callee ? isolate()->strict_arguments_map() in NewArgumentsObject()
2111 AllocationSiteUsageContext context(isolate(), Handle<AllocationSite>(), in NewArgumentsObject()
2114 Handle<JSObject> result = NewJSObjectFromMap(map); in NewArgumentsObject()
2115 Handle<Smi> value(Smi::FromInt(length), isolate()); in NewArgumentsObject()
2124 Handle<JSFunction> Factory::CreateApiFunction( in CreateApiFunction()
2125 Handle<FunctionTemplateInfo> obj, in CreateApiFunction()
2126 Handle<Object> prototype, in CreateApiFunction()
2128 Handle<Code> code = isolate()->builtins()->HandleApiCall(); in CreateApiFunction()
2129 Handle<Code> construct_stub = isolate()->builtins()->JSConstructStubApi(); in CreateApiFunction()
2131 Handle<JSFunction> result; in CreateApiFunction()
2137 Handle<ObjectTemplateInfo> instance_template = in CreateApiFunction()
2138 Handle<ObjectTemplateInfo>( in CreateApiFunction()
2172 Handle<Object> class_name(obj->class_name(), isolate()); in CreateApiFunction()
2205 Handle<Map> map(result->initial_map()); in CreateApiFunction()
2246 Handle<Object> props_handle(props, isolate()); in CreateApiFunction()
2254 Handle<Object> props_handle(props, isolate()); in CreateApiFunction()
2268 Handle<FixedArray> array; in CreateApiFunction()
2276 Handle<ObjectTemplateInfo> instance = in CreateApiFunction()
2277 Handle<ObjectTemplateInfo>( in CreateApiFunction()
2279 Handle<Object> props = Handle<Object>(instance->property_accessors(), in CreateApiFunction()
2287 Handle<Object> props = Handle<Object>(obj->property_accessors(), in CreateApiFunction()
2293 Handle<Object> parent = Handle<Object>(obj->parent_template(), isolate()); in CreateApiFunction()
2295 obj = Handle<FunctionTemplateInfo>::cast(parent); in CreateApiFunction()
2300 Handle<AccessorInfo> accessor(AccessorInfo::cast(array->get(i))); in CreateApiFunction()
2309 Handle<MapCache> Factory::AddToMapCache(Handle<Context> context, in AddToMapCache()
2310 Handle<FixedArray> keys, in AddToMapCache()
2311 Handle<Map> map) { in AddToMapCache()
2312 Handle<MapCache> map_cache = handle(MapCache::cast(context->map_cache())); in AddToMapCache()
2313 Handle<MapCache> result = MapCache::Put(map_cache, keys, map); in AddToMapCache()
2319 Handle<Map> Factory::ObjectLiteralMapFromCache(Handle<Context> context, in ObjectLiteralMapFromCache()
2320 Handle<FixedArray> keys) { in ObjectLiteralMapFromCache()
2323 Handle<MapCache> new_cache = MapCache::New(isolate(), 24); in ObjectLiteralMapFromCache()
2327 Handle<MapCache> cache = in ObjectLiteralMapFromCache()
2328 Handle<MapCache>(MapCache::cast(context->map_cache())); in ObjectLiteralMapFromCache()
2329 Handle<Object> result = Handle<Object>(cache->Lookup(*keys), isolate()); in ObjectLiteralMapFromCache()
2330 if (result->IsMap()) return Handle<Map>::cast(result); in ObjectLiteralMapFromCache()
2334 Handle<Map> map = length == 0 in ObjectLiteralMapFromCache()
2342 void Factory::SetRegExpAtomData(Handle<JSRegExp> regexp, in SetRegExpAtomData()
2344 Handle<String> source, in SetRegExpAtomData()
2346 Handle<Object> data) { in SetRegExpAtomData()
2347 Handle<FixedArray> store = NewFixedArray(JSRegExp::kAtomDataSize); in SetRegExpAtomData()
2356 void Factory::SetRegExpIrregexpData(Handle<JSRegExp> regexp, in SetRegExpIrregexpData()
2358 Handle<String> source, in SetRegExpIrregexpData()
2361 Handle<FixedArray> store = NewFixedArray(JSRegExp::kIrregexpDataSize); in SetRegExpIrregexpData()
2379 Handle<FunctionTemplateInfo> desc, Handle<JSObject> instance) { in ConfigureInstance()
2382 Handle<Object> instance_template(desc->instance_template(), isolate()); in ConfigureInstance()
2393 Handle<Object> Factory::GlobalConstantFor(Handle<String> name) { in GlobalConstantFor()
2397 return Handle<Object>::null(); in GlobalConstantFor()
2401 Handle<Object> Factory::ToBoolean(bool value) { in ToBoolean()