[squeak-dev] The Trunk: Kernel-eem.1419.mcz

commits at source.squeak.org commits at source.squeak.org
Thu Oct 21 19:02:25 UTC 2021


Eliot Miranda uploaded a new version of Kernel to project The Trunk:
http://source.squeak.org/trunk/Kernel-eem.1419.mcz

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

Name: Kernel-eem.1419
Author: eem
Time: 21 October 2021, 12:02:22.351426 pm
UUID: c8e298e1-78ac-453c-8460-d89e539f636d
Ancestors: Kernel-eem.1418

Use bytecode set specific canBeSpecialLiteral: when checking if a method hasLiteral:.

=============== Diff against Kernel-eem.1418 ===============

Item was changed:
  ----- Method: CompiledCode>>hasLiteral: (in category 'literals') -----
  hasLiteral: aLiteral
+ 	"Overwrite this method to invoke the bytecode encoder scanner explicitly. This might be removed if there would be a way to enumerate special literals in a compiled-code object. See #allLiteralsDo:."
- 	"Overwrite this method to invoke the bytecode encoder scanner explicitely. This might be removed if there would be a way to enumerate special literals in a compiled-code object. See #allLiteralsDo:."
  
  	^ self
  		hasLiteral: aLiteral
+ 		scanForSpecial: (self encoderClass canBeSpecialLiteral: aLiteral)!
- 		scanForSpecial: (BytecodeEncoder canBeSpecialLiteral: aLiteral)!



More information about the Squeak-dev mailing list