[Vm-dev] VM Maker: VMMaker.oscog-topa.1900.mcz

commits at source.squeak.org commits at source.squeak.org
Mon Jul 11 08:53:04 UTC 2016


Tim Felgentreff uploaded a new version of VMMaker to project VM Maker:
http://source.squeak.org/VMMaker/VMMaker.oscog-topa.1900.mcz

==================== Summary ====================

Name: VMMaker.oscog-topa.1900
Author: topa
Time: 11 July 2016, 10:30:07.188629 am
UUID: b90b9fe5-71c9-49f4-948b-4ebfbb63dcb6
Ancestors: VMMaker.oscog-eem.1899

Add Primitive ScreenScaleFactor as primitive 104.

 - 104 was numbered primitiveDrawLoop but that has been a named primitve for more than 10 years now.
 - Requires platform support as of git commit 5dc6440

In 1900, Hilbert stated his list of 23 problems, quantum physics was conceived, Fessenden made the first audio radio transmission, Villard discovered gamma rays, and Louis' Lunch served the first hamburger.

=============== Diff against VMMaker.oscog-eem.1899 ===============

Item was added:
+ ----- Method: CogVMSimulator>>ioScreenScaleFactor (in category 'I/O primitives support') -----
+ ioScreenScaleFactor
+ 	^ 1.0!

Item was changed:
  ----- Method: Interpreter class>>initializePrimitiveTable (in category 'initialization') -----
(excessive size, no diff calculated)

Item was added:
+ ----- Method: InterpreterPrimitives>>primitiveScreenScaleFactor (in category 'I/O primitives') -----
+ primitiveScreenScaleFactor
+ 	"Answer a float indicating the current scale factor for pixels of the Smalltalk window."
+ 	| factor |
+ 	<export: true>
+ 	<var: #factor type: #double>
+ 	factor := self ioScreenScaleFactor.
+ 	self failed ifTrue:[^self primitiveFail].
+ 	self pop: 1; pushFloat: factor.!

Item was added:
+ ----- Method: InterpreterSimulator>>ioScreenScaleFactor (in category 'I/O primitives support') -----
+ ioScreenScaleFactor
+ 	^ 1.0!

Item was added:
+ ----- Method: InterpreterSimulator>>primitiveScreenScaleFactor (in category 'I/O primitives') -----
+ primitiveScreenScaleFactor "Dummied for now"
+ 
+ 	self pop: 1.
+ 	self pushFloat: 1.0
+ !

Item was changed:
  ----- Method: StackInterpreter class>>initializePrimitiveTable (in category 'initialization') -----
(excessive size, no diff calculated)

Item was added:
+ ----- Method: StackInterpreterSimulator>>ioScreenScaleFactor (in category 'I/O primitives support') -----
+ ioScreenScaleFactor
+ 	^ 1.0!



More information about the Vm-dev mailing list