dolphinsmalltalk / Dolphin

Dolphin Smalltalk Core Image
MIT License
301 stars 58 forks source link

Some class instance creation methods using primitive 157 are lacking functioning Smalltalk backup code #1067

Closed blairmcg closed 3 years ago

blairmcg commented 3 years ago

Primitive 157 is an optimisation intended to combine instantiation of an object with initialization of its instance variables from the constructor method arguments. It is used for some classes with instances that are created in high volumes.

Frank Lesser noticed that some of the methods are missing a correct implementation in Smalltalk so that if the primitive is not present (or commented out) the instance creation fails.

An example is Character class>>#newCode:

blairmcg commented 3 years ago

StOptimizedToken is missing stop: