Bug 912573 - Assert that JSCompartment::callsiteClones doesn't need post-barrier for now r=terrence

This commit is contained in:
Jon Coppeard 2013-10-16 09:45:27 +01:00
Родитель df837cc40e
Коммит 0d2128e393
1 изменённых файлов: 6 добавлений и 0 удалений

Просмотреть файл

@ -117,6 +117,12 @@ js::CloneFunctionAtCallsite(JSContext *cx, HandleFunction fun, HandleScript scri
JS_ASSERT(!fun->nonLazyScript()->enclosingStaticScope());
JS_ASSERT(types::UseNewTypeForClone(fun));
/*
* If we start allocating function objects in the nursery, then the callsite
* clone table will need a postbarrier.
*/
JS_ASSERT(fun->isTenured());
typedef CallsiteCloneKey Key;
typedef CallsiteCloneTable Table;