public class org.graalvm.compiler.truffle.test.CastExactPartialEvaluationTest extends org.graalvm.compiler.truffle.test.PartialEvaluationTest
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.graalvm.compiler.truffle.test.CastExactPartialEvaluationTest
super_class: org.graalvm.compiler.truffle.test.PartialEvaluationTest
{
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial org.graalvm.compiler.truffle.test.PartialEvaluationTest.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/graalvm/compiler/truffle/test/CastExactPartialEvaluationTest;
public void setup();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: bipush 42
invokestatic java.nio.ByteBuffer.allocate:(I)Ljava/nio/ByteBuffer;
bipush 42
invokevirtual java.nio.ByteBuffer.putInt:(I)Ljava/nio/ByteBuffer;
invokevirtual java.nio.ByteBuffer.asReadOnlyBuffer:()Ljava/nio/ByteBuffer;
pop
1: iconst_0
invokestatic java.nio.ByteBuffer.allocate:(I)Ljava/nio/ByteBuffer;
iconst_0
invokevirtual java.nio.ByteBuffer.getInt:(I)I
pop
2: goto 4
StackMap locals:
StackMap stack: java.lang.IndexOutOfBoundsException
3: pop
4: StackMap locals:
StackMap stack:
iconst_0
invokestatic java.nio.ByteBuffer.allocate:(I)Ljava/nio/ByteBuffer;
invokevirtual java.nio.ByteBuffer.getInt:()I
pop
5: goto 7
StackMap locals:
StackMap stack: java.nio.BufferUnderflowException
6: pop
7: StackMap locals:
StackMap stack:
iconst_0
invokestatic java.nio.ByteBuffer.allocate:(I)Ljava/nio/ByteBuffer;
iconst_0
invokevirtual java.nio.ByteBuffer.putInt:(I)Ljava/nio/ByteBuffer;
pop
8: goto 10
StackMap locals:
StackMap stack: java.nio.BufferOverflowException
9: pop
10: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lorg/graalvm/compiler/truffle/test/CastExactPartialEvaluationTest;
Exception table:
from to target type
1 2 3 Class java.lang.IndexOutOfBoundsException
4 5 6 Class java.nio.BufferUnderflowException
7 8 9 Class java.nio.BufferOverflowException
RuntimeVisibleAnnotations:
org.junit.Before()
public void castExactCompilerDirective();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=1
start local 0 0: new org.graalvm.compiler.truffle.test.CastExactPartialEvaluationTest$CastExactTestNode
dup
invokestatic org.graalvm.compiler.truffle.test.CastExactPartialEvaluationTest.newBuffer:()Ljava/nio/ByteBuffer;
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
invokespecial org.graalvm.compiler.truffle.test.CastExactPartialEvaluationTest$CastExactTestNode.<init>:(Ljava/lang/Class;)V
astore 1
start local 1 1: aload 0
aload 1
ldc "castExactCompilerDirective"
invokevirtual org.graalvm.compiler.truffle.test.CastExactPartialEvaluationTest.testCommon:(Lorg/graalvm/compiler/truffle/test/nodes/AbstractTestNode;Ljava/lang/String;)V
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/graalvm/compiler/truffle/test/CastExactPartialEvaluationTest;
1 3 1 result Lorg/graalvm/compiler/truffle/test/nodes/AbstractTestNode;
RuntimeVisibleAnnotations:
org.junit.Test()
public void exactClassProfile();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=1
start local 0 0: new org.graalvm.compiler.truffle.test.CastExactPartialEvaluationTest$ExactClassProfileTestNode
dup
invokespecial org.graalvm.compiler.truffle.test.CastExactPartialEvaluationTest$ExactClassProfileTestNode.<init>:()V
astore 1
start local 1 1: aload 0
aload 1
ldc "exactClassProfile"
invokevirtual org.graalvm.compiler.truffle.test.CastExactPartialEvaluationTest.testCommon:(Lorg/graalvm/compiler/truffle/test/nodes/AbstractTestNode;Ljava/lang/String;)V
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/graalvm/compiler/truffle/test/CastExactPartialEvaluationTest;
1 3 1 result Lorg/graalvm/compiler/truffle/test/nodes/AbstractTestNode;
RuntimeVisibleAnnotations:
org.junit.Test()
public void byteBufferAccess();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=1
start local 0 0: new org.graalvm.compiler.truffle.test.CastExactPartialEvaluationTest$BufferGetPutTestNode
dup
invokestatic org.graalvm.compiler.truffle.test.CastExactPartialEvaluationTest.newBuffer:()Ljava/nio/ByteBuffer;
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
invokespecial org.graalvm.compiler.truffle.test.CastExactPartialEvaluationTest$BufferGetPutTestNode.<init>:(Ljava/lang/Class;)V
astore 1
start local 1 1: aload 0
aload 1
ldc "byteBufferAccess"
invokevirtual org.graalvm.compiler.truffle.test.CastExactPartialEvaluationTest.testCommon:(Lorg/graalvm/compiler/truffle/test/nodes/AbstractTestNode;Ljava/lang/String;)V
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/graalvm/compiler/truffle/test/CastExactPartialEvaluationTest;
1 3 1 result Lorg/graalvm/compiler/truffle/test/nodes/AbstractTestNode;
RuntimeVisibleAnnotations:
org.junit.Test()
public void byteBufferAccessIndex();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=1
start local 0 0: new org.graalvm.compiler.truffle.test.CastExactPartialEvaluationTest$BufferGetPutIndexTestNode
dup
invokestatic org.graalvm.compiler.truffle.test.CastExactPartialEvaluationTest.newBuffer:()Ljava/nio/ByteBuffer;
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
invokespecial org.graalvm.compiler.truffle.test.CastExactPartialEvaluationTest$BufferGetPutIndexTestNode.<init>:(Ljava/lang/Class;)V
astore 1
start local 1 1: aload 0
aload 1
ldc "byteBufferAccessIndex"
invokevirtual org.graalvm.compiler.truffle.test.CastExactPartialEvaluationTest.testCommon:(Lorg/graalvm/compiler/truffle/test/nodes/AbstractTestNode;Ljava/lang/String;)V
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/graalvm/compiler/truffle/test/CastExactPartialEvaluationTest;
1 3 1 result Lorg/graalvm/compiler/truffle/test/nodes/AbstractTestNode;
RuntimeVisibleAnnotations:
org.junit.Test()
private void testCommon(org.graalvm.compiler.truffle.test.nodes.AbstractTestNode, java.lang.String);
descriptor: (Lorg/graalvm/compiler/truffle/test/nodes/AbstractTestNode;Ljava/lang/String;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=6, locals=6, args_size=3
start local 0 start local 1 start local 2 0: new com.oracle.truffle.api.frame.FrameDescriptor
dup
invokespecial com.oracle.truffle.api.frame.FrameDescriptor.<init>:()V
astore 3
start local 3 1: new org.graalvm.compiler.truffle.test.nodes.RootTestNode
dup
aload 3
aload 2
aload 1
invokespecial org.graalvm.compiler.truffle.test.nodes.RootTestNode.<init>:(Lcom/oracle/truffle/api/frame/FrameDescriptor;Ljava/lang/String;Lorg/graalvm/compiler/truffle/test/nodes/AbstractTestNode;)V
astore 4
start local 4 2: invokestatic com.oracle.truffle.api.Truffle.getRuntime:()Lcom/oracle/truffle/api/TruffleRuntime;
aload 4
invokeinterface com.oracle.truffle.api.TruffleRuntime.createCallTarget:(Lcom/oracle/truffle/api/nodes/RootNode;)Lcom/oracle/truffle/api/RootCallTarget;
astore 5
start local 5 3: bipush 42
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aload 5
iconst_1
anewarray java.lang.Object
dup
iconst_0
invokestatic org.graalvm.compiler.truffle.test.CastExactPartialEvaluationTest.newBuffer:()Ljava/nio/ByteBuffer;
aastore
invokeinterface com.oracle.truffle.api.RootCallTarget.call:([Ljava/lang/Object;)Ljava/lang/Object;
invokestatic org.junit.Assert.assertEquals:(Ljava/lang/Object;Ljava/lang/Object;)V
4: aload 0
aload 5
iconst_1
anewarray java.lang.Object
dup
iconst_0
invokestatic org.graalvm.compiler.truffle.test.CastExactPartialEvaluationTest.newBuffer:()Ljava/nio/ByteBuffer;
aastore
invokevirtual org.graalvm.compiler.truffle.test.CastExactPartialEvaluationTest.assertPartialEvalNoInvokes:(Lcom/oracle/truffle/api/CallTarget;[Ljava/lang/Object;)V
5: return
end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/graalvm/compiler/truffle/test/CastExactPartialEvaluationTest;
0 6 1 testNode Lorg/graalvm/compiler/truffle/test/nodes/AbstractTestNode;
0 6 2 testName Ljava/lang/String;
1 6 3 fd Lcom/oracle/truffle/api/frame/FrameDescriptor;
2 6 4 rootNode Lcom/oracle/truffle/api/nodes/RootNode;
3 6 5 callTarget Lcom/oracle/truffle/api/RootCallTarget;
MethodParameters:
Name Flags
testNode
testName
private static java.nio.ByteBuffer newBuffer();
descriptor: ()Ljava/nio/ByteBuffer;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=0, args_size=0
0: bipush 42
invokestatic java.nio.ByteBuffer.allocate:(I)Ljava/nio/ByteBuffer;
iconst_0
bipush 42
invokevirtual java.nio.ByteBuffer.putInt:(II)Ljava/nio/ByteBuffer;
areturn
LocalVariableTable:
Start End Slot Name Signature
}
SourceFile: "CastExactPartialEvaluationTest.java"
NestMembers:
org.graalvm.compiler.truffle.test.CastExactPartialEvaluationTest$BufferGetPutIndexTestNode org.graalvm.compiler.truffle.test.CastExactPartialEvaluationTest$BufferGetPutTestNode org.graalvm.compiler.truffle.test.CastExactPartialEvaluationTest$CastExactTestNode org.graalvm.compiler.truffle.test.CastExactPartialEvaluationTest$ExactClassProfileTestNode
InnerClasses:
BufferGetPutIndexTestNode = org.graalvm.compiler.truffle.test.CastExactPartialEvaluationTest$BufferGetPutIndexTestNode of org.graalvm.compiler.truffle.test.CastExactPartialEvaluationTest
BufferGetPutTestNode = org.graalvm.compiler.truffle.test.CastExactPartialEvaluationTest$BufferGetPutTestNode of org.graalvm.compiler.truffle.test.CastExactPartialEvaluationTest
CastExactTestNode = org.graalvm.compiler.truffle.test.CastExactPartialEvaluationTest$CastExactTestNode of org.graalvm.compiler.truffle.test.CastExactPartialEvaluationTest
ExactClassProfileTestNode = org.graalvm.compiler.truffle.test.CastExactPartialEvaluationTest$ExactClassProfileTestNode of org.graalvm.compiler.truffle.test.CastExactPartialEvaluationTest