[pypy-commit] lang-smalltalk default: added interpreter-proxy minor 2 stubs

lwassermann noreply at buildbot.pypy.org
Tue Jun 18 16:04:03 CEST 2013


Author: Lars Wassermann <lars.wassermann at gmail.com>
Branch: 
Changeset: r446:e64194e6ea6c
Date: 2013-06-11 11:43 +0200
http://bitbucket.org/pypy/lang-smalltalk/changeset/e64194e6ea6c/

Log:	added interpreter-proxy minor 2 stubs

diff --git a/spyvm/interpreter_proxy.py b/spyvm/interpreter_proxy.py
--- a/spyvm/interpreter_proxy.py
+++ b/spyvm/interpreter_proxy.py
@@ -459,7 +459,6 @@
 def classString():
     return IProxy.space.w_String
 
-
 #     /* InterpreterProxy methodsFor: 'instance creation' */
 
 @expose_on_virtual_machine_proxy([oop], oop)
@@ -558,7 +557,6 @@
 
 #     /* InterpreterProxy methodsFor: 'compiler' */
 
-
 @expose_on_virtual_machine_proxy([], int)
 def compilerHookVector():
     print 'Called InterpreterProxy >> compilerHookVector'
@@ -590,24 +588,71 @@
     raise ProxyFunctionFailed
 
 # #if VM_PROXY_MINOR > 2
+ at expose_on_virtual_machine_proxy([], oop, minor=2)
+def classLargeNegativeInteger():
+    print 'Called InterpreterProxy >> classLargeNegativeInteger'
+    raise ProxyFunctionFailed
 
-#     sqInt (*classLargeNegativeInteger)(void);
-#     sqInt (*signed32BitIntegerFor)(sqInt integerValue);
-#     sqInt (*signed32BitValueOf)(sqInt oop);
-#     sqInt (*includesBehaviorThatOf)(sqInt aClass, sqInt aSuperClass);
-#     sqInt (*primitiveMethod)(void);
+ at expose_on_virtual_machine_proxy([int], oop, minor=2)
+def signed32BitIntegerFor(n):
+    print 'Called InterpreterProxy >> signed32BitIntegerFor'
+    raise ProxyFunctionFailed
+
+ at expose_on_virtual_machine_proxy([oop], int, minor=2)
+def signed32BitValueOf(w_number):
+    print 'Called InterpreterProxy >> signed32BitValueOf'
+    raise ProxyFunctionFailed
+
+ at expose_on_virtual_machine_proxy([oop, oop], int, minor=2)
+def includesBehaviorThatOf(w_class, w_superclass):
+    print 'Called InterpreterProxy >> includesBehaviorThatOf'
+    raise ProxyFunctionFailed
+
+ at expose_on_virtual_machine_proxy([], oop, minor=2)
+def primitiveMethod():
+    return IProxy.s_method.w_self()
 
 #     /* InterpreterProxy methodsFor: 'FFI support' */
 
-#     sqInt (*classExternalAddress)(void);
-#     sqInt (*classExternalData)(void);
-#     sqInt (*classExternalFunction)(void);
-#     sqInt (*classExternalLibrary)(void);
-#     sqInt (*classExternalStructure)(void);
-#     sqInt (*ioLoadModuleOfLength)(sqInt modIndex, sqInt modLength);
-#     sqInt (*ioLoadSymbolOfLengthFromModule)(sqInt fnIndex, sqInt fnLength, sqInt handle);
-#     sqInt (*isInMemory)(sqInt address);
+ at expose_on_virtual_machine_proxy([], oop, minor=2)
+def classExternalAddress():
+    print 'Called InterpreterProxy >> classExternalAddress'
+    raise ProxyFunctionFailed
 
+ at expose_on_virtual_machine_proxy([], oop, minor=2)
+def classExternalData():
+    print 'Called InterpreterProxy >> classExternalData'
+    raise ProxyFunctionFailed
+
+ at expose_on_virtual_machine_proxy([], oop, minor=2)
+def classExternalFunction():
+    print 'Called InterpreterProxy >> classExternalFunction'
+    raise ProxyFunctionFailed
+
+ at expose_on_virtual_machine_proxy([], oop, minor=2)
+def classExternalLibrary():
+    print 'Called InterpreterProxy >> classExternalLibrary'
+    raise ProxyFunctionFailed
+
+ at expose_on_virtual_machine_proxy([], oop, minor=2)
+def classExternalStructure():
+    print 'Called InterpreterProxy >> classExternalStructure'
+    raise ProxyFunctionFailed
+
+ at expose_on_virtual_machine_proxy([int, int], oop, minor=2)
+def ioLoadModuleOfLength(modIndex, modLength):
+    print 'Called InterpreterProxy >> ioLoadModuleOfLength'
+    raise ProxyFunctionFailed
+
+ at expose_on_virtual_machine_proxy([int, int, int], int, minor=2)
+def ioLoadSymbolOfLengthFromModule(fnIndex, fnLength, handle):
+    print 'Called InterpreterProxy >> ioLoadSymbolOfLengthFromModule'
+    raise ProxyFunctionFailed
+
+ at expose_on_virtual_machine_proxy([int], bool, minor=2)
+def isInMemory(address):
+    print 'Called InterpreterProxy >> isInMemory'
+    raise ProxyFunctionFailed
 # #endif
 
 # #if VM_PROXY_MINOR > 3


More information about the pypy-commit mailing list