HomePhabricator

Do not generate new instance helper for abstract extension classes

Description

Do not generate new instance helper for abstract extension classes

Abstract classes can't be constructed. Don't generate helper for
constructing new instances of such classes. Set null to m_InstanceCtor
field of HhbcExtClassInfo that eventually gets passed to m_InstanceCtor
of Class. The Instance::newInstance() then ends up raising correct
exception.

Details

Provenance
janAuthored on
Sara GolemonCommitted on Mar 9 2013, 1:52 AM
Parents
rOSHD830c48eb8ae6: Add null check in EmitterVisitor::requiresDeepInit
Branches
Unknown
Tags
Unknown
ChangeId
None