Lines Matching refs:Handle
37 Handle<ObjectTemplateInfo> data,
38 Handle<JSReceiver> new_target,
42 Handle<FunctionTemplateInfo> data,
43 Handle<Name> name = Handle<Name>());
45 MaybeHandle<Object> Instantiate(Isolate* isolate, Handle<Object> data, in Instantiate()
46 Handle<Name> name = Handle<Name>()) { in Instantiate()
49 Handle<FunctionTemplateInfo>::cast(data), name); in Instantiate()
51 return InstantiateObject(isolate, Handle<ObjectTemplateInfo>::cast(data), in Instantiate()
52 Handle<JSReceiver>(), false); in Instantiate()
59 Isolate* isolate, Handle<JSObject> object, Handle<Name> name, in DefineAccessorProperty()
60 Handle<Object> getter, Handle<Object> setter, PropertyAttributes attributes, in DefineAccessorProperty()
71 Handle<FunctionTemplateInfo>::cast(getter)), in DefineAccessorProperty()
78 Handle<FunctionTemplateInfo>::cast(setter)), in DefineAccessorProperty()
90 Handle<JSObject> object, in DefineDataProperty()
91 Handle<Name> name, in DefineDataProperty()
92 Handle<Object> prop_data, in DefineDataProperty()
94 Handle<Object> value; in DefineDataProperty()
119 void DisableAccessChecks(Isolate* isolate, Handle<JSObject> object) { in DisableAccessChecks()
120 Handle<Map> old_map(object->map()); in DisableAccessChecks()
122 Handle<Map> new_map = Map::Copy(old_map, "DisableAccessChecks"); in DisableAccessChecks()
124 JSObject::MigrateToMap(Handle<JSObject>::cast(object), new_map); in DisableAccessChecks()
128 void EnableAccessChecks(Isolate* isolate, Handle<JSObject> object) { in EnableAccessChecks()
129 Handle<Map> old_map(object->map()); in EnableAccessChecks()
131 Handle<Map> new_map = Map::Copy(old_map, "EnableAccessChecks"); in EnableAccessChecks()
139 AccessCheckDisableScope(Isolate* isolate, Handle<JSObject> obj) in AccessCheckDisableScope()
156 Handle<JSObject> obj_;
161 Handle<Context> native_context = isolate->native_context(); in GetIntrinsic()
175 MaybeHandle<JSObject> ConfigureInstance(Isolate* isolate, Handle<JSObject> obj, in ConfigureInstance()
176 Handle<TemplateInfoT> data, in ConfigureInstance()
196 Handle<FixedArray> array = in ConfigureInstance()
199 for (Handle<TemplateInfoT> temp(*data); *temp != nullptr; in ConfigureInstance()
211 Handle<AccessorInfo> accessor(AccessorInfo::cast(array->get(i))); in ConfigureInstance()
218 Handle<TemplateList> properties(TemplateList::cast(maybe_property_list), in ConfigureInstance()
267 Handle<FixedArray> fast_cache = in ProbeInstantiationsCache()
271 Handle<UnseededNumberDictionary> slow_cache = in ProbeInstantiationsCache()
282 Handle<JSObject> object) { in CacheTemplateInstantiation()
285 Handle<FixedArray> fast_cache = in CacheTemplateInstantiation()
287 Handle<FixedArray> new_cache = in CacheTemplateInstantiation()
294 Handle<UnseededNumberDictionary> cache = in CacheTemplateInstantiation()
308 Handle<FixedArray> fast_cache = in UncacheTemplateInstantiation()
313 Handle<UnseededNumberDictionary> cache = in UncacheTemplateInstantiation()
317 Handle<Object> result = in UncacheTemplateInstantiation()
339 Handle<ObjectTemplateInfo> info, in InstantiateObject()
340 Handle<JSReceiver> new_target, in InstantiateObject()
342 Handle<JSFunction> constructor; in InstantiateObject()
346 constructor = Handle<JSFunction>::cast(new_target); in InstantiateObject()
353 Handle<JSObject> result; in InstantiateObject()
367 Handle<FunctionTemplateInfo> cons_templ( in InstantiateObject()
369 Handle<JSFunction> tmp_constructor; in InstantiateObject()
379 Handle<JSObject> object; in InstantiateObject()
403 Handle<JSFunction> parent_instance; in GetInstancePrototype()
410 Handle<Object> instance_prototype; in GetInstancePrototype()
422 Handle<FunctionTemplateInfo> data, in InstantiateFunction()
423 Handle<Name> name) { in InstantiateFunction()
426 Handle<JSObject> result; in InstantiateFunction()
428 return Handle<JSFunction>::cast(result); in InstantiateFunction()
431 Handle<Object> prototype; in InstantiateFunction()
449 Handle<JSReceiver>(), data->hidden_prototype()), in InstantiateFunction()
454 Handle<Object> parent_prototype; in InstantiateFunction()
458 JSObject::ForceSetPrototype(Handle<JSObject>::cast(prototype), in InstantiateFunction()
462 Handle<JSFunction> function = ApiNatives::CreateApiFunction( in InstantiateFunction()
484 void AddPropertyToPropertyList(Isolate* isolate, Handle<TemplateInfo> templ, in AddPropertyToPropertyList()
485 int length, Handle<Object>* data) { in AddPropertyToPropertyList()
487 Handle<TemplateList> list; in AddPropertyToPropertyList()
495 Handle<Object> value = in AddPropertyToPropertyList()
497 ? Handle<Object>::cast(isolate->factory()->undefined_value()) in AddPropertyToPropertyList()
507 Handle<FunctionTemplateInfo> data) { in InstantiateFunction()
514 Handle<ObjectTemplateInfo> data, Handle<JSReceiver> new_target) { in InstantiateObject()
521 Handle<ObjectTemplateInfo> data) { in InstantiateRemoteObject()
525 Handle<FunctionTemplateInfo> constructor( in InstantiateRemoteObject()
527 Handle<SharedFunctionInfo> shared = in InstantiateRemoteObject()
529 Handle<Map> initial_map = isolate->factory()->CreateSloppyFunctionMap( in InstantiateRemoteObject()
531 Handle<JSFunction> object_function = in InstantiateRemoteObject()
534 Handle<Map> object_map = isolate->factory()->NewMap( in InstantiateRemoteObject()
542 Handle<JSObject> object = isolate->factory()->NewJSObject(object_function); in InstantiateRemoteObject()
548 void ApiNatives::AddDataProperty(Isolate* isolate, Handle<TemplateInfo> info, in AddDataProperty()
549 Handle<Name> name, Handle<Object> value, in AddDataProperty()
553 Handle<Object> data[] = {name, details_handle, value}; in AddDataProperty()
558 void ApiNatives::AddDataProperty(Isolate* isolate, Handle<TemplateInfo> info, in AddDataProperty()
559 Handle<Name> name, v8::Intrinsic intrinsic, in AddDataProperty()
565 Handle<Object> data[] = {name, intrinsic_marker, details_handle, value}; in AddDataProperty()
571 Handle<TemplateInfo> info, in AddAccessorProperty()
572 Handle<Name> name, in AddAccessorProperty()
573 Handle<FunctionTemplateInfo> getter, in AddAccessorProperty()
574 Handle<FunctionTemplateInfo> setter, in AddAccessorProperty()
578 Handle<Object> data[] = {name, details_handle, getter, setter}; in AddAccessorProperty()
584 Handle<TemplateInfo> info, in AddNativeDataProperty()
585 Handle<AccessorInfo> property) { in AddNativeDataProperty()
587 Handle<TemplateList> list; in AddNativeDataProperty()
598 Handle<JSFunction> ApiNatives::CreateApiFunction( in CreateApiFunction()
599 Isolate* isolate, Handle<FunctionTemplateInfo> obj, in CreateApiFunction()
600 Handle<Object> prototype, ApiInstanceType instance_type) { in CreateApiFunction()
601 Handle<SharedFunctionInfo> shared = in CreateApiFunction()
603 Handle<JSFunction> result = in CreateApiFunction()
627 JSObject::AddProperty(Handle<JSObject>::cast(prototype), in CreateApiFunction()
635 Handle<ObjectTemplateInfo> instance_template = Handle<ObjectTemplateInfo>( in CreateApiFunction()
670 Handle<Map> map = in CreateApiFunction()
672 JSFunction::SetInitialMap(result, map, Handle<JSObject>::cast(prototype)); in CreateApiFunction()