JVM IR: Enable evaluate expression tests for the JVM IR backend

This commit is contained in:
Steven Schäfer
2020-09-22 11:53:24 +02:00
committed by max-kammerer
parent 33969c5f9a
commit 48b736e551
33 changed files with 1476 additions and 23 deletions
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JVM_IR
LineBreakpoint created at capturedValues1.kt:17
Run Java
Connected to the target VM
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JVM_IR
LineBreakpoint created at defaultImplsMangling.kt:8
Run Java
Connected to the target VM
@@ -0,0 +1,14 @@
LineBreakpoint created at frameAnonymousObject.kt:11
Run Java
Connected to the target VM
frameAnonymousObject.kt:11
frame = invoke:11, FrameAnonymousObjectKt$main$o$1$run$1 {frameAnonymousObject}
this = this = {frameAnonymousObject.FrameAnonymousObjectKt$main$o$1$run$1@uniqueID}Function0<kotlin.Unit>
field = $val1: int = 1 (sp = null)
field = this$0: frameAnonymousObject.FrameAnonymousObjectKt$main$o$1 = {frameAnonymousObject.FrameAnonymousObjectKt$main$o$1@uniqueID} (sp = null)
field = obProp: int = 1 (sp = frameAnonymousObject.kt, 6)
field = $val1: int = 1 (sp = null)
field = arity: int = 0 (sp = Lambda.!EXT!)
Disconnected from the target VM
Process finished with exit code 0
@@ -0,0 +1,33 @@
LineBreakpoint created at frameExtFunExtFun.kt:24
Run Java
Connected to the target VM
frameExtFunExtFun.kt:24
Compile bytecode for valFoo
Compile bytecode for valTest
Compile bytecode for aProp
Compile bytecode for outerProp
Compile bytecode for bProp
Compile bytecode for aMyFun()
Compile bytecode for outerMyFun()
Compile bytecode for bMyFun()
frame = invoke:24, Outer$foo$LocalClass$test$1 {frameExtFunExtFun}
this = this = {frameExtFunExtFun.Outer$foo$LocalClass$test$1@uniqueID}Function0<kotlin.Unit>
field = this$0: frameExtFunExtFun.Outer = {frameExtFunExtFun.Outer@uniqueID} (sp = null)
field = outerProp: int = 1 (sp = frameExtFunExtFun.kt, 13)
field = $this_foo: frameExtFunExtFun.A = {frameExtFunExtFun.A@uniqueID} (sp = null)
field = aProp: int = 1 (sp = frameExtFunExtFun.kt, 8)
field = this$1: frameExtFunExtFun.Outer$foo$LocalClass = {frameExtFunExtFun.Outer$foo$LocalClass@uniqueID} (sp = null)
field = lcProp: int = 1 (sp = frameExtFunExtFun.kt, 19)
field = this$0: frameExtFunExtFun.Outer = {frameExtFunExtFun.Outer@uniqueID} (sp = null)
field = outerProp: int = 1 (sp = frameExtFunExtFun.kt, 13)
field = $this_foo: frameExtFunExtFun.A = {frameExtFunExtFun.A@uniqueID} (sp = null)
field = aProp: int = 1 (sp = frameExtFunExtFun.kt, 8)
field = $valFoo: int = 1 (sp = null)
field = $this_test: frameExtFunExtFun.B = {frameExtFunExtFun.B@uniqueID} (sp = null)
field = bProp: int = 1 (sp = frameExtFunExtFun.kt, 41)
field = $valFoo: int = 1 (sp = null)
field = $valTest: int = 1 (sp = null)
field = arity: int = 0 (sp = Lambda.!EXT!)
Disconnected from the target VM
Process finished with exit code 0
@@ -0,0 +1,15 @@
LineBreakpoint created at frameInnerLambda.kt:9
Run Java
Connected to the target VM
frameInnerLambda.kt:9
Compile bytecode for val1
Compile bytecode for val2
Compile bytecode for val1 + val2
frame = invoke:9, FrameInnerLambdaKt$main$1$1 {frameInnerLambda}
this = this = {frameInnerLambda.FrameInnerLambdaKt$main$1$1@uniqueID}Function0<kotlin.Unit>
field = $val1: int = 1 (sp = null)
field = $val2: int = 1 (sp = null)
field = arity: int = 0 (sp = Lambda.!EXT!)
Disconnected from the target VM
Process finished with exit code 0
@@ -0,0 +1,19 @@
LineBreakpoint created at frameThis0This0.kt:17
Run Java
Connected to the target VM
frameThis0This0.kt:17
Compile bytecode for val1
Compile bytecode for val2
Compile bytecode for prop1
Compile bytecode for prop1 + val1 + val2
Compile bytecode for myFun()
frame = invoke:17, A$test$1$1 {frameThis0This0}
this = this = {frameThis0This0.A$test$1$1@uniqueID}Function0<kotlin.Unit>
field = this$0: frameThis0This0.A = {frameThis0This0.A@uniqueID} (sp = null)
field = prop1: int = 1 (sp = frameThis0This0.kt, 8)
field = $val1: int = 1 (sp = null)
field = $val2: int = 1 (sp = null)
field = arity: int = 0 (sp = Lambda.!EXT!)
Disconnected from the target VM
Process finished with exit code 0
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JVM_IR
LineBreakpoint created at hideSyntheticThis.kt:6
Run Java
Connected to the target VM
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JVM_IR
LineBreakpoint created at lambdaAsValueArgument.kt:19
Run Java
Connected to the target VM
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JVM_IR
LineBreakpoint created at lambdaFun3.kt:7
Run Java
Connected to the target VM