"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "compiler/backend/src/org/jetbrains/kotlin/codegen/coroutines/CoroutineTransformerMethodVisitor.kt" between
kotlin-1.3.20.tar.gz and kotlin-1.3.21.tar.gz

About: Kotlin is a Java like statically typed programming language for the JVM, Android and the browser. Source code.

CoroutineTransformerMethodVisitor.kt  (kotlin-1.3.20):CoroutineTransformerMethodVisitor.kt  (kotlin-1.3.21)
skipping to change at line 358 skipping to change at line 358
putfield( putfield(
computeLabelOwner(languageVersionSettings, classBuilderForCorout ineState.thisName).internalName, computeLabelOwner(languageVersionSettings, classBuilderForCorout ineState.thisName).internalName,
COROUTINE_LABEL_FIELD_NAME, Type.INT_TYPE.descriptor COROUTINE_LABEL_FIELD_NAME, Type.INT_TYPE.descriptor
) )
} }
private fun updateMaxStack(methodNode: MethodNode) { private fun updateMaxStack(methodNode: MethodNode) {
methodNode.instructions.resetLabels() methodNode.instructions.resetLabels()
methodNode.accept( methodNode.accept(
MaxStackFrameSizeAndLocalsCalculator( MaxStackFrameSizeAndLocalsCalculator(
Opcodes.ASM5, methodNode.access, methodNode.desc, Opcodes.API_VERSION, methodNode.access, methodNode.desc,
object : MethodVisitor(Opcodes.ASM5) { object : MethodVisitor(Opcodes.API_VERSION) {
override fun visitMaxs(maxStack: Int, maxLocals: Int) { override fun visitMaxs(maxStack: Int, maxLocals: Int) {
methodNode.maxStack = maxStack methodNode.maxStack = maxStack
} }
} }
) )
) )
} }
private fun prepareMethodNodePreludeForNamedFunction(methodNode: MethodNode) { private fun prepareMethodNodePreludeForNamedFunction(methodNode: MethodNode) {
val objectTypeForState = Type.getObjectType(classBuilderForCoroutineStat e.thisName) val objectTypeForState = Type.getObjectType(classBuilderForCoroutineStat e.thisName)
 End of changes. 1 change blocks. 
2 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)