[pypy-commit] pypy kill-ootype: remove jvm leftovers
rlamy
noreply at buildbot.pypy.org
Fri Jul 26 19:12:04 CEST 2013
Author: Ronan Lamy <ronan.lamy at gmail.com>
Branch: kill-ootype
Changeset: r65694:480b7924a59a
Date: 2013-07-26 18:11 +0100
http://bitbucket.org/pypy/pypy/changeset/480b7924a59a/
Log: remove jvm leftovers
diff --git a/rpython/translator/driver.py b/rpython/translator/driver.py
--- a/rpython/translator/driver.py
+++ b/rpython/translator/driver.py
@@ -529,6 +529,7 @@
goals = self.backend_select_goals(goals)
return self._execute(goals, task_skip = self._maybe_skip())
+ @staticmethod
def from_targetspec(targetspec_dic, config=None, args=None,
empty_translator=None,
disable=[],
@@ -538,13 +539,6 @@
driver = TranslationDriver(config=config, default_goal=default_goal,
disable=disable)
- # patch some attributes of the os module to make sure they
- # have the same value on every platform.
- backend, ts = driver.get_backend_and_type_system()
- if backend in ('cli', 'jvm'):
- from rpython.translator.oosupport.support import patch_os
- driver.old_cli_defs = patch_os()
-
target = targetspec_dic['target']
spec = target(driver, args)
@@ -558,11 +552,8 @@
policy=policy,
extra=targetspec_dic,
empty_translator=empty_translator)
-
return driver
- from_targetspec = staticmethod(from_targetspec)
-
def prereq_checkpt_rtype(self):
assert 'rpython.rtyper.rmodel' not in sys.modules, (
"cannot fork because the rtyper has already been imported")
diff --git a/rpython/translator/interactive.py b/rpython/translator/interactive.py
--- a/rpython/translator/interactive.py
+++ b/rpython/translator/interactive.py
@@ -127,14 +127,3 @@
self.ensure_backend('c')
self.driver.compile_c()
return self.driver.c_entryp
-
- def compile_jvm(self, **kwds):
- self.update_options(kwds)
- self.ensure_backend('jvm')
- self.driver.compile_jvm()
- return self.driver.c_entryp
-
- def source_jvm(self, **kwds):
- self.update_options(kwds)
- self.ensure_backend('jvm')
- self.driver.source_jvm()
More information about the pypy-commit
mailing list