From 9a6979aa6cbac14c64fd56cc1652fef61ef418bf Mon Sep 17 00:00:00 2001 From: Alexander Udalov Date: Thu, 20 Jun 2013 22:20:13 +0400 Subject: [PATCH] Minor, rename method --- .../jetbrains/jet/codegen/ExpressionCodegen.java | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/compiler/backend/src/org/jetbrains/jet/codegen/ExpressionCodegen.java b/compiler/backend/src/org/jetbrains/jet/codegen/ExpressionCodegen.java index 1ece17f99fa..66971d59270 100644 --- a/compiler/backend/src/org/jetbrains/jet/codegen/ExpressionCodegen.java +++ b/compiler/backend/src/org/jetbrains/jet/codegen/ExpressionCodegen.java @@ -511,7 +511,7 @@ public class ExpressionCodegen extends JetVisitor implem generator.checkEmptyLoop(loopExit); v.mark(loopEntry); - generator.conditionAndJump(loopExit); + generator.checkPreCondition(loopExit); generator.beforeBody(); blockStackElements.push(new LoopBlockStackElement(loopExit, continueLabel, targetLabel(generator.forExpression))); @@ -585,7 +585,7 @@ public class ExpressionCodegen extends JetVisitor implem public abstract void checkEmptyLoop(@NotNull Label loopExit); - public abstract void conditionAndJump(@NotNull Label loopExit); + public abstract void checkPreCondition(@NotNull Label loopExit); public void beforeBody() { v.mark(bodyStart); @@ -719,7 +719,7 @@ public class ExpressionCodegen extends JetVisitor implem } @Override - public void conditionAndJump(@NotNull Label loopExit) { + public void checkPreCondition(@NotNull Label loopExit) { // tmp.hasNext() JetExpression loopRange = forExpression.getLoopRange(); @@ -788,7 +788,7 @@ public class ExpressionCodegen extends JetVisitor implem } @Override - public void conditionAndJump(@NotNull Label loopExit) { + public void checkPreCondition(@NotNull Label loopExit) { v.load(indexVar, Type.INT_TYPE); v.load(arrayVar, OBJECT_TYPE); v.arraylength(); @@ -854,7 +854,7 @@ public class ExpressionCodegen extends JetVisitor implem endVar = createLoopTempVariable(asmElementType); } - // The local variable holding the actual last value of the loop parameter. + // Index of the local variable holding the actual last value of the loop parameter. // For ranges it equals end, for progressions it's a function of start, end and increment protected abstract int getFinalVar(); @@ -895,7 +895,7 @@ public class ExpressionCodegen extends JetVisitor implem } @Override - public void conditionAndJump(@NotNull Label loopExit) { + public void checkPreCondition(@NotNull Label loopExit) { if (isIntegerProgression) return; v.load(loopParameterVar, asmElementType); @@ -1063,7 +1063,7 @@ public class ExpressionCodegen extends JetVisitor implem } @Override - public void conditionAndJump(@NotNull Label loopExit) { + public void checkPreCondition(@NotNull Label loopExit) { if (isIntegerProgression) return; v.load(loopParameterVar, asmElementType);