[Vm-dev] VM Maker: VMMaker.oscog-EstebanLorenzano.1483.mcz
commits at source.squeak.org
commits at source.squeak.org
Tue Sep 29 15:25:05 UTC 2015
Esteban Lorenzano uploaded a new version of VMMaker to project VM Maker:
http://source.squeak.org/VMMaker/VMMaker.oscog-EstebanLorenzano.1483.mcz
==================== Summary ====================
Name: VMMaker.oscog-EstebanLorenzano.1483
Author: EstebanLorenzano
Time: 29 September 2015, 5:23:36.92365 pm
UUID: 5eea8d60-f0ba-409c-8c53-c96fcbf05e25
Ancestors: VMMaker.oscog-EstebanLorenzano.1482
reverted last change (was wrong)
=============== Diff against VMMaker.oscog-EstebanLorenzano.1482 ===============
Item was changed:
----- Method: Spur32BitMemoryManager>>floatValueOf: (in category 'interpreter access') -----
floatValueOf: oop
"Answer the C double precision floating point value of the argument,
or fail if it is not a Float, and answer 0.
Note: May be called by translated primitive code."
| isFloat result |
<returnTypeC: #double>
<var: #result type: #double>
isFloat := self isFloatInstance: oop.
isFloat ifTrue:
+ [self cCode: '' inSmalltalk: [result := Float new: 2].
- [self cCode: '' inSmalltalk: [result := 0.0].
self fetchFloatAt: oop + self baseHeaderSize into: result.
^result].
coInterpreter primitiveFail.
^0.0!
More information about the Vm-dev
mailing list