Lines Matching refs:Handle

42   Handle<JSFunction> constructor = args.at<JSFunction>(0);
43 Handle<String> name(constructor->shared().Name(), isolate);
45 Handle<Context> context = handle(constructor->native_context(), isolate);
47 Handle<JSFunction> realm_type_error_function(
84 Object ThrowNotSuperConstructor(Isolate* isolate, Handle<Object> constructor,
85 Handle<JSFunction> function) {
86 Handle<String> super_name;
89 handle(Handle<JSFunction>::cast(constructor)->shared().Name(), isolate);
100 Handle<String> function_name(function->shared().Name(), isolate);
118 Handle<Object> constructor = args.at(0);
119 Handle<JSFunction> function = args.at<JSFunction>(1);
126 Handle<Name> KeyToName(Isolate* isolate, Handle<Object> key) {
130 return Handle<Name>::cast(key);
134 Handle<Name> KeyToName<NumberDictionary>(Isolate* isolate, Handle<Object> key) {
148 Handle<String> name_prefix,
149 Handle<Object> key) {
157 Handle<JSFunction> method = args.at<JSFunction>(int_index);
165 Handle<Name> name = KeyToName<Dictionary>(isolate, key);
188 Handle<JSFunction> method = args.at<JSFunction>(int_index);
194 Handle<Dictionary> ShallowCopyDictionaryTemplate(
195 Isolate* isolate, Handle<Dictionary> dictionary_template) {
196 Handle<Dictionary> dictionary =
202 Handle<AccessorPair> pair(AccessorPair::cast(value), isolate);
211 bool SubstituteValues(Isolate* isolate, Handle<Dictionary> dictionary,
218 Handle<Object> key(maybe_key, isolate);
219 Handle<Object> value(dictionary->ValueAt(i), isolate);
221 Handle<AccessorPair> pair = Handle<AccessorPair>::cast(value);
224 Handle<Object> result;
235 Handle<Object> result;
245 Handle<Object> result;
259 void UpdateProtectors(Isolate* isolate, Handle<JSObject> receiver,
260 Handle<Dictionary> properties_dictionary) {
265 Handle<Name> name(Name::cast(maybe_key), isolate);
270 void UpdateProtectors(Isolate* isolate, Handle<JSObject> receiver,
271 Handle<DescriptorArray> properties_template) {
274 Handle<Name> name(properties_template->GetKey(i), isolate);
280 Isolate* isolate, Handle<Map> map,
281 Handle<DescriptorArray> descriptors_template,
282 Handle<NumberDictionary> elements_dictionary_template,
283 Handle<JSObject> receiver, RuntimeArguments& args) {
286 Handle<DescriptorArray> descriptors =
289 Handle<NumberDictionary> elements_dictionary =
306 Handle<PropertyArray> property_array =
315 Handle<AccessorPair> pair = AccessorPair::Copy(
387 // TODO(v8:7569): This is a workaround for the Handle vs MaybeHandle difference
390 // Handle.
392 Handle<T> ToHandle(Handle<T> h) {
396 Handle<T> ToHandle(MaybeHandle<T> h) {
402 Isolate* isolate, Handle<Map> map,
403 Handle<Dictionary> properties_dictionary_template,
404 Handle<NumberDictionary> elements_dictionary_template,
405 Handle<FixedArray> computed_properties, Handle<JSObject> receiver,
410 Handle<Dictionary> properties_dictionary =
412 Handle<NumberDictionary> elements_dictionary =
428 Handle<Object> key = args.at(key_index);
431 Handle<Name> name = Handle<Name>::cast(key);
467 Handle<JSObject> CreateClassPrototype(Isolate* isolate) {
474 Handle<Map> map = Map::Create(isolate, 0);
479 Handle<ClassBoilerplate> class_boilerplate,
480 Handle<JSObject> prototype,
481 Handle<HeapObject> prototype_parent,
482 Handle<JSFunction> constructor,
484 Handle<Map> map(prototype->map(), isolate);
490 Handle<FixedArray> computed_properties(
492 Handle<NumberDictionary> elements_dictionary_template(
496 Handle<Object> properties_template(
500 Handle<DescriptorArray> descriptors_template =
501 Handle<DescriptorArray>::cast(properties_template);
516 Handle<SwissNameDictionary> properties_dictionary_template =
517 Handle<SwissNameDictionary>::cast(properties_template);
522 Handle<NameDictionary> properties_dictionary_template =
523 Handle<NameDictionary>::cast(properties_template);
532 Handle<ClassBoilerplate> class_boilerplate,
533 Handle<HeapObject> constructor_parent,
534 Handle<JSFunction> constructor,
536 Handle<Map> map(constructor->map(), isolate);
548 Handle<NumberDictionary> elements_dictionary_template(
551 Handle<FixedArray> computed_properties(
554 Handle<Object> properties_template(
558 Handle<DescriptorArray> descriptors_template =
559 Handle<DescriptorArray>::cast(properties_template);
573 Handle<SwissNameDictionary> properties_dictionary_template =
574 Handle<SwissNameDictionary>::cast(properties_template);
580 Handle<NameDictionary> properties_dictionary_template =
581 Handle<NameDictionary>::cast(properties_template);
590 Handle<ClassBoilerplate> class_boilerplate,
591 Handle<Object> super_class,
592 Handle<JSFunction> constructor,
594 Handle<Object> prototype_parent;
595 Handle<HeapObject> constructor_parent;
605 Handle<JSFunction>::cast(super_class)->shared().kind()));
630 Handle<JSObject> prototype = CreateClassPrototype(isolate);
642 Handle<HeapObject>::cast(prototype_parent),
648 Handle<Map> empty_map;
667 Handle<ClassBoilerplate> class_boilerplate = args.at<ClassBoilerplate>(0);
668 Handle<JSFunction> constructor = args.at<JSFunction>(1);
669 Handle<Object> super_class = args.at(2);
682 Handle<JSObject> home_object,
691 Handle<Object> proto = PrototypeIterator::GetCurrent(iter);
697 Handle<Name> name = key->GetName(isolate);
700 return Handle<JSReceiver>::cast(proto);
703 MaybeHandle<Object> LoadFromSuper(Isolate* isolate, Handle<Object> receiver,
704 Handle<JSObject> home_object,
706 Handle<JSReceiver> holder;
711 Handle<Object> result;
721 Handle<Object> receiver = args.at(0);
722 Handle<JSObject> home_object = args.at<JSObject>(1);
723 Handle<Name> name = args.at<Name>(2);
735 Handle<Object> receiver = args.at(0);
736 Handle<JSObject> home_object = args.at<JSObject>(1);
739 Handle<Object> key = args.at(2);
751 MaybeHandle<Object> StoreToSuper(Isolate* isolate, Handle<JSObject> home_object,
752 Handle<Object> receiver, PropertyKey* key,
753 Handle<Object> value,
755 Handle<JSReceiver> holder;
770 Handle<Object> receiver = args.at(0);
771 Handle<JSObject> home_object = args.at<JSObject>(1);
772 Handle<Name> name = args.at<Name>(2);
773 Handle<Object> value = args.at(3);
785 Handle<Object> receiver = args.at(0);
786 Handle<JSObject> home_object = args.at<JSObject>(1);
789 Handle<Object> key = args.at(2);
790 Handle<Object> value = args.at(3);