Bug 1160535 part 1 - Give JSFunction its own AllocKind. r=terrence

This commit is contained in:
Jan de Mooij
2015-05-06 16:52:46 +02:00
parent 28fce60055
commit 70b031f550
28 changed files with 94 additions and 85 deletions

View File

@@ -1085,7 +1085,7 @@ NewObject(ExclusiveContext* cx, HandleObjectGroup group, gc::AllocKind kind,
MOZ_ASSERT(clasp != &ArrayObject::class_);
MOZ_ASSERT_IF(clasp == &JSFunction::class_,
kind == JSFunction::FinalizeKind || kind == JSFunction::ExtendedFinalizeKind);
kind == AllocKind::FUNCTION || kind == AllocKind::FUNCTION_EXTENDED);
// For objects which can have fixed data following the object, only use
// enough fixed slots to cover the number of reserved slots in the object,