зеркало из https://github.com/mozilla/gecko-dev.git
Sample initialShape after putProperty call, which may go toDictionaryMode (596128, r=bhackett).
This commit is contained in:
Родитель
7e383a400f
Коммит
8c380c404e
|
@ -647,6 +647,14 @@ class SetPropCompiler : public PICStubCompiler
|
|||
if (!shape)
|
||||
return false;
|
||||
|
||||
/*
|
||||
* Test after calling putProperty since it can switch obj into
|
||||
* dictionary mode, specifically if the shape tree ancestor line
|
||||
* exceeds PropertyTree::MAX_HEIGHT.
|
||||
*/
|
||||
if (obj->inDictionaryMode())
|
||||
return disable("dictionary");
|
||||
|
||||
if (!shape->hasDefaultSetter())
|
||||
return disable("adding non-default setter");
|
||||
if (!shape->hasSlot())
|
||||
|
|
Загрузка…
Ссылка в новой задаче