[Vm-dev] VM Maker: VMMaker.oscog-nice.1799.mcz

commits at source.squeak.org commits at source.squeak.org
Tue Apr 12 22:05:39 UTC 2016


Nicolas Cellier uploaded a new version of VMMaker to project VM Maker:
http://source.squeak.org/VMMaker/VMMaker.oscog-nice.1799.mcz

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

Name: VMMaker.oscog-nice.1799
Author: nice
Time: 12 April 2016, 11:59:55.459 pm
UUID: 6b9b0afb-6684-4974-8a2a-6df806baac7e
Ancestors: VMMaker.oscog-nice.1798

Oops, remove the future change that leaked out last commit.

=============== Diff against VMMaker.oscog-nice.1798 ===============

Item was removed:
- ----- Method: TConstantNode>>typeOrNilFrom:in: (in category 'type inference') -----
- typeOrNilFrom: aCodeGenerator in: aTMethod
- 	"For integers, answer int unless the value does not fit into a 32bits signed int.
- 	In that case, answer the shortest integer type that could hold the constant in order to match C behavior."
- 	| hb |
- 	value isInteger
- 		ifTrue:
- 			[value positive
- 				ifTrue:
- 					[hb := value highBit.
- 					hb < 32 ifTrue: [^#int].
- 					hb = 32 ifTrue: [^#'unsigned int'].
- 					hb = 64 ifTrue: [^#'unsigned long long'].
- 					^#'long long']
- 				ifFalse:
- 					[hb := value bitInvert highBit.
- 					hb < 32 ifTrue: [^#int].
- 					^#'long long']].
- 	value isFloat ifTrue: [^#double].
- 	(#(nil true false) includes: value) ifTrue: [^#int].
- 	^nil!



More information about the Vm-dev mailing list