mirror of
https://github.com/HeyPuter/firefox.git
synced 2026-11-26 04:22:30 -10:00
Bug 1236546 - Don't deoptimize in ObjectGroup::defaultNewGroup when we have a null proto. r=bhackett
This commit is contained in:
1 parent
b4a9142549
commit
12243283fd
1 file changed
+1
-1
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user