mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 951346 - Don't improve type information for objects with metadata, r=jimb.
This commit is contained in:
parent
6d31f2f597
commit
087ea8a8f8
3
js/src/jit-test/tests/basic/bug951346.js
Normal file
3
js/src/jit-test/tests/basic/bug951346.js
Normal file
@ -0,0 +1,3 @@
|
||||
|
||||
setObjectMetadataCallback(function(obj) {});
|
||||
eval(uneval({'-1':true}));
|
@ -2603,7 +2603,12 @@ TypeCompartment::fixObjectType(ExclusiveContext *cx, JSObject *obj)
|
||||
*/
|
||||
JS_ASSERT(obj->is<JSObject>());
|
||||
|
||||
if (obj->slotSpan() == 0 || obj->inDictionaryMode() || !obj->hasEmptyElements())
|
||||
/*
|
||||
* Exclude some objects we can't readily associate common types for based on their
|
||||
* shape. Objects with metadata are excluded so that the metadata does not need to
|
||||
* be included in the table lookup (the metadata object might be in the nursery).
|
||||
*/
|
||||
if (obj->slotSpan() == 0 || obj->inDictionaryMode() || !obj->hasEmptyElements() || obj->getMetadata())
|
||||
return;
|
||||
|
||||
Vector<IdValuePair> properties(cx);
|
||||
|
Loading…
Reference in New Issue
Block a user