[pypy-svn] r47849 - pypy/dist/pypy/lang/smalltalk
akuhn at codespeak.net
akuhn at codespeak.net
Wed Oct 24 18:45:14 CEST 2007
Author: akuhn
Date: Wed Oct 24 18:45:14 2007
New Revision: 47849
Modified:
pypy/dist/pypy/lang/smalltalk/constants.py
Log:
added constants for special object indices
Modified: pypy/dist/pypy/lang/smalltalk/constants.py
==============================================================================
--- pypy/dist/pypy/lang/smalltalk/constants.py (original)
+++ pypy/dist/pypy/lang/smalltalk/constants.py Wed Oct 24 18:45:14 2007
@@ -12,3 +12,50 @@
CLASS_SUPERCLASS_INDEX = 0
CLASS_METHODDICT_INDEX = 1
CLASS_FORMAT_INDEX = 2
+
+
+# ----- special objects indices -------
+
+SO_NIL = 0
+SO_FALSE = 1
+SO_TRUE = 2
+SO_SCHEDULERASSOCIATIONPOINTER = 3
+SO_BITMAP_CLASS = 4
+SO_SMALLINTEGER_CLASS = 5
+SO_STRING_CLASS = 6
+SO_ARRAY_CLASS = 7
+SO_SMALLTALK = 8
+SO_FLOAT_CLASS = 9
+SO_METHODCONTEXT_CLASS = 10
+SO_BLOCKCONTEXT_CLASS = 11
+SO_POINT_CLASS = 12
+SO_LARGEPOSITIVEINTEGER_CLASS = 13
+SO_DISPLAY_CLASS = 14
+SO_MESSAGE_CLASS = 15
+SO_COMPILEDMETHOD_CLASS = 16
+SO_LOW_SPACE_SEMAPHORE = 17
+SO_SEMAPHORE_CLASS = 18
+SO_CHARACTER_CLASS = 19
+SO_DOES_NOT_UNDERSTAND = 20
+SO_CANNOT_RETURN = 21
+# no clue what 22 is doing
+SO_SPECIAL SELECTORS ARRAY = 23
+SO_CHARACTER TABLE ARRAY = 24
+SO_MUST_BE_BOOLEAN = 25
+SO_BYTEARRAY_CLASS = 26
+SO_PROCESS_CLASS = 27
+SO_COMPACT_CLASSES_ARRAY = 28
+SO_DELAY_SEMAPHORE = 29
+SO_USER_INTERRUPT_SEMAPHORE = 30
+SO_FLOAT_ZERO = 31
+SO_LARGEPOSITIVEINTEGER_ZERO = 32
+SO_A_POINT = 33
+SO_CANNOT_INTERPRET = 34
+SO_A_METHODCONTEXT = 35
+# no clue what 36 is doing
+SO_A_BLOCKCONTEXT = 37
+SO_AN_ARRAY = 38
+SO_PSEUDOCONTEXT_CLASS = 39
+SO_TRANSLATEDMETHOD_CLASS = 40
+SO_FINALIZATION_SEMPAHORE = 41
+SO_LARGENEGATIVEINTEGER_CLASS = 42
More information about the Pypy-commit
mailing list