Closed matthias-springer closed 9 years ago
I think RSqueak's model is fine as is for now.
In V3, Floats actually are word object, in Spur, I think tagged.
The VMMaker code for that prim apparently makes heavy assumptions on the object representation. Maybe we can generalize?
Floats are only tagged/immediate in 64 Bit Spur. Am 27.05.2015 21:00 schrieb "Tobias Pape" notifications@github.com:
I think RSqueak's model is fine as is for now.
In V3, Floats actually are word object, in Spur, I think tagged.
The VMMaker code for that prim apparently makes heavy assumptions on the object representation. Maybe we can generalize?
— Reply to this email directly or view it on GitHub https://github.com/HPI-SWA-Lab/RSqueak/issues/74#issuecomment-106036768.
Closed with #75?
The
primitiveFileWrite
VMMaker code can handle bytes objects and words objects:Everything that is not a pointers object or a bytes object is a words object (is there something wrong with our object model?):
However, in rsqueak,
isinstance(interp.space.wrap_float(0.0), model.W_WordsObject) is False
(and in Squeak:Float isWords
returnstrue
.RSqueak object model:
(
SmallInteger isWords
also returnstrue
in Squeak)