[Vm-dev] VM Maker: VMMaker-dtl.254.mcz

commits at source.squeak.org commits at source.squeak.org
Thu Sep 8 11:49:33 UTC 2011


David T. Lewis uploaded a new version of VMMaker to project VM Maker:
http://source.squeak.org/VMMaker/VMMaker-dtl.254.mcz

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

Name: VMMaker-dtl.254
Author: dtl
Time: 8 September 2011, 7:48:45.243 am
UUID: 0461a946-5eed-4517-adda-62122f66f2a2
Ancestors: VMMaker-dtl.253

VMMaker 4.7.11

A minor cleanup, bytesPerWord and baseHeaderSize are implemented in the C translation dictionary, so do not use cCode:inSmalltalk: (which was redundant and therefore confusing).

n.g. Implementing these in the translation dictionary makes them available to plugins that use the self bytesPerWord idiom. The oscog and trunk branches can implement the translations as required to support plugins such as FreetypePlugin, which are externally maintained and must work for both oscog and trunk.

=============== Diff against VMMaker-dtl.253 ===============

Item was added:
+ ----- Method: InterpreterSimulator>>baseHeaderSize (in category 'memory access') -----
+ baseHeaderSize
+ 	"Answer the size of an object memory header word in bytes."
+ 
+ 	^self bytesPerWord!

Item was changed:
  ----- Method: ObjectMemory>>baseHeaderSize (in category 'constants') -----
  baseHeaderSize
+ 	"Answer the size of an object memory header word in bytes. This selector is
+ 	handled in the C translation dictionary."
- 	"Answer the size of an object memory header word in bytes."
  
+ 	self subclassResponsibility "InterpreterSimulator"
- 	<inline: true>
- 	^self cCode: 'BASE_HEADER_SIZE' inSmalltalk: [self bytesPerWord]
  !

Item was changed:
  ----- Method: ObjectMemory>>bytesPerWord (in category 'constants') -----
  bytesPerWord
+ 	"Answer the size of an object memory word in bytes. This selector is
+ 	handled in the C translation dictionary."
- 	"Answer the size of an object memory word in bytes."
  
+ 	self subclassResponsibility "InterpreterSimulator"
- 	<inline: true>
- 	^self
- 		cCode: 'BYTES_PER_WORD'
- 		inSmalltalk: [self subclassResponsibility "InterpreterSimulator"]
  !

Item was changed:
  ----- Method: VMMaker class>>versionString (in category 'version testing') -----
  versionString
  
  	"VMMaker versionString"
  
+ 	^'4.7.11'!
- 	^'4.7.10'!



More information about the Vm-dev mailing list