[squeak-dev] The Trunk: Kernel-mt.1455.mcz
commits at source.squeak.org
commits at source.squeak.org
Fri Apr 8 15:01:15 UTC 2022
Marcel Taeumel uploaded a new version of Kernel to project The Trunk:
http://source.squeak.org/trunk/Kernel-mt.1455.mcz
==================== Summary ====================
Name: Kernel-mt.1455
Author: mt
Time: 8 April 2022, 5:01:12.029214 pm
UUID: 780e981f-4713-6048-a23a-26cf75a369b9
Ancestors: Kernel-ul.1454
Renames #useSista: to #useSistaBytecodeSet:. Keep the change stamp.
=============== Diff against Kernel-ul.1454 ===============
Item was removed:
- ----- Method: CompiledCode class>>useSista: (in category 'method encoding') -----
- useSista: useSistaEncoder
- "Switch to or from the Sista bytecode encoder, and recompile the system
- using that encoder. Assumes that Compiler recompileAll is working for the
- existing system. Assumes that the currently available primary and secondary
- bytecode encoders are EncoderForV3PlusClosures and EncoderForSistaV1.
- This is a convenience method that must be updated as the available encoders
- are changed."
-
- "CompiledCode useSista: true"
- "CompiledCode useSista: false"
-
- | standardEncoder sistaEncoder activeEncoder |
- standardEncoder := Smalltalk classNamed: #EncoderForV3PlusClosures.
- sistaEncoder := Smalltalk classNamed: #EncoderForSistaV1.
- activeEncoder := self preferredBytecodeSetEncoderClass.
- useSistaEncoder
- ifTrue: [sistaEncoder ifNil: [self error: 'EncoderForSistaV1 not present in this image'].
- self preferredBytecodeSetEncoderClass: sistaEncoder.
- activeEncoder ~= sistaEncoder
- ifTrue: [(Smalltalk classNamed: #Compiler) recompileAll.
- self multipleBytecodeSetsActive: true "VM should support Sista plus V3" ]]
- ifFalse: [standardEncoder ifNil: [self error: 'EncoderForV3PlusClosures not present in this image'].
- self preferredBytecodeSetEncoderClass: standardEncoder.
- activeEncoder ~= standardEncoder
- ifTrue: [(Smalltalk classNamed: #Compiler) recompileAll.
- self multipleBytecodeSetsActive: false "VM needs to support V3 only" ]].
-
- !
Item was added:
+ ----- Method: CompiledCode class>>useSistaBytecodeSet: (in category 'method encoding') -----
+ useSistaBytecodeSet: useSistaEncoder
+ "Switch to or from the Sista bytecode encoder, and recompile the system
+ using that encoder. Assumes that Compiler recompileAll is working for the
+ existing system. Assumes that the currently available primary and secondary
+ bytecode encoders are EncoderForV3PlusClosures and EncoderForSistaV1.
+ This is a convenience method that must be updated as the available encoders
+ are changed."
+
+ "CompiledCode useSistaBytecodeSet: true"
+ "CompiledCode useSistaBytecodeSet: false"
+
+ | standardEncoder sistaEncoder activeEncoder |
+ standardEncoder := Smalltalk classNamed: #EncoderForV3PlusClosures.
+ sistaEncoder := Smalltalk classNamed: #EncoderForSistaV1.
+ activeEncoder := self preferredBytecodeSetEncoderClass.
+ useSistaEncoder
+ ifTrue: [sistaEncoder ifNil: [self error: 'EncoderForSistaV1 not present in this image'].
+ self preferredBytecodeSetEncoderClass: sistaEncoder.
+ activeEncoder ~= sistaEncoder
+ ifTrue: [(Smalltalk classNamed: #Compiler) recompileAll.
+ self multipleBytecodeSetsActive: true "VM should support Sista plus V3" ]]
+ ifFalse: [standardEncoder ifNil: [self error: 'EncoderForV3PlusClosures not present in this image'].
+ self preferredBytecodeSetEncoderClass: standardEncoder.
+ activeEncoder ~= standardEncoder
+ ifTrue: [(Smalltalk classNamed: #Compiler) recompileAll.
+ self multipleBytecodeSetsActive: false "VM needs to support V3 only" ]].
+
+ !
More information about the Squeak-dev
mailing list
|