[squeak-dev] FFI: FFI-Kernel-mt.71.mcz

commits at source.squeak.org commits at source.squeak.org
Wed May 20 09:15:48 UTC 2020


Marcel Taeumel uploaded a new version of FFI-Kernel to project FFI:
http://source.squeak.org/FFI/FFI-Kernel-mt.71.mcz

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

Name: FFI-Kernel-mt.71
Author: mt
Time: 20 May 2020, 11:15:47.8215 am
UUID: 727723ad-c0b8-284b-874b-7be0bd5fb346
Ancestors: FFI-Kernel-mt.70

Minor code clean-up as suggested by Eliot (eem). Might even be a tiny bit faster now ... but maybe it is just noise.

=============== Diff against FFI-Kernel-mt.70 ===============

Item was changed:
  ----- Method: CompiledMethod>>externalLibraryFunction (in category '*FFI-Kernel') -----
  externalLibraryFunction
  	"Answers the external library function that will be called when evaluating this method."
  
  	| result |
+ 	^ self numLiterals > 0 ifTrue:
+ 		[(result := self literalAt: 1) class == ExternalLibraryFunction ifTrue: [result]]!
- 	self numLiterals = 0 ifTrue: [^ nil].
- 	^ (result := self literalAt: 1) class == ExternalLibraryFunction
- 		ifTrue: [result]
- 		ifFalse: [nil]
- 	!



More information about the Squeak-dev mailing list