[Vm-dev] VM Maker: VMMaker.oscog-eem.3036.mcz

commits at source.squeak.org commits at source.squeak.org
Fri Aug 13 19:41:06 UTC 2021


Eliot Miranda uploaded a new version of VMMaker to project VM Maker:
http://source.squeak.org/VMMaker/VMMaker.oscog-eem.3036.mcz

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

Name: VMMaker.oscog-eem.3036
Author: eem
Time: 13 August 2021, 12:40:47.396247 pm
UUID: fd0232e3-7636-4a03-b3d6-fba435276c3d
Ancestors: VMMaker.oscog-eem.3035

oops; #'usqIntptr_t *', not #usqIntptr_t

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

Item was changed:
  ----- Method: ThreadedFFIPlugin>>primitiveExternalAddressFromInteger (in category 'primitives') -----
  primitiveExternalAddressFromInteger
  	"Answer a 4 byte or 8 byte ExternalAddress with value of the argument."
  	<export: true flags: #FastCPrimitiveFlag>
  	| value |
  	value := interpreterProxy positiveMachineIntegerValueOf: (interpreterProxy stackValue: 0).
  	interpreterProxy failed ifTrue:
  		[^interpreterProxy primitiveFailFor: PrimErrBadArgument].
  	(interpreterProxy instantiateClass: interpreterProxy classExternalAddress indexableSize: BytesPerWord)
  		ifNil: [^interpreterProxy primitiveFailFor: PrimErrNoMemory]
  		ifNotNil:
  			[:address|
+ 			(self cCoerce: (interpreterProxy firstIndexableField: address) to: #'usqIntptr_t *') at: 0 put: value.
- 			(self cCoerce: (interpreterProxy firstIndexableField: address) to: #usqIntptr_t) at: 0 put: value.
  			^interpreterProxy methodReturnValue: address]!



More information about the Vm-dev mailing list