mark classes containing object array fields as needing an object mask in type-generator.cpp

This commit is contained in:
Joel Dice 2007-12-07 10:05:10 -07:00
parent c096c8f1e4
commit d057ac6a47

View File

@ -1951,6 +1951,11 @@ writeConstructors(Output* out, Object* declarations)
out->write(obfuscate(memberName(m)));
out->write(");\n");
hasObjectMask = true;
} else if (m->type == Object::Array
and equal(memberTypeName(m), "object")
and not memberNoGC(m))
{
hasObjectMask = true;
}
}