@@ -172,7 +172,7 @@ class V8_NODISCARD AccessCheckDisableScope {
172172 Handle<JSObject> obj_;
173173};
174174
175- Object GetIntrinsic (Isolate* isolate, v8::Intrinsic intrinsic) {
175+ Tagged< Object> GetIntrinsic (Isolate* isolate, v8::Intrinsic intrinsic) {
176176 Handle<Context> native_context = isolate->native_context ();
177177 DCHECK (!native_context.is_null ());
178178 switch (intrinsic) {
@@ -197,7 +197,7 @@ MaybeHandle<JSObject> ConfigureInstance(Isolate* isolate, Handle<JSObject> obj,
197197 int max_number_of_properties = 0 ;
198198 TemplateInfoT info = *data;
199199 while (!info.is_null ()) {
200- Object props = info.property_accessors ();
200+ Tagged< Object> props = info.property_accessors ();
201201 if (!IsUndefined (props, isolate)) {
202202 max_number_of_properties += TemplateList::cast (props)->length ();
203203 }
@@ -213,7 +213,7 @@ MaybeHandle<JSObject> ConfigureInstance(Isolate* isolate, Handle<JSObject> obj,
213213 for (Handle<TemplateInfoT> temp (*data, isolate); !temp->is_null ();
214214 temp = handle (temp->GetParent (isolate), isolate)) {
215215 // Accumulate accessors.
216- Object maybe_properties = temp->property_accessors ();
216+ Tagged< Object> maybe_properties = temp->property_accessors ();
217217 if (!IsUndefined (maybe_properties, isolate)) {
218218 valid_descriptors = AccessorInfo::AppendUnique (
219219 isolate, handle (maybe_properties, isolate), array,
@@ -231,7 +231,7 @@ MaybeHandle<JSObject> ConfigureInstance(Isolate* isolate, Handle<JSObject> obj,
231231 }
232232 }
233233
234- Object maybe_property_list = data->property_list ();
234+ Tagged< Object> maybe_property_list = data->property_list ();
235235 if (IsUndefined (maybe_property_list, isolate)) return obj;
236236 Handle<TemplateList> properties (TemplateList::cast (maybe_property_list),
237237 isolate);
@@ -240,7 +240,7 @@ MaybeHandle<JSObject> ConfigureInstance(Isolate* isolate, Handle<JSObject> obj,
240240 int i = 0 ;
241241 for (int c = 0 ; c < data->number_of_properties (); c++) {
242242 auto name = handle (Name::cast (properties->get (i++)), isolate);
243- Object bit = properties->get (i++);
243+ Tagged< Object> bit = properties->get (i++);
244244 if (IsSmi (bit)) {
245245 PropertyDetails details (Smi::cast (bit));
246246 PropertyAttributes attributes = details.attributes ();
@@ -297,15 +297,15 @@ MaybeHandle<JSObject> ProbeInstantiationsCache(
297297 }
298298
299299 if (serial_number < TemplateInfo::kFastTemplateInstantiationsCacheSize ) {
300- FixedArray fast_cache =
300+ Tagged< FixedArray> fast_cache =
301301 native_context->fast_template_instantiations_cache ();
302302 Handle<Object> object{fast_cache->get (serial_number), isolate};
303303 if (IsTheHole (*object, isolate)) return {};
304304 return Handle<JSObject>::cast (object);
305305 }
306306 if (caching_mode == CachingMode::kUnlimited ||
307307 (serial_number < TemplateInfo::kSlowTemplateInstantiationsCacheSize )) {
308- SimpleNumberDictionary slow_cache =
308+ Tagged< SimpleNumberDictionary> slow_cache =
309309 native_context->slow_template_instantiations_cache ();
310310 InternalIndex entry = slow_cache->FindEntry (isolate, serial_number);
311311 if (entry.is_found ()) {
@@ -361,7 +361,7 @@ void UncacheTemplateInstantiation(Isolate* isolate,
361361 if (serial_number < 0 ) return ;
362362
363363 if (serial_number < TemplateInfo::kFastTemplateInstantiationsCacheSize ) {
364- FixedArray fast_cache =
364+ Tagged< FixedArray> fast_cache =
365365 native_context->fast_template_instantiations_cache ();
366366 DCHECK (!IsUndefined (fast_cache->get (serial_number), isolate));
367367 fast_cache->set_undefined (serial_number);
@@ -379,12 +379,12 @@ void UncacheTemplateInstantiation(Isolate* isolate,
379379 }
380380}
381381
382- bool IsSimpleInstantiation (Isolate* isolate, ObjectTemplateInfo info,
383- JSReceiver new_target) {
382+ bool IsSimpleInstantiation (Isolate* isolate, Tagged< ObjectTemplateInfo> info,
383+ Tagged< JSReceiver> new_target) {
384384 DisallowGarbageCollection no_gc;
385385
386386 if (!IsJSFunction (new_target)) return false ;
387- JSFunction fun = JSFunction::cast (new_target);
387+ Tagged< JSFunction> fun = JSFunction::cast (new_target);
388388 if (fun->shared ()->function_data (kAcquireLoad ) != info->constructor ())
389389 return false ;
390390 if (info->immutable_proto ()) return false ;
@@ -417,7 +417,7 @@ MaybeHandle<JSObject> InstantiateObject(Isolate* isolate,
417417 }
418418
419419 if (constructor.is_null ()) {
420- Object maybe_constructor_info = info->constructor ();
420+ Tagged< Object> maybe_constructor_info = info->constructor ();
421421 if (IsUndefined (maybe_constructor_info, isolate)) {
422422 constructor = isolate->object_function ();
423423 } else {
@@ -559,7 +559,7 @@ MaybeHandle<JSFunction> InstantiateFunction(
559559
560560void AddPropertyToPropertyList (Isolate* isolate, Handle<TemplateInfo> templ,
561561 int length, Handle<Object>* data) {
562- Object maybe_list = templ->property_list ();
562+ Tagged< Object> maybe_list = templ->property_list ();
563563 Handle<TemplateList> list;
564564 if (IsUndefined (maybe_list, isolate)) {
565565 list = TemplateList::New (isolate, length);
@@ -677,7 +677,7 @@ void ApiNatives::AddAccessorProperty(Isolate* isolate,
677677void ApiNatives::AddNativeDataProperty (Isolate* isolate,
678678 Handle<TemplateInfo> info,
679679 Handle<AccessorInfo> property) {
680- Object maybe_list = info->property_accessors ();
680+ Tagged< Object> maybe_list = info->property_accessors ();
681681 Handle<TemplateList> list;
682682 if (IsUndefined (maybe_list, isolate)) {
683683 list = TemplateList::New (isolate, 1 );
0 commit comments