From 7a925672ae19f0db888bfa75d8453ae877b09b0e Mon Sep 17 00:00:00 2001 From: Marcus Denker Date: Mon, 7 Oct 2019 08:58:07 +0200 Subject: [PATCH] formatting --- src/OpalCompiler-Core/OCVectorTempVariable.class.st | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/OpalCompiler-Core/OCVectorTempVariable.class.st b/src/OpalCompiler-Core/OCVectorTempVariable.class.st index c0b36e2b0e0..9f547dd9ca2 100644 --- a/src/OpalCompiler-Core/OCVectorTempVariable.class.st +++ b/src/OpalCompiler-Core/OCVectorTempVariable.class.st @@ -54,18 +54,16 @@ OCVectorTempVariable >> readFromContext: aContext scope: contextScope [ { #category : #debugging } OCVectorTempVariable >> readVectorFromContext: aContext scope: contextScope [ | tempVectorVar theVector | - "We need to first read the temp vector. We use the closest copied var up the stack possible - The whole point of using the vector is for everything to be accessible locally, the definition - context could be already garbage collected)" + "We need to first read the temp vector. We use the closest copied var up the stack possible as + as the definition context could be already garbage collected" tempVectorVar := contextScope lookupVar: vectorName. "We might be called from the debugger for a context that actually does not access the temp vector, so we need to read possibly from a context above aContext" theVector := tempVectorVar readFromContext: aContext scope: contextScope. "Cache the index in the temp vecor (for speed and easy debugging)" index := index ifNil: [ tempVectorVar indexInTempVectorFromIR: name ]. - "We can call this method on a context in any state, e.g. even when the copied var is not yet initialized. - In this case, we lookup in the outer context with the corresponding outer scope" + In this case, we lookup in the outer context with the corresponding outer scope" ^ theVector ifNil: [ self readVectorFromContext: aContext outerContext scope: contextScope outerScope ] ]