Changes

Summary

  1. - rename lookUpVar:inContext: to #lookupAndReadVar:inContext - remove (details)
  2. postpone use of #indexFromIR for a later PR (details)
  3. - factor out index calculation into #indexFromIRFromScope: - add an (details)
  4. remove #indexFromIR (not used) (details)
  5. remove assert: in indexFromIRFromScope: as it is failing for write. (details)
Commit 7e4f6b1f3400eff99b62f397bbfdbba7e8ae7097 by marcus.denker
- rename lookUpVar:inContext: to #lookupAndReadVar:inContext - remove
all the  lookUpVar:inContext methods that where not needed - factor out
caclulation of index into #indexFromIR (for temps)
The file was modifiedsrc/OpalCompiler-Core/OCAbstractMethodScope.class.st (diff)
The file was modifiedsrc/OpalCompiler-Core/OCRequestorScope.class.st (diff)
The file was modifiedsrc/OpalCompiler-Core/OCBlockScope.class.st (diff)
The file was modifiedsrc/OpalCompiler-Core/OCExtraBindingScope.class.st (diff)
The file was modifiedsrc/OpalCompiler-Core/OCClassScope.class.st (diff)
The file was modifiedsrc/OpalCompiler-Core/OCAbstractScope.class.st (diff)
The file was modifiedsrc/OpalCompiler-Core/OCTempVariable.class.st (diff)
The file was modifiedsrc/OpalCompiler-Core/OCEnvironmentScope.class.st (diff)
The file was modifiedsrc/OpalCompiler-Core/OCInstanceScope.class.st (diff)
Commit e26558293726b378615e29c956ade1bc6c7cd044 by marcus.denker
postpone use of #indexFromIR for a later PR
The file was modifiedsrc/OpalCompiler-Core/OCTempVariable.class.st (diff)
Commit cf79b376c237e7d12f43583db8e33b1c0ea8c7a6 by marcus.denker
- factor out index calculation into #indexFromIRFromScope: - add an
assert as I think the parameter is not needed (we look up the var in the
scope, those vars know the scope!) - readFromContext:scope: should never
be called on VectorTempVariable: add #isThisEverCalled:
The file was modifiedsrc/OpalCompiler-Core/OCTempVariable.class.st (diff)
The file was modifiedsrc/OpalCompiler-Core/OCVectorTempVariable.class.st (diff)
Commit 643ea9b6e2fb1f4126d32c6c240fda736206e751 by marcus.denker
remove #indexFromIR (not used)
The file was modifiedsrc/OpalCompiler-Core/OCTempVariable.class.st (diff)
Commit 1e33a4b3b714017b5d54c384e780e5c8b2db2f4b by marcus.denker
remove assert: in indexFromIRFromScope: as it is failing for write.
The file was modifiedsrc/OpalCompiler-Core/OCTempVariable.class.st (diff)