Bug 966575 part 7.5 -- Assert descrs are pretenured in jit r=sfink

This commit is contained in:
Nicholas D. Matsakis 2014-02-06 11:14:11 -05:00
parent dc39632804
commit 0a7b36d8a9

View File

@ -51,6 +51,11 @@ TypeDescrSetBuilder::TypeDescrSetBuilder()
bool
TypeDescrSetBuilder::insert(TypeDescr *descr)
{
// All type descriptors should be tenured, so it is safe to assume
// that the pointers do not change during compilation, since no
// major GC can overlap with compilation.
JS_ASSERT(!GetIonContext()->runtime->isInsideNursery(descr));
if (invalid_)
return true;