Class BytecodeDSLAccess
java.lang.Object
com.oracle.truffle.api.bytecode.BytecodeDSLAccess
Accessor class used to abstract away frame and bytecode array accesses in the generated code.
Do not use directly.
- Since:
- 24.2
- 
Method SummaryModifier and TypeMethodDescriptionabstract ByteArraySupportReturns aByteArraySupportto use for byte array accesses.abstract FrameExtensionsReturns aFrameExtensionsto use for frame accesses.static final BytecodeDSLAccessObtains an accessor.abstract intreadInt(int[] arr, int index) Reads from an int array.abstract <T> TreadObject(T[] arr, int index) Reads from an Object array.abstract <T> TuncheckedCast(Object arr, Class<T> clazz) Casts a value to the given class.abstract voidwriteInt(int[] arr, int index, int value) Writes to an int array.abstract <T> voidwriteObject(T[] arr, int index, T value) Writes to an Object array.
- 
Method Details- 
lookupObtains an accessor. Used by generated code; do not use directly.- Since:
- 24.2
 
- 
getByteArraySupportReturns aByteArraySupportto use for byte array accesses.- Since:
- 24.2
 
- 
getFrameExtensionsReturns aFrameExtensionsto use for frame accesses.- Since:
- 24.2
 
- 
readIntpublic abstract int readInt(int[] arr, int index) Reads from an int array.- Since:
- 24.2
 
- 
writeIntpublic abstract void writeInt(int[] arr, int index, int value) Writes to an int array.- Since:
- 24.2
 
- 
readObjectpublic abstract <T> T readObject(T[] arr, int index) Reads from an Object array.- Since:
- 24.2
 
- 
writeObjectpublic abstract <T> void writeObject(T[] arr, int index, T value) Writes to an Object array.- Since:
- 24.2
 
- 
uncheckedCast
 
-