[Vm-dev] VM Maker: VMMaker.oscog-tfel.1864.mcz
commits at source.squeak.org
commits at source.squeak.org
Fri May 20 16:01:30 UTC 2016
Tim Felgentreff uploaded a new version of VMMaker to project VM Maker:
http://source.squeak.org/VMMaker/VMMaker.oscog-tfel.1864.mcz
==================== Summary ====================
Name: VMMaker.oscog-tfel.1864
Author: tfel
Time: 20 May 2016, 5:59:56.886404 pm
UUID: 9568cdb7-bc2a-a049-a7b0-3d17905c53b9
Ancestors: VMMaker.oscog-tfel.1863
revert changes to Integer>>signedIntFromLong, they cost too much performance on Cog/Spur
=============== Diff against VMMaker.oscog-tfel.1863 ===============
Item was changed:
----- Method: Integer>>signedIntFromLong (in category '*VMMaker-interpreter simulator') -----
signedIntFromLong
"Self is a signed or unsigned 32-bit integer"
+
| bits |
+ (self >= -1073741824 and: [self <= 1073741823]) ifTrue: "These are known to be SmallIntegers..."
+ [^self].
- "If it's already 32bits, avoid computation"
- (self >= -16r80000000 and: [self <= 16r7FFFFFFF])
- ifTrue: [^self].
bits := self bitAnd: 16rFFFFFFFF.
(bits digitAt: 4) <= 16r7F ifTrue: [^bits].
^bits - 16r100000000!
More information about the Vm-dev
mailing list