[Vm-dev] VM Maker: FileAttributesPlugin.oscog-eem.62.mcz

commits at source.squeak.org commits at source.squeak.org
Mon Jul 18 17:07:55 UTC 2022


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

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

Name: FileAttributesPlugin.oscog-eem.62
Author: eem
Time: 18 July 2022, 10:07:54.180997 am
UUID: ebb2584e-9c7a-4f03-aa3e-4f6f68bb8d05
Ancestors: FileAttributesPlugin.oscog-eem.61

Remove unused method that uses annoying is:KindOf:

=============== Diff against FileAttributesPlugin.oscog-eem.61 ===============

Item was removed:
- ----- Method: FileAttributesPlugin>>pointerFrom: (in category 'private - directory') -----
- pointerFrom: directoryPointerBytes
- 	"Answer the machine address contained in anExternalAddressOop."
- 
- 	| ptr addressUnion idx |
- 	<returnTypeC: #'void *'>
- 	<var: 'ptr' type: #'unsigned char *'>
- 	<var: 'addressUnion' type: 'union {void *address; unsigned char bytes[sizeof(void *)];}'>
- 	((interpreterProxy is: directoryPointerBytes KindOf: 'ByteArray') and:
- 		[(interpreterProxy stSizeOf: directoryPointerBytes) = self sizeOfPointer])
- 		ifFalse: [^ nil].
- 	ptr := interpreterProxy arrayValueOf: directoryPointerBytes.
- 	idx := 0.
- 	[idx < self sizeOfPointer] whileTrue:
- 		[self cCode: 'addressUnion.bytes[idx] = ptr[idx]'.
- 		idx := idx + 1].
- 	^ self cCode: 'addressUnion.address' inSmalltalk: [addressUnion]
- !



More information about the Vm-dev mailing list