[pypy-svn] r54877 - pypy/branch/smalltalk-shadow-changes/pypy/lang/smalltalk
tverwaes at codespeak.net
tverwaes at codespeak.net
Sun May 18 00:05:13 CEST 2008
Author: tverwaes
Date: Sun May 18 00:05:12 2008
New Revision: 54877
Modified:
pypy/branch/smalltalk-shadow-changes/pypy/lang/smalltalk/model.py
pypy/branch/smalltalk-shadow-changes/pypy/lang/smalltalk/primitives.py
Log:
- removing all "as_x_get_shadow" for elements which will be come wrappers
- disabled the primitive using as_x_get_shadow
Modified: pypy/branch/smalltalk-shadow-changes/pypy/lang/smalltalk/model.py
==============================================================================
--- pypy/branch/smalltalk-shadow-changes/pypy/lang/smalltalk/model.py (original)
+++ pypy/branch/smalltalk-shadow-changes/pypy/lang/smalltalk/model.py Sun May 18 00:05:12 2008
@@ -278,26 +278,6 @@
from pypy.lang.smalltalk.shadow import ClassShadow
return self.as_special_get_shadow(ClassShadow)
- def as_link_get_shadow(self):
- from pypy.lang.smalltalk.shadow import LinkShadow
- return self.as_special_get_shadow(LinkShadow)
-
- def as_semaphore_get_shadow(self):
- from pypy.lang.smalltalk.shadow import SemaphoreShadow
- return self.as_special_get_shadow(SemaphoreShadow)
-
- def as_linkedlist_get_shadow(self):
- from pypy.lang.smalltalk.shadow import LinkedListShadow
- return self.as_special_get_shadow(LinkedListShadow)
-
- def as_process_get_shadow(self):
- from pypy.lang.smalltalk.shadow import ProcessShadow
- return self.as_special_get_shadow(ProcessShadow)
-
- def as_scheduler_get_shadow(self):
- from pypy.lang.smalltalk.shadow import SchedulerShadow
- return self.as_special_get_shadow(SchedulerShadow)
-
def as_blockcontext_get_shadow(self, invalid=True):
from pypy.lang.smalltalk.shadow import BlockContextShadow
return self.as_special_get_shadow(BlockContextShadow, invalid)
Modified: pypy/branch/smalltalk-shadow-changes/pypy/lang/smalltalk/primitives.py
==============================================================================
--- pypy/branch/smalltalk-shadow-changes/pypy/lang/smalltalk/primitives.py (original)
+++ pypy/branch/smalltalk-shadow-changes/pypy/lang/smalltalk/primitives.py Sun May 18 00:05:12 2008
@@ -728,10 +728,10 @@
@expose_primitive(PRIMITIVE_SIGNAL, unwrap_spec=[object])
def func(interp, w_rcvr):
#if w_rcvr.getclass() != classtable.classtable['w_Semaphore']:
- # raise PrimitiveFailedError()
- assert isinstance(w_rcvr, model.W_PointersObject)
- w_rcvr.as_semaphore_get_shadow().synchronous_signal(interp)
- return w_rcvr
+ raise PrimitiveFailedError()
+ #assert isinstance(w_rcvr, model.W_PointersObject)
+ #w_rcvr.as_semaphore_get_shadow().synchronous_signal(interp)
+ #return w_rcvr
@expose_primitive(PRIMITIVE_WAIT, unwrap_spec=[object])
def func(interp, w_rcvr):
More information about the Pypy-commit
mailing list