[squeak-dev] The Trunk: Kernel-dtl.756.mcz

commits at source.squeak.org commits at source.squeak.org
Wed May 1 03:12:17 UTC 2013


David T. Lewis uploaded a new version of Kernel to project The Trunk:
http://source.squeak.org/trunk/Kernel-dtl.756.mcz

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

Name: Kernel-dtl.756
Author: dtl
Time: 30 April 2013, 11:11:20.297 pm
UUID: ccdaa08e-5f15-4862-90bc-8413832f3363
Ancestors: Kernel-ul.755

Remove Integer>>hex8. This is used only in VMMaker for printing hex representations of 32-bit values. It should be maintained as a VMMaker extension, along with whatever extension may be required for formatted printing of 64-bit values.

Add Time class>>primPosixMicrosecondClockWithOffset in addition to primUTCMicrosecondClock and primLocalMicrosecondClock. There are three microsecond primitives that are (or will be) supported on all Cog and interpreter VMs that may be accessed as:

{
	Time primUTCMicrosecondClock .
	Time primLocalMicrosecondClock .
	Time primPosixMicrosecondClockWithOffset
}

=============== Diff against Kernel-ul.755 ===============

Item was removed:
- ----- Method: Integer>>hex8 (in category 'printing') -----
- hex8
- 	"Print the receiver in base 16 with prefixed base, using at least 8 digits.
- 	 DO NOT CHANGE THIS!!  The Cog VMMaker depends on this.
- 	 Consider using storeStringBase: 16 length: 11 padded: true instead."
- 	  "16r3333 hex8"
- 	| hex |
- 	hex := self hex.  "16rNNN"
- 	^hex size < 11
- 		ifTrue: [hex copyReplaceFrom: 4 to: 3
- 						 with: ('00000000' copyFrom: 1 to: 11-hex size)]
- 		ifFalse: [hex]!

Item was added:
+ ----- Method: Time class>>primPosixMicrosecondClockWithOffset (in category 'clock') -----
+ primPosixMicrosecondClockWithOffset
+ 	"Answer an array with UTC microseconds since the Posix epoch and the
+ 	current seconds offset from GMT in the local time zone."
+ 
+ 	<primitive: 'primitiveUtcWithOffset'>
+ 	^#(0 0)!



More information about the Squeak-dev mailing list