- Factored out compile() into compileUnit and compileStub