FFI: FFI-Kernel-mt.71.mcz

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

FFI: FFI-Kernel-mt.71.mcz

commits-2
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]
- !