diff options
author | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2020-10-12 14:27:29 +0200 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2020-10-13 09:35:20 +0000 |
commit | c30a6232df03e1efbd9f3b226777b07e087a1122 (patch) | |
tree | e992f45784689f373bcc38d1b79a239ebe17ee23 /chromium/v8/src/objects/templates-inl.h | |
parent | 7b5b123ac58f58ffde0f4f6e488bcd09aa4decd3 (diff) | |
download | qtwebengine-chromium-85-based.tar.gz |
BASELINE: Update Chromium to 85.0.4183.14085-based
Change-Id: Iaa42f4680837c57725b1344f108c0196741f6057
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'chromium/v8/src/objects/templates-inl.h')
-rw-r--r-- | chromium/v8/src/objects/templates-inl.h | 45 |
1 files changed, 21 insertions, 24 deletions
diff --git a/chromium/v8/src/objects/templates-inl.h b/chromium/v8/src/objects/templates-inl.h index 988230b7ae4..8dd5aa6e2db 100644 --- a/chromium/v8/src/objects/templates-inl.h +++ b/chromium/v8/src/objects/templates-inl.h @@ -24,16 +24,17 @@ TQ_OBJECT_CONSTRUCTORS_IMPL(FunctionTemplateRareData) NEVER_READ_ONLY_SPACE_IMPL(TemplateInfo) -BOOL_ACCESSORS(FunctionTemplateInfo, flag, undetectable, kUndetectableBit) +BOOL_ACCESSORS(FunctionTemplateInfo, flag, undetectable, + UndetectableBit::kShift) BOOL_ACCESSORS(FunctionTemplateInfo, flag, needs_access_check, - kNeedsAccessCheckBit) + NeedsAccessCheckBit::kShift) BOOL_ACCESSORS(FunctionTemplateInfo, flag, read_only_prototype, - kReadOnlyPrototypeBit) + ReadOnlyPrototypeBit::kShift) BOOL_ACCESSORS(FunctionTemplateInfo, flag, remove_prototype, - kRemovePrototypeBit) -BOOL_ACCESSORS(FunctionTemplateInfo, flag, do_not_cache, kDoNotCacheBit) + RemovePrototypeBit::kShift) +BOOL_ACCESSORS(FunctionTemplateInfo, flag, do_not_cache, DoNotCacheBit::kShift) BOOL_ACCESSORS(FunctionTemplateInfo, flag, accept_any_receiver, - kAcceptAnyReceiver) + AcceptAnyReceiverBit::kShift) // static FunctionTemplateRareData FunctionTemplateInfo::EnsureFunctionTemplateRareData( @@ -61,16 +62,18 @@ FunctionTemplateRareData FunctionTemplateInfo::EnsureFunctionTemplateRareData( rare_data.set_##Name(*Name); \ } -RARE_ACCESSORS(prototype_template, PrototypeTemplate, Object, undefined) -RARE_ACCESSORS(prototype_provider_template, PrototypeProviderTemplate, Object, +RARE_ACCESSORS(prototype_template, PrototypeTemplate, HeapObject, undefined) +RARE_ACCESSORS(prototype_provider_template, PrototypeProviderTemplate, + HeapObject, undefined) +RARE_ACCESSORS(parent_template, ParentTemplate, HeapObject, undefined) +RARE_ACCESSORS(named_property_handler, NamedPropertyHandler, HeapObject, undefined) -RARE_ACCESSORS(parent_template, ParentTemplate, Object, undefined) -RARE_ACCESSORS(named_property_handler, NamedPropertyHandler, Object, undefined) -RARE_ACCESSORS(indexed_property_handler, IndexedPropertyHandler, Object, +RARE_ACCESSORS(indexed_property_handler, IndexedPropertyHandler, HeapObject, undefined) -RARE_ACCESSORS(instance_template, InstanceTemplate, Object, undefined) -RARE_ACCESSORS(instance_call_handler, InstanceCallHandler, Object, undefined) -RARE_ACCESSORS(access_check_info, AccessCheckInfo, Object, undefined) +RARE_ACCESSORS(instance_template, InstanceTemplate, HeapObject, undefined) +RARE_ACCESSORS(instance_call_handler, InstanceCallHandler, HeapObject, + undefined) +RARE_ACCESSORS(access_check_info, AccessCheckInfo, HeapObject, undefined) RARE_ACCESSORS(c_function, CFunction, Object, Smi(0)) RARE_ACCESSORS(c_signature, CSignature, Object, Smi(0)) #undef RARE_ACCESSORS @@ -110,26 +113,20 @@ ObjectTemplateInfo ObjectTemplateInfo::GetParent(Isolate* isolate) { } int ObjectTemplateInfo::embedder_field_count() const { - Object value = data(); - DCHECK(value.IsSmi()); - return EmbedderFieldCount::decode(Smi::ToInt(value)); + return EmbedderFieldCountBits::decode(data()); } void ObjectTemplateInfo::set_embedder_field_count(int count) { DCHECK_LE(count, JSObject::kMaxEmbedderFields); - return set_data( - Smi::FromInt(EmbedderFieldCount::update(Smi::ToInt(data()), count))); + return set_data(EmbedderFieldCountBits::update(data(), count)); } bool ObjectTemplateInfo::immutable_proto() const { - Object value = data(); - DCHECK(value.IsSmi()); - return IsImmutablePrototype::decode(Smi::ToInt(value)); + return IsImmutablePrototypeBit::decode(data()); } void ObjectTemplateInfo::set_immutable_proto(bool immutable) { - return set_data(Smi::FromInt( - IsImmutablePrototype::update(Smi::ToInt(data()), immutable))); + return set_data(IsImmutablePrototypeBit::update(data(), immutable)); } bool FunctionTemplateInfo::IsTemplateFor(JSObject object) { |