Rename class

This commit is contained in:
Andrey Breslav
2013-12-05 23:02:17 +04:00
parent d5941e90eb
commit 934d8ee199
2 changed files with 6 additions and 6 deletions
@@ -112,7 +112,7 @@ public class ExpressionCodegen extends JetVisitor<StackValue, StackValue> implem
*/
private final Map<JetElement, StackValue.Local> tempVariables = Maps.newHashMap();
@NotNull
private final TailRecursionGeneratorUtil tailRecursionGeneratorUtil;
private final TailRecursionCodegen tailRecursionCodegen;
public CalculatedClosure generateObjectLiteral(GenerationState state, JetObjectLiteralExpression literal) {
JetObjectDeclaration objectDeclaration = literal.getObjectDeclaration();
@@ -182,7 +182,7 @@ public class ExpressionCodegen extends JetVisitor<StackValue, StackValue> implem
this.bindingContext = state.getBindingContext();
this.context = context;
this.statementVisitor = new CodegenStatementVisitor(this);
this.tailRecursionGeneratorUtil = new TailRecursionGeneratorUtil(context, this, this.v, state);
this.tailRecursionCodegen = new TailRecursionCodegen(context, this, this.v, state);
}
protected InstructionAdapter createInstructionAdapter(MethodVisitor mv) {
@@ -2146,8 +2146,8 @@ public class ExpressionCodegen extends JetVisitor<StackValue, StackValue> implem
private void pushArgumentsAndInvoke(@NotNull ResolvedCall<?> resolvedCall, @NotNull CallableMethod callable) {
int mask = pushMethodArguments(resolvedCall, callable.getValueParameterTypes());
if (tailRecursionGeneratorUtil.isTailRecursion(resolvedCall)) {
tailRecursionGeneratorUtil.generateTailRecursion(resolvedCall);
if (tailRecursionCodegen.isTailRecursion(resolvedCall)) {
tailRecursionCodegen.generateTailRecursion(resolvedCall);
return;
}
@@ -36,7 +36,7 @@ import java.util.List;
import static org.jetbrains.jet.lang.resolve.BindingContext.RESOLVED_CALL;
import static org.jetbrains.jet.lang.resolve.BindingContext.TAIL_RECURSION_CALL;
public class TailRecursionGeneratorUtil {
public class TailRecursionCodegen {
@NotNull
private final MethodContext context;
@@ -47,7 +47,7 @@ public class TailRecursionGeneratorUtil {
@NotNull
private final GenerationState state;
public TailRecursionGeneratorUtil(
public TailRecursionCodegen(
@NotNull MethodContext context,
@NotNull ExpressionCodegen codegen,
@NotNull InstructionAdapter v,