Package io.quarkus.deployment.recording
Class BytecodeRecorderImpl.SplitMethodContext
- java.lang.Object
-
- io.quarkus.deployment.recording.BytecodeRecorderImpl.SplitMethodContext
-
- All Implemented Interfaces:
BytecodeRecorderImpl.MethodContext,Closeable,AutoCloseable
- Enclosing class:
- BytecodeRecorderImpl
static class BytecodeRecorderImpl.SplitMethodContext extends Object implements Closeable, BytecodeRecorderImpl.MethodContext
class responsible for splitting the bytecode into smaller methods, to make sure that even large objects and large numbers of invocations do not put us over the method limit.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) List<io.quarkus.gizmo.MethodCreator>allMethods(package private) io.quarkus.gizmo.ClassCreatorclassCreator(package private) intcurrentCount(package private) io.quarkus.gizmo.MethodCreatorcurrentMethod(package private) Map<Integer,io.quarkus.gizmo.ResultHandle>currentMethodCache(package private) io.quarkus.gizmo.ResultHandledeferredParameterArray(package private) io.quarkus.gizmo.MethodCreatormainMethod(package private) intmethodCount
-
Constructor Summary
Constructors Constructor Description SplitMethodContext(io.quarkus.gizmo.ResultHandle deferredParameterArray, io.quarkus.gizmo.MethodCreator mainMethod, io.quarkus.gizmo.ClassCreator classCreator)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()io.quarkus.gizmo.ResultHandleloadDeferred(BytecodeRecorderImpl.DeferredParameter parameter)(package private) voidnewMethod()voidwriteInstruction(BytecodeRecorderImpl.InstructionGroup writer)
-
-
-
Field Detail
-
deferredParameterArray
final io.quarkus.gizmo.ResultHandle deferredParameterArray
-
mainMethod
final io.quarkus.gizmo.MethodCreator mainMethod
-
classCreator
final io.quarkus.gizmo.ClassCreator classCreator
-
allMethods
List<io.quarkus.gizmo.MethodCreator> allMethods
-
methodCount
int methodCount
-
currentCount
int currentCount
-
currentMethod
io.quarkus.gizmo.MethodCreator currentMethod
-
-
Method Detail
-
writeInstruction
public void writeInstruction(BytecodeRecorderImpl.InstructionGroup writer)
- Specified by:
writeInstructionin interfaceBytecodeRecorderImpl.MethodContext
-
loadDeferred
public io.quarkus.gizmo.ResultHandle loadDeferred(BytecodeRecorderImpl.DeferredParameter parameter)
- Specified by:
loadDeferredin interfaceBytecodeRecorderImpl.MethodContext
-
newMethod
void newMethod()
-
close
public void close()
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-
-