VM Maker: VMMaker.oscog-akg.2475.mcz

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

VM Maker: VMMaker.oscog-akg.2475.mcz

commits-2
 
Alistair Grant uploaded a new version of VMMaker to project VM Maker:
http://source.squeak.org/VMMaker/VMMaker.oscog-akg.2475.mcz

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

Name: VMMaker.oscog-akg.2475
Author: akg
Time: 24 October 2018, 9:35:22.433918 pm
UUID: 537fa25e-b15a-43e2-8165-fd19ed489e84
Ancestors: VMMaker.oscog-akg.2474

Add LocalePluginSimulator

This allows LocalTimeZone>>primOffset to succeed, setting the same timezone within the simulated image to the value of the simulator timezone.

=============== Diff against VMMaker.oscog-akg.2474 ===============

Item was added:
+ ----- Method: LocalePlugin class>>moduleName (in category 'translation') -----
+ moduleName
+
+ ^ 'LocalePlugin'!

Item was added:
+ ----- Method: LocalePlugin class>>shouldBeTranslated (in category 'translation') -----
+ shouldBeTranslated
+ ^true!

Item was added:
+ ----- Method: LocalePlugin class>>simulatorClass (in category 'simulation') -----
+ simulatorClass
+ ^LocalePluginSimulator!

Item was added:
+ LocalePlugin subclass: #LocalePluginSimulator
+ instanceVariableNames: ''
+ classVariableNames: ''
+ poolDictionaries: ''
+ category: 'VMMaker-Plugins'!

Item was added:
+ ----- Method: LocalePluginSimulator class>>shouldBeTranslated (in category 'translation') -----
+ shouldBeTranslated
+ "This class should not be translated"
+ ^false!

Item was added:
+ ----- Method: LocalePluginSimulator>>primitiveTimezoneOffset (in category 'primitives') -----
+ primitiveTimezoneOffset
+ "return the number of minutes this VM's time value is offset from UTC
+ For the simulation, use the same timezone as the simulator."
+
+ interpreterProxy methodReturnInteger: (DateAndTime localTimeZone offset asSeconds / 60) rounded!

Item was added:
+ ----- Method: LocalePluginSimulator>>sqLocInitialize (in category 'simulation') -----
+ sqLocInitialize
+
+ ^true!