mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1236546 - Don't deoptimize in ObjectGroup::defaultNewGroup when we have a null proto. r=bhackett
This commit is contained in:
parent
47264e727b
commit
90a0ee9a39
@ -538,7 +538,7 @@ ObjectGroup::defaultNewGroup(ExclusiveContext* cx, const Class* clasp,
|
||||
}
|
||||
|
||||
ObjectGroupFlags initialFlags = 0;
|
||||
if (!proto.isObject() || proto.toObject()->isNewGroupUnknown())
|
||||
if (proto.isLazy() || (proto.isObject() && proto.toObject()->isNewGroupUnknown()))
|
||||
initialFlags = OBJECT_FLAG_DYNAMIC_MASK;
|
||||
|
||||
Rooted<TaggedProto> protoRoot(cx, proto);
|
||||
|
Loading…
Reference in New Issue
Block a user