[pypy-svn] r76320 - pypy/branch/fast-ctypes/pypy/rlib
getxsick at codespeak.net
getxsick at codespeak.net
Thu Jul 22 22:11:10 CEST 2010
Author: getxsick
Date: Thu Jul 22 22:11:08 2010
New Revision: 76320
Modified:
pypy/branch/fast-ctypes/pypy/rlib/rjitffi.py
Log:
do not create CPU instances dynamically. some progress with translation heh.
Modified: pypy/branch/fast-ctypes/pypy/rlib/rjitffi.py
==============================================================================
--- pypy/branch/fast-ctypes/pypy/rlib/rjitffi.py (original)
+++ pypy/branch/fast-ctypes/pypy/rlib/rjitffi.py Thu Jul 22 22:11:08 2010
@@ -7,6 +7,8 @@
from pypy.jit.metainterp.resoperation import ResOperation, rop
from pypy.jit.metainterp.typesystem import deref
+GLOBAL_CPU = CPU(None, None)
+
class CDLL(object):
def __init__(self, name, load=True):
if load:
@@ -15,7 +17,7 @@
self.lib = None
self.name = name
- self.cpu = CPU(None, None)
+ self.cpu = GLOBAL_CPU
def get(self, func, args_type, res_type='v'):
return _Get(self.cpu, self.lib, func, args_type, res_type)
More information about the Pypy-commit
mailing list