Lines Matching refs:Handle
43 Handle<FixedArray> Factory::NewFixedArray(int size, PretenureFlag pretenure) { in NewFixedArray()
52 Handle<FixedArray> Factory::NewFixedArrayWithHoles(int size, in NewFixedArrayWithHoles()
62 Handle<FixedDoubleArray> Factory::NewFixedDoubleArray(int size, in NewFixedDoubleArray()
72 Handle<StringDictionary> Factory::NewStringDictionary(int at_least_space_for) { in NewStringDictionary()
80 Handle<SeededNumberDictionary> Factory::NewSeededNumberDictionary( in NewSeededNumberDictionary()
89 Handle<UnseededNumberDictionary> Factory::NewUnseededNumberDictionary( in NewUnseededNumberDictionary()
98 Handle<ObjectHashSet> Factory::NewObjectHashSet(int at_least_space_for) { in NewObjectHashSet()
106 Handle<ObjectHashTable> Factory::NewObjectHashTable(int at_least_space_for) { in NewObjectHashTable()
114 Handle<DescriptorArray> Factory::NewDescriptorArray(int number_of_descriptors) { in NewDescriptorArray()
122 Handle<DeoptimizationInputData> Factory::NewDeoptimizationInputData( in NewDeoptimizationInputData()
133 Handle<DeoptimizationOutputData> Factory::NewDeoptimizationOutputData( in NewDeoptimizationOutputData()
144 Handle<AccessorPair> Factory::NewAccessorPair() { in NewAccessorPair()
151 Handle<TypeFeedbackInfo> Factory::NewTypeFeedbackInfo() { in NewTypeFeedbackInfo()
159 Handle<String> Factory::LookupSymbol(Vector<const char> string) { in LookupSymbol()
166 Handle<String> Factory::LookupSymbol(Handle<String> string) { in LookupSymbol()
172 Handle<String> Factory::LookupAsciiSymbol(Vector<const char> string) { in LookupAsciiSymbol()
179 Handle<String> Factory::LookupAsciiSymbol(Handle<SeqAsciiString> string, in LookupAsciiSymbol()
190 Handle<String> Factory::LookupTwoByteSymbol(Vector<const uc16> string) { in LookupTwoByteSymbol()
197 Handle<String> Factory::NewStringFromAscii(Vector<const char> string, in NewStringFromAscii()
205 Handle<String> Factory::NewStringFromUtf8(Vector<const char> string, in NewStringFromUtf8()
214 Handle<String> Factory::NewStringFromTwoByte(Vector<const uc16> string, in NewStringFromTwoByte()
223 Handle<SeqAsciiString> Factory::NewRawAsciiString(int length, in NewRawAsciiString()
232 Handle<SeqTwoByteString> Factory::NewRawTwoByteString(int length, in NewRawTwoByteString()
241 Handle<String> Factory::NewConsString(Handle<String> first, in NewConsString()
242 Handle<String> second) { in NewConsString()
249 Handle<String> Factory::NewSubString(Handle<String> str, in NewSubString()
258 Handle<String> Factory::NewProperSubString(Handle<String> str, in NewProperSubString()
268 Handle<String> Factory::NewExternalStringFromAscii( in NewExternalStringFromAscii()
277 Handle<String> Factory::NewExternalStringFromTwoByte( in NewExternalStringFromTwoByte()
286 Handle<Context> Factory::NewGlobalContext() { in NewGlobalContext()
294 Handle<Context> Factory::NewFunctionContext(int length, in NewFunctionContext()
295 Handle<JSFunction> function) { in NewFunctionContext()
303 Handle<Context> Factory::NewCatchContext(Handle<JSFunction> function, in NewCatchContext()
304 Handle<Context> previous, in NewCatchContext()
305 Handle<String> name, in NewCatchContext()
306 Handle<Object> thrown_object) { in NewCatchContext()
317 Handle<Context> Factory::NewWithContext(Handle<JSFunction> function, in NewWithContext()
318 Handle<Context> previous, in NewWithContext()
319 Handle<JSObject> extension) { in NewWithContext()
327 Handle<Context> Factory::NewBlockContext( in NewBlockContext()
328 Handle<JSFunction> function, in NewBlockContext()
329 Handle<Context> previous, in NewBlockContext()
330 Handle<ScopeInfo> scope_info) { in NewBlockContext()
340 Handle<Struct> Factory::NewStruct(InstanceType type) { in NewStruct()
348 Handle<AccessorInfo> Factory::NewAccessorInfo() { in NewAccessorInfo()
349 Handle<AccessorInfo> info = in NewAccessorInfo()
350 Handle<AccessorInfo>::cast(NewStruct(ACCESSOR_INFO_TYPE)); in NewAccessorInfo()
356 Handle<Script> Factory::NewScript(Handle<String> source) { in NewScript()
374 Handle<Foreign> wrapper = NewForeign(0, TENURED); in NewScript()
375 Handle<Script> script = Handle<Script>::cast(NewStruct(SCRIPT_TYPE)); in NewScript()
396 Handle<Foreign> Factory::NewForeign(Address addr, PretenureFlag pretenure) { in NewForeign()
403 Handle<Foreign> Factory::NewForeign(const AccessorDescriptor* desc) { in NewForeign()
408 Handle<ByteArray> Factory::NewByteArray(int length, PretenureFlag pretenure) { in NewByteArray()
417 Handle<ExternalArray> Factory::NewExternalArray(int length, in NewExternalArray()
432 Handle<JSGlobalPropertyCell> Factory::NewJSGlobalPropertyCell( in NewJSGlobalPropertyCell()
433 Handle<Object> value) { in NewJSGlobalPropertyCell()
441 Handle<Map> Factory::NewMap(InstanceType type, in NewMap()
451 Handle<JSObject> Factory::NewFunctionPrototype(Handle<JSFunction> function) { in NewFunctionPrototype()
459 Handle<Map> Factory::CopyMapDropDescriptors(Handle<Map> src) { in CopyMapDropDescriptors()
464 Handle<Map> Factory::CopyMap(Handle<Map> src, in CopyMap()
466 Handle<Map> copy = CopyMapDropDescriptors(src); in CopyMap()
489 Handle<Map> Factory::CopyMapDropTransitions(Handle<Map> src) { in CopyMapDropTransitions()
494 Handle<Map> Factory::GetElementsTransitionMap( in GetElementsTransitionMap()
495 Handle<JSObject> src, in GetElementsTransitionMap()
504 Handle<FixedArray> Factory::CopyFixedArray(Handle<FixedArray> array) { in CopyFixedArray()
509 Handle<FixedDoubleArray> Factory::CopyFixedDoubleArray( in CopyFixedDoubleArray()
510 Handle<FixedDoubleArray> array) { in CopyFixedDoubleArray()
515 Handle<JSFunction> Factory::BaseNewFunctionFromSharedFunctionInfo( in BaseNewFunctionFromSharedFunctionInfo()
516 Handle<SharedFunctionInfo> function_info, in BaseNewFunctionFromSharedFunctionInfo()
517 Handle<Map> function_map, in BaseNewFunctionFromSharedFunctionInfo()
529 Handle<JSFunction> Factory::NewFunctionFromSharedFunctionInfo( in NewFunctionFromSharedFunctionInfo()
530 Handle<SharedFunctionInfo> function_info, in NewFunctionFromSharedFunctionInfo()
531 Handle<Context> context, in NewFunctionFromSharedFunctionInfo()
533 Handle<JSFunction> result = BaseNewFunctionFromSharedFunctionInfo( in NewFunctionFromSharedFunctionInfo()
547 Handle<FixedArray> literals = NewFixedArray(number_of_literals, pretenure); in NewFunctionFromSharedFunctionInfo()
569 Handle<Object> Factory::NewNumber(double value, in NewNumber()
577 Handle<Object> Factory::NewNumberFromInt(int32_t value, in NewNumberFromInt()
585 Handle<Object> Factory::NewNumberFromUint(uint32_t value, in NewNumberFromUint()
593 Handle<JSObject> Factory::NewNeanderObject() { in NewNeanderObject()
602 Handle<Object> Factory::NewTypeError(const char* type, in NewTypeError()
603 Vector< Handle<Object> > args) { in NewTypeError()
608 Handle<Object> Factory::NewTypeError(Handle<String> message) { in NewTypeError()
613 Handle<Object> Factory::NewRangeError(const char* type, in NewRangeError()
614 Vector< Handle<Object> > args) { in NewRangeError()
619 Handle<Object> Factory::NewRangeError(Handle<String> message) { in NewRangeError()
624 Handle<Object> Factory::NewSyntaxError(const char* type, Handle<JSArray> args) { in NewSyntaxError()
629 Handle<Object> Factory::NewSyntaxError(Handle<String> message) { in NewSyntaxError()
634 Handle<Object> Factory::NewReferenceError(const char* type, in NewReferenceError()
635 Vector< Handle<Object> > args) { in NewReferenceError()
640 Handle<Object> Factory::NewReferenceError(Handle<String> message) { in NewReferenceError()
645 Handle<Object> Factory::NewError(const char* maker, const char* type, in NewError()
646 Vector< Handle<Object> > args) { in NewError()
648 Handle<FixedArray> array = NewFixedArray(args.length()); in NewError()
652 Handle<JSArray> object = NewJSArrayWithElements(array); in NewError()
653 Handle<Object> result = NewError(maker, type, object); in NewError()
658 Handle<Object> Factory::NewEvalError(const char* type, in NewEvalError()
659 Vector< Handle<Object> > args) { in NewEvalError()
664 Handle<Object> Factory::NewError(const char* type, in NewError()
665 Vector< Handle<Object> > args) { in NewError()
670 Handle<Object> Factory::NewError(const char* maker, in NewError()
672 Handle<JSArray> args) { in NewError()
673 Handle<String> make_str = LookupAsciiSymbol(maker); in NewError()
674 Handle<Object> fun_obj( in NewError()
680 Handle<JSFunction> fun = Handle<JSFunction>::cast(fun_obj); in NewError()
681 Handle<Object> type_obj = LookupAsciiSymbol(type); in NewError()
682 Handle<Object> argv[] = { type_obj, args }; in NewError()
687 Handle<Object> result = Execution::TryCall(fun, in NewError()
696 Handle<Object> Factory::NewError(Handle<String> message) { in NewError()
701 Handle<Object> Factory::NewError(const char* constructor, in NewError()
702 Handle<String> message) { in NewError()
703 Handle<String> constr = LookupAsciiSymbol(constructor); in NewError()
704 Handle<JSFunction> fun = Handle<JSFunction>( in NewError()
707 Handle<Object> argv[] = { message }; in NewError()
712 Handle<Object> result = Execution::TryCall(fun, in NewError()
721 Handle<JSFunction> Factory::NewFunction(Handle<String> name, in NewFunction()
724 Handle<Code> code, in NewFunction()
727 Handle<JSFunction> function = NewFunction(name, the_hole_value()); in NewFunction()
737 Handle<Map> initial_map = NewMap(type, instance_size); in NewFunction()
738 Handle<JSObject> prototype = NewFunctionPrototype(function); in NewFunction()
751 Handle<JSFunction> Factory::NewFunctionWithPrototype(Handle<String> name, in NewFunctionWithPrototype()
754 Handle<JSObject> prototype, in NewFunctionWithPrototype()
755 Handle<Code> code, in NewFunctionWithPrototype()
758 Handle<JSFunction> function = NewFunction(name, prototype); in NewFunctionWithPrototype()
768 Handle<Map> initial_map = NewMap(type, in NewFunctionWithPrototype()
787 Handle<JSFunction> Factory::NewFunctionWithoutPrototype(Handle<String> name, in NewFunctionWithoutPrototype()
788 Handle<Code> code) { in NewFunctionWithoutPrototype()
789 Handle<JSFunction> function = NewFunctionWithoutPrototype(name, in NewFunctionWithoutPrototype()
799 Handle<ScopeInfo> Factory::NewScopeInfo(int length) { in NewScopeInfo()
807 Handle<Code> Factory::NewCode(const CodeDesc& desc, in NewCode()
809 Handle<Object> self_ref, in NewCode()
818 Handle<Code> Factory::CopyCode(Handle<Code> code) { in CopyCode()
825 Handle<Code> Factory::CopyCode(Handle<Code> code, Vector<byte> reloc_info) { in CopyCode()
844 Handle<DescriptorArray> Factory::CopyAppendForeignDescriptor( in CopyAppendForeignDescriptor()
845 Handle<DescriptorArray> array, in CopyAppendForeignDescriptor()
846 Handle<String> key, in CopyAppendForeignDescriptor()
847 Handle<Object> value, in CopyAppendForeignDescriptor()
855 Handle<String> Factory::SymbolFromString(Handle<String> value) { in SymbolFromString()
861 Handle<DescriptorArray> Factory::CopyAppendCallbackDescriptors( in CopyAppendCallbackDescriptors()
862 Handle<DescriptorArray> array, in CopyAppendCallbackDescriptors()
863 Handle<Object> descriptors) { in CopyAppendCallbackDescriptors()
866 Handle<DescriptorArray> result = in CopyAppendCallbackDescriptors()
889 Handle<AccessorInfo> entry = in CopyAppendCallbackDescriptors()
890 Handle<AccessorInfo>(AccessorInfo::cast(callbacks.get(i))); in CopyAppendCallbackDescriptors()
892 Handle<String> key = in CopyAppendCallbackDescriptors()
893 SymbolFromString(Handle<String>(String::cast(entry->name()))); in CopyAppendCallbackDescriptors()
909 Handle<DescriptorArray> new_result = in CopyAppendCallbackDescriptors()
923 Handle<JSObject> Factory::NewJSObject(Handle<JSFunction> constructor, in NewJSObject()
931 Handle<GlobalObject> Factory::NewGlobalObject( in NewGlobalObject()
932 Handle<JSFunction> constructor) { in NewGlobalObject()
940 Handle<JSObject> Factory::NewJSObjectFromMap(Handle<Map> map) { in NewJSObjectFromMap()
948 Handle<JSArray> Factory::NewJSArray(int capacity, in NewJSArray()
962 Handle<JSArray> Factory::NewJSArrayWithElements(Handle<FixedArrayBase> elements, in NewJSArrayWithElements()
974 void Factory::SetElementsCapacityAndLength(Handle<JSArray> array, in SetElementsCapacityAndLength()
984 void Factory::SetContent(Handle<JSArray> array, in SetContent()
985 Handle<FixedArrayBase> elements) { in SetContent()
992 void Factory::EnsureCanContainHeapObjectElements(Handle<JSArray> array) { in EnsureCanContainHeapObjectElements()
999 void Factory::EnsureCanContainElements(Handle<JSArray> array, in EnsureCanContainElements()
1000 Handle<FixedArrayBase> elements, in EnsureCanContainElements()
1008 Handle<JSProxy> Factory::NewJSProxy(Handle<Object> handler, in NewJSProxy()
1009 Handle<Object> prototype) { in NewJSProxy()
1017 void Factory::BecomeJSObject(Handle<JSReceiver> object) { in BecomeJSObject()
1025 void Factory::BecomeJSFunction(Handle<JSReceiver> object) { in BecomeJSFunction()
1033 void Factory::SetIdentityHash(Handle<JSObject> object, Object* hash) { in SetIdentityHash()
1040 Handle<SharedFunctionInfo> Factory::NewSharedFunctionInfo( in NewSharedFunctionInfo()
1041 Handle<String> name, in NewSharedFunctionInfo()
1043 Handle<Code> code, in NewSharedFunctionInfo()
1044 Handle<ScopeInfo> scope_info) { in NewSharedFunctionInfo()
1045 Handle<SharedFunctionInfo> shared = NewSharedFunctionInfo(name); in NewSharedFunctionInfo()
1060 Handle<JSMessageObject> Factory::NewJSMessageObject( in NewJSMessageObject()
1061 Handle<String> type, in NewJSMessageObject()
1062 Handle<JSArray> arguments, in NewJSMessageObject()
1065 Handle<Object> script, in NewJSMessageObject()
1066 Handle<Object> stack_trace, in NewJSMessageObject()
1067 Handle<Object> stack_frames) { in NewJSMessageObject()
1079 Handle<SharedFunctionInfo> Factory::NewSharedFunctionInfo(Handle<String> name) { in NewSharedFunctionInfo()
1086 Handle<String> Factory::NumberToString(Handle<Object> number) { in NumberToString()
1092 Handle<String> Factory::Uint32ToString(uint32_t value) { in Uint32ToString()
1098 Handle<SeededNumberDictionary> Factory::DictionaryAtNumberPut( in DictionaryAtNumberPut()
1099 Handle<SeededNumberDictionary> dictionary, in DictionaryAtNumberPut()
1101 Handle<Object> value) { in DictionaryAtNumberPut()
1108 Handle<UnseededNumberDictionary> Factory::DictionaryAtNumberPut( in DictionaryAtNumberPut()
1109 Handle<UnseededNumberDictionary> dictionary, in DictionaryAtNumberPut()
1111 Handle<Object> value) { in DictionaryAtNumberPut()
1118 Handle<JSFunction> Factory::NewFunctionHelper(Handle<String> name, in NewFunctionHelper()
1119 Handle<Object> prototype) { in NewFunctionHelper()
1120 Handle<SharedFunctionInfo> function_share = NewSharedFunctionInfo(name); in NewFunctionHelper()
1130 Handle<JSFunction> Factory::NewFunction(Handle<String> name, in NewFunction()
1131 Handle<Object> prototype) { in NewFunction()
1132 Handle<JSFunction> fun = NewFunctionHelper(name, prototype); in NewFunction()
1138 Handle<JSFunction> Factory::NewFunctionWithoutPrototypeHelper( in NewFunctionWithoutPrototypeHelper()
1139 Handle<String> name, in NewFunctionWithoutPrototypeHelper()
1141 Handle<SharedFunctionInfo> function_share = NewSharedFunctionInfo(name); in NewFunctionWithoutPrototypeHelper()
1142 Handle<Map> map = (language_mode == CLASSIC_MODE) in NewFunctionWithoutPrototypeHelper()
1154 Handle<JSFunction> Factory::NewFunctionWithoutPrototype( in NewFunctionWithoutPrototype()
1155 Handle<String> name, in NewFunctionWithoutPrototype()
1157 Handle<JSFunction> fun = in NewFunctionWithoutPrototype()
1164 Handle<Object> Factory::ToObject(Handle<Object> object) { in ToObject()
1169 Handle<Object> Factory::ToObject(Handle<Object> object, in ToObject()
1170 Handle<Context> global_context) { in ToObject()
1176 Handle<DebugInfo> Factory::NewDebugInfo(Handle<SharedFunctionInfo> shared) { in NewDebugInfo()
1178 Handle<Code> code(shared->code()); in NewDebugInfo()
1182 Handle<Code> original_code(*Factory::CopyCode(code)); in NewDebugInfo()
1187 Handle<FixedArray> break_points( in NewDebugInfo()
1193 Handle<DebugInfo> debug_info = in NewDebugInfo()
1194 Handle<DebugInfo>::cast(NewStruct(DEBUG_INFO_TYPE)); in NewDebugInfo()
1208 Handle<JSObject> Factory::NewArgumentsObject(Handle<Object> callee, in NewArgumentsObject()
1216 Handle<JSFunction> Factory::CreateApiFunction( in CreateApiFunction()
1217 Handle<FunctionTemplateInfo> obj, ApiInstanceType instance_type) { in CreateApiFunction()
1218 Handle<Code> code = isolate()->builtins()->HandleApiCall(); in CreateApiFunction()
1219 Handle<Code> construct_stub = isolate()->builtins()->JSConstructStubApi(); in CreateApiFunction()
1223 Handle<ObjectTemplateInfo> instance_template = in CreateApiFunction()
1224 Handle<ObjectTemplateInfo>( in CreateApiFunction()
1250 Handle<JSFunction> result = in CreateApiFunction()
1257 Handle<Object> class_name = Handle<Object>(obj->class_name()); in CreateApiFunction()
1263 Handle<Map> map = Handle<Map>(result->initial_map()); in CreateApiFunction()
1298 Handle<DescriptorArray> array = in CreateApiFunction()
1299 Handle<DescriptorArray>(map->instance_descriptors()); in CreateApiFunction()
1301 Handle<Object> props = Handle<Object>(obj->property_accessors()); in CreateApiFunction()
1305 Handle<Object> parent = Handle<Object>(obj->parent_template()); in CreateApiFunction()
1307 obj = Handle<FunctionTemplateInfo>::cast(parent); in CreateApiFunction()
1318 Handle<MapCache> Factory::NewMapCache(int at_least_space_for) { in NewMapCache()
1337 Handle<MapCache> Factory::AddToMapCache(Handle<Context> context, in AddToMapCache()
1338 Handle<FixedArray> keys, in AddToMapCache()
1339 Handle<Map> map) { in AddToMapCache()
1345 Handle<Map> Factory::ObjectLiteralMapFromCache(Handle<Context> context, in ObjectLiteralMapFromCache()
1346 Handle<FixedArray> keys) { in ObjectLiteralMapFromCache()
1349 Handle<MapCache> new_cache = NewMapCache(24); in ObjectLiteralMapFromCache()
1353 Handle<MapCache> cache = in ObjectLiteralMapFromCache()
1354 Handle<MapCache>(MapCache::cast(context->map_cache())); in ObjectLiteralMapFromCache()
1355 Handle<Object> result = Handle<Object>(cache->Lookup(*keys)); in ObjectLiteralMapFromCache()
1356 if (result->IsMap()) return Handle<Map>::cast(result); in ObjectLiteralMapFromCache()
1358 Handle<Map> map = in ObjectLiteralMapFromCache()
1359 CopyMap(Handle<Map>(context->object_function()->initial_map()), in ObjectLiteralMapFromCache()
1362 return Handle<Map>(map); in ObjectLiteralMapFromCache()
1366 void Factory::SetRegExpAtomData(Handle<JSRegExp> regexp, in SetRegExpAtomData()
1368 Handle<String> source, in SetRegExpAtomData()
1370 Handle<Object> data) { in SetRegExpAtomData()
1371 Handle<FixedArray> store = NewFixedArray(JSRegExp::kAtomDataSize); in SetRegExpAtomData()
1380 void Factory::SetRegExpIrregexpData(Handle<JSRegExp> regexp, in SetRegExpIrregexpData()
1382 Handle<String> source, in SetRegExpIrregexpData()
1385 Handle<FixedArray> store = NewFixedArray(JSRegExp::kIrregexpDataSize); in SetRegExpIrregexpData()
1402 void Factory::ConfigureInstance(Handle<FunctionTemplateInfo> desc, in ConfigureInstance()
1403 Handle<JSObject> instance, in ConfigureInstance()
1407 Handle<Object> instance_template = Handle<Object>(desc->instance_template()); in ConfigureInstance()
1418 Handle<Object> Factory::GlobalConstantFor(Handle<String> name) { in GlobalConstantFor()
1423 return Handle<Object>::null(); in GlobalConstantFor()
1427 Handle<Object> Factory::ToBoolean(bool value) { in ToBoolean()
1428 return Handle<Object>(value in ToBoolean()