def __init__(self, tmpdir, translator, entrypoint): """ 'tmpdir' --- where the generated files will go. In fact, we will put our binaries into the directory pypy/jvm 'translator' --- a TranslationContext object 'entrypoint' --- if supplied, an object with a render method """ GenOO.__init__(self, tmpdir, translator, entrypoint) self.jvmsrc = JvmGeneratedSource(tmpdir, getoption('package'))
def __init__(self, tmpdir, translator, entrypoint): """ 'tmpdir' --- where the generated files will go. In fact, we will put our binaries into the directory pypy/jvm 'translator' --- a TranslationContext object 'entrypoint' --- if supplied, an object with a render method """ GenOO.__init__(self, tmpdir, translator, entrypoint) self.jvmsrc = JvmGeneratedSource(tmpdir, getoption("package"))
def __init__(self, tmpdir, translator, entrypoint, config=None, exctrans=False): GenOO.__init__(self, tmpdir, translator, entrypoint, config, exctrans) self.assembly_name = entrypoint.get_name() self.tmpfile = tmpdir.join(self.assembly_name + '.il') self.const_stat = str(tmpdir.join('const_stat')) rtyper = translator.rtyper bk = rtyper.annotator.bookkeeper clsdef = bk.getuniqueclassdef(Exception) ll_Exception = rtyper.exceptiondata.get_standard_ll_exc_instance(rtyper, clsdef) self.EXCEPTION = ll_Exception._inst._TYPE
def __init__(self, tmpdir, translator, entrypoint, config=None, exctrans=False): GenOO.__init__(self, tmpdir, translator, entrypoint, config, exctrans) self.assembly_name = entrypoint.get_name() self.tmpfile = tmpdir.join(self.assembly_name + '.il') self.const_stat = str(tmpdir.join('const_stat')) rtyper = translator.rtyper bk = rtyper.annotator.bookkeeper clsdef = bk.getuniqueclassdef(Exception) ll_Exception = rtyper.exceptiondata.get_standard_ll_exc_instance( rtyper, clsdef) self.EXCEPTION = ll_Exception._inst._TYPE