Changes

Summary

  1. The compiler was modeling a dedicated scope just for the self/super/thisContext vars (details)
  2. Move ReservedVariables to Kernel-Variables (details)
  3. do not use #newMethodScope (details)
Commit c2c512cc955b65e2b56bd7d3c74c7b6d1b26122a by marcus.denker
The compiler was modeling a dedicated scope just for the self/super/thisContext vars

We can remove this OCInstanceScope and simplify things by
- moving the handling of self/super/thisContext to the global scope. This makes a lot of sense as there is
one "self".
- merge OCInstanceScope with the class scope (which is the class itself
The file was modifiedsrc/OpalCompiler-Core/OCAbstractScope.class.st (diff)
The file was modifiedsrc/System-Support/SystemDictionary.class.st (diff)
The file was modifiedsrc/Kernel/Class.class.st (diff)
The file was modifiedsrc/OpalCompiler-Core/OCExtraBindingScope.class.st (diff)
The file was removedsrc/OpalCompiler-Tools/OCInstanceScope.extension.st
The file was removedsrc/OpalCompiler-Core/OCInstanceScope.class.st
The file was modifiedsrc/OpalCompiler-Tests/OCASTCheckerTest.class.st (diff)
The file was modifiedsrc/Slot-Core/SystemDictionary.extension.st (diff)
The file was modifiedsrc/OpalCompiler-Core/IRTranslator.class.st (diff)
The file was modifiedsrc/OpalCompiler-Core/OCRequestorScope.class.st (diff)
The file was modifiedsrc/OpalCompiler-Core/Behavior.extension.st (diff)
The file was modifiedsrc/OpalCompiler-Core/CompilationContext.class.st (diff)
Commit 7ca11139ec9afafe054447935ed0dded553ebf0c by marcus.denker
Move ReservedVariables to Kernel-Variables
The file was addedsrc/Kernel/ThisContextVariable.class.st
The file was addedsrc/Kernel/ReservedVariable.class.st
The file was addedsrc/Kernel/SuperVariable.class.st
The file was removedsrc/OpalCompiler-Core/SelfVariable.class.st
The file was removedsrc/OpalCompiler-Core/ReservedVariable.class.st
The file was removedsrc/OpalCompiler-Core/SuperVariable.class.st
The file was removedsrc/OpalCompiler-Core/ThisContextVariable.class.st
The file was addedsrc/Kernel/SelfVariable.class.st
Commit 0c261d2a30ca2a7f3d0afe1bfa0852f6ee5773a3 by marcus.denker
do not use #newMethodScope
The file was modifiedsrc/Reflectivity/RFSemanticAnalyzer.class.st (diff)
The file was modifiedsrc/OpalCompiler-Core/Behavior.extension.st (diff)
The file was modifiedsrc/OpalCompiler-Core/OCAbstractScope.class.st (diff)
The file was modifiedsrc/OpalCompiler-Core/OCASTSemanticAnalyzer.class.st (diff)