зеркало из https://github.com/mozilla/gecko-dev.git
Bug 888463 - Remove code to skip shrinkSlots for call objects. r=jandem
This commit is contained in:
Родитель
e818cf6613
Коммит
9833432481
|
@ -2611,15 +2611,6 @@ JSObject::shrinkSlots(JSContext *cx, HandleObject obj, uint32_t oldCount, uint32
|
||||||
{
|
{
|
||||||
JS_ASSERT(newCount < oldCount);
|
JS_ASSERT(newCount < oldCount);
|
||||||
|
|
||||||
/*
|
|
||||||
* Refuse to shrink slots for call objects. This only happens in a very
|
|
||||||
* obscure situation (deleting names introduced by a direct 'eval') and
|
|
||||||
* allowing the slots pointer to change may require updating pointers in
|
|
||||||
* the function's active args/vars information.
|
|
||||||
*/
|
|
||||||
if (obj->is<CallObject>())
|
|
||||||
return;
|
|
||||||
|
|
||||||
if (newCount == 0) {
|
if (newCount == 0) {
|
||||||
FreeSlots(cx, obj->slots);
|
FreeSlots(cx, obj->slots);
|
||||||
obj->slots = NULL;
|
obj->slots = NULL;
|
||||||
|
|
Загрузка…
Ссылка в новой задаче