createAndPushRegisterDumpArrays

fun createAndPushRegisterDumpArrays(translator: JVMTranslator, method: MethodVisitor)

Write JVM bytecodes to the JVMTranslator which will push:

  1. An Array of AvailObjects containing the value of each live boxed register, and

  2. A LongArray containing encoded data from each live unboxed register.

Also, associate within the JVMTranslator the information needed to extract these live registers when the target L2_ENTER_L2_CHUNK is reached.

These arrays are suitable arguments for creating a ContinuationRegisterDumpDescriptor instance.

Parameters

translator

The JVMTranslator in which to record the saved register layout.

method

The MethodVisitor on which to write code to push the register dump.