The Smalltalk-Compiler of LSWVST allows to compile a superset of the Smalltalk Language. in contrast to other approaches we didn't change the Syntax.
| FirstTime |
FirstTime ifNil: [ "Method is invoked first time". FirstTime := false ].
FirstTime iffFalse: [ ]
In contrast to static Inlining generic inlining can be extended and customized.
Shadows are optimized Versions of classes. Shadows can represented their original Class by collapsing all of their methods up to a certain superclass. This minimizes MethodDictionary Lookups and speeds up certain Smalltalk programs enormously.
There can be arbritrary many shadows per Class which can be retrieved by accessing the GlobalShadows SystemDictionary
^ ( GlobalShadows at: #CompilerClassShadow ) new
Shadows are a dual concept of the Polymorphic Inline Cache in the VM. Because they can be customized and more than one shadow can exist per Class they add to the power of our language.
Class/Method Collapsing is similar to some Refactoring operations but it is executed on the Bytecode level.