Rename class
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
+2
-2
@@ -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,
|
||||
Reference in New Issue
Block a user