[Vm-dev] VM Maker: VMMaker.oscog-tfel.1385.mcz
commits at source.squeak.org
commits at source.squeak.org
Fri Jun 26 08:46:38 UTC 2015
Tim Felgentreff uploaded a new version of VMMaker to project VM Maker:
http://source.squeak.org/VMMaker/VMMaker.oscog-tfel.1385.mcz
==================== Summary ====================
Name: VMMaker.oscog-tfel.1385
Author: tfel
Time: 26 June 2015, 10:44:51.305 am
UUID: 4e33063c-40a3-4d4f-b15d-cfc1f3cd80b0
Ancestors: VMMaker.oscog-tfel.1384
Copy changes from VMMaker-tfel.366
fix some code paths in the BalloonEngineSimulation that are used when rendering true type fonts
=============== Diff against VMMaker.oscog-tfel.1384 ===============
Item was changed:
----- Method: BalloonEngineSimulation>>loadPointShortAt:from: (in category 'simulation') -----
+ loadPointShortAt: index from: intArray
- loadPointShortAt: index from: intArray
"Load the short value from the given index in intArray"
-
| long |
long := intArray at: index // 2.
+ long isPoint
+ ifTrue: [^ (index bitAnd: 1)
+ = 0
+ ifTrue: [long x]
+ ifFalse: [long y]].
+ ^ ((index bitAnd: 1)
+ = 0
+ ifTrue: [interpreterProxy halfWordHighInLong32: long]
+ ifFalse: [interpreterProxy halfWordLowInLong32: long]) signedIntFromShort
- ^ ((index bitAnd: 1) = 0
- ifTrue:[interpreterProxy halfWordHighInLong32: long]
- ifFalse:[interpreterProxy halfWordLowInLong32: long])
- signedIntFromShort
!
Item was changed:
+ ----- Method: BalloonEngineSimulation>>loadWordTransformFrom:into:length: (in category 'simulation') -----
+ loadWordTransformFrom: transformOop into: destPtr length: n
- ----- Method: BalloonEngineSimulation>>loadWordTransformFrom:into:length: (in category 'initialize') -----
- loadWordTransformFrom: transformOop into: destPtr length: n
"Load a float array transformation from the given oop"
-
| srcPtr wordDestPtr |
+ false
+ ifTrue: [^ super
+ loadWordTransformFrom: transformOop
+ into: destPtr
+ length: n].
-
- false ifTrue:
- [^super loadWordTransformFrom: transformOop into: destPtr length: n].
-
srcPtr := interpreterProxy firstIndexableField: transformOop.
+ wordDestPtr := destPtr as: CArrayAccessor.
+ "Remove float conversion shell"
+ 0 to: n - 1
+ do: [:i | wordDestPtr at: i put: (srcPtr floatAt: i) asIEEE32BitWord]
+ !
- wordDestPtr := destPtr as: CArrayAccessor. "Remove float conversion shell"
- 0 to: n-1 do: [:i | wordDestPtr at: i put: (srcPtr floatAt: i)]!
Item was added:
+ ----- Method: CArrayAccessor>>floatAt: (in category 'accessing') -----
+ floatAt: index
+ ^ (self at: index) isFloat
+ ifTrue: [self at: index]
+ ifFalse: [Float
+ fromIEEE32Bit: (self at: index)]
+ !
More information about the Vm-dev
mailing list