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();
|
private final Map<JetElement, StackValue.Local> tempVariables = Maps.newHashMap();
|
||||||
@NotNull
|
@NotNull
|
||||||
private final TailRecursionGeneratorUtil tailRecursionGeneratorUtil;
|
private final TailRecursionCodegen tailRecursionCodegen;
|
||||||
|
|
||||||
public CalculatedClosure generateObjectLiteral(GenerationState state, JetObjectLiteralExpression literal) {
|
public CalculatedClosure generateObjectLiteral(GenerationState state, JetObjectLiteralExpression literal) {
|
||||||
JetObjectDeclaration objectDeclaration = literal.getObjectDeclaration();
|
JetObjectDeclaration objectDeclaration = literal.getObjectDeclaration();
|
||||||
@@ -182,7 +182,7 @@ public class ExpressionCodegen extends JetVisitor<StackValue, StackValue> implem
|
|||||||
this.bindingContext = state.getBindingContext();
|
this.bindingContext = state.getBindingContext();
|
||||||
this.context = context;
|
this.context = context;
|
||||||
this.statementVisitor = new CodegenStatementVisitor(this);
|
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) {
|
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) {
|
private void pushArgumentsAndInvoke(@NotNull ResolvedCall<?> resolvedCall, @NotNull CallableMethod callable) {
|
||||||
int mask = pushMethodArguments(resolvedCall, callable.getValueParameterTypes());
|
int mask = pushMethodArguments(resolvedCall, callable.getValueParameterTypes());
|
||||||
|
|
||||||
if (tailRecursionGeneratorUtil.isTailRecursion(resolvedCall)) {
|
if (tailRecursionCodegen.isTailRecursion(resolvedCall)) {
|
||||||
tailRecursionGeneratorUtil.generateTailRecursion(resolvedCall);
|
tailRecursionCodegen.generateTailRecursion(resolvedCall);
|
||||||
return;
|
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.RESOLVED_CALL;
|
||||||
import static org.jetbrains.jet.lang.resolve.BindingContext.TAIL_RECURSION_CALL;
|
import static org.jetbrains.jet.lang.resolve.BindingContext.TAIL_RECURSION_CALL;
|
||||||
|
|
||||||
public class TailRecursionGeneratorUtil {
|
public class TailRecursionCodegen {
|
||||||
|
|
||||||
@NotNull
|
@NotNull
|
||||||
private final MethodContext context;
|
private final MethodContext context;
|
||||||
@@ -47,7 +47,7 @@ public class TailRecursionGeneratorUtil {
|
|||||||
@NotNull
|
@NotNull
|
||||||
private final GenerationState state;
|
private final GenerationState state;
|
||||||
|
|
||||||
public TailRecursionGeneratorUtil(
|
public TailRecursionCodegen(
|
||||||
@NotNull MethodContext context,
|
@NotNull MethodContext context,
|
||||||
@NotNull ExpressionCodegen codegen,
|
@NotNull ExpressionCodegen codegen,
|
||||||
@NotNull InstructionAdapter v,
|
@NotNull InstructionAdapter v,
|
||||||
Reference in New Issue
Block a user