"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "compiler/backend/src/org/jetbrains/kotlin/codegen/AssertCodegenUtil.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.

AssertCodegenUtil.kt  (kotlin-1.3.20):AssertCodegenUtil.kt  (kotlin-1.3.21)
skipping to change at line 56 skipping to change at line 56
fun createMethodNodeForAlwaysEnabledAssert( fun createMethodNodeForAlwaysEnabledAssert(
functionDescriptor: FunctionDescriptor, functionDescriptor: FunctionDescriptor,
typeMapper: KotlinTypeMapper typeMapper: KotlinTypeMapper
): MethodNode { ): MethodNode {
assert(functionDescriptor.isBuiltinAlwaysEnabledAssert()) { assert(functionDescriptor.isBuiltinAlwaysEnabledAssert()) {
"functionDescriptor must be kotlin.alwaysEnabledAssert, but got $functio nDescriptor" "functionDescriptor must be kotlin.alwaysEnabledAssert, but got $functio nDescriptor"
} }
val node = val node =
org.jetbrains.org.objectweb.asm.tree.MethodNode( org.jetbrains.org.objectweb.asm.tree.MethodNode(
Opcodes.ASM5, Opcodes.API_VERSION,
"fake", "fake",
typeMapper.mapAsmMethod(functionDescriptor).descriptor, null, null typeMapper.mapAsmMethod(functionDescriptor).descriptor, null, null
) )
val v = InstructionAdapter(node) val v = InstructionAdapter(node)
val returnLabel = Label() val returnLabel = Label()
// if (!condition) // if (!condition)
v.load(0, Type.BOOLEAN_TYPE) v.load(0, Type.BOOLEAN_TYPE)
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

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