Minor: reformat

This commit is contained in:
Dmitry Petrov
2018-09-20 11:56:12 +03:00
parent 947ea88d5e
commit 8536ef5b43
@@ -29,11 +29,11 @@ interface CallGenerator {
callableMethod: Callable, callableMethod: Callable,
resolvedCall: ResolvedCall<*>?, resolvedCall: ResolvedCall<*>?,
callDefault: Boolean, callDefault: Boolean,
codegen: ExpressionCodegen) { codegen: ExpressionCodegen
) {
if (!callDefault) { if (!callDefault) {
callableMethod.genInvokeInstruction(codegen.v) callableMethod.genInvokeInstruction(codegen.v)
} } else {
else {
(callableMethod as CallableMethod).genInvokeDefaultInstruction(codegen.v) (callableMethod as CallableMethod).genInvokeDefaultInstruction(codegen.v)
} }
} }
@@ -73,8 +73,7 @@ interface CallGenerator {
} }
} }
override fun putCapturedValueOnStack( override fun putCapturedValueOnStack(stackValue: StackValue, valueType: Type, paramIndex: Int) {
stackValue: StackValue, valueType: Type, paramIndex: Int) {
stackValue.put(stackValue.type, stackValue.kotlinType, codegen.v) stackValue.put(stackValue.type, stackValue.kotlinType, codegen.v)
} }
@@ -120,11 +119,10 @@ interface CallGenerator {
valueParameterDescriptor: ValueParameterDescriptor, valueParameterDescriptor: ValueParameterDescriptor,
argumentExpression: KtExpression, argumentExpression: KtExpression,
parameterType: Type, parameterType: Type,
parameterIndex: Int) parameterIndex: Int
)
fun putValueIfNeeded( fun putValueIfNeeded(parameterType: JvmKotlinType, value: StackValue) {
parameterType: JvmKotlinType,
value: StackValue) {
putValueIfNeeded(parameterType, value, ValueKind.GENERAL) putValueIfNeeded(parameterType, value, ValueKind.GENERAL)
} }
@@ -132,11 +130,14 @@ interface CallGenerator {
parameterType: JvmKotlinType, parameterType: JvmKotlinType,
value: StackValue, value: StackValue,
kind: ValueKind = ValueKind.GENERAL, kind: ValueKind = ValueKind.GENERAL,
parameterIndex: Int = -1) parameterIndex: Int = -1
)
fun putCapturedValueOnStack( fun putCapturedValueOnStack(
stackValue: StackValue, stackValue: StackValue,
valueType: Type, paramIndex: Int) valueType: Type,
paramIndex: Int
)
fun processAndPutHiddenParameters(justProcess: Boolean) fun processAndPutHiddenParameters(justProcess: Boolean)