Two questions if you have time.
Looking at the VMBasicsConstants, some observations.
We have UPPERCASE and CamelCase values. We have what appear to be Directives: GCModeFull, DoAssertionChecks, etc. Defines: BaseHeaderSize, ByteXMask, etc.
Question 1. are Directives and Defines a correct categorization? and are there categorizations I am missing? (I am sure I could intuit these with time, but knowing this ahead of time would be a time-saver)
Question 2. I would like to verify the heuristics of COGMTVM COGVM STACKVM
When I load these into the script to boot the simulator, like this:
| vm | Transcript clear. vm := StackInterpreterSimulator newWithOptions: #(#COGVM true)." vm openOn: '/home/wm/usr/src/smalltalk/buildCogDevelopmentImageCog.app/Contents/Resources/Squeak4.4.image'. vm openAsMorph; run
I am assuming that I am informing the StackInterpreterSimulator that it is executing on a COGVM image (which I am running) and that if I was running multi-threading enabled cog, I would feed it the #COGMTVM. I am NOT telling the Interpreter that its target is an image that has been 'fingerprinted' by being run with those VM's in the past. (I have in mind the early releases of Cog where when you ran an old VM on an image, then switched to Cog it warned you that it was a one-way-street).
thanks for your time.
tty.
BaseHeaderSize Byte0Mask Byte0Shift Byte1Mask Byte1Shift Byte1ShiftNegated Byte2Mask Byte2Shift Byte3Mask Byte3Shift Byte3ShiftNegated Byte4Mask Byte4Shift Byte4ShiftNegated Byte5Mask Byte5Shift Byte5ShiftNegated Byte6Mask Byte6Shift Byte7Mask Byte7Shift Byte7ShiftNegated Bytes3to0Mask Bytes7to4Mask BytesPerOop BytesPerWord COGMTVM COGVM DisownVMLockOutFullGC DoAssertionChecks DoExpensiveAssertionChecks GCModeBecome GCModeFull GCModeIncr GCModeScavenge IMMUTABILITY MULTIPLEBYTECODESETS NewspeakVM PrimErrBadArgument PrimErrBadIndex PrimErrBadMethod PrimErrBadNumArgs PrimErrBadReceiver PrimErrGenericFailure PrimErrInappropriate PrimErrLimitExceeded PrimErrNamedInternal PrimErrNoCMemory PrimErrNoMemory PrimErrNoModification PrimErrNotFound PrimErrObjectIsPinned PrimErrObjectMayMove PrimErrUnsupported PrimNoErr STACKVM ShiftForWord VMBIGENDIAN
vm-beginners@lists.squeakfoundation.org