public class com.oracle.truffle.llvm.tests.interop.SulongBuiltinsTest extends com.oracle.truffle.llvm.tests.interop.InteropTestBase
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: com.oracle.truffle.llvm.tests.interop.SulongBuiltinsTest
super_class: com.oracle.truffle.llvm.tests.interop.InteropTestBase
{
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial com.oracle.truffle.llvm.tests.interop.InteropTestBase.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/oracle/truffle/llvm/tests/interop/SulongBuiltinsTest;
private static org.graalvm.polyglot.Value getFunction(java.lang.String);
descriptor: (Ljava/lang/String;)Lorg/graalvm/polyglot/Value;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=2, args_size=1
start local 0 0: getstatic com.oracle.truffle.llvm.tests.interop.SulongBuiltinsTest.runWithPolyglot:Lcom/oracle/truffle/tck/TruffleRunner$RunWithPolyglotRule;
invokevirtual com.oracle.truffle.tck.TruffleRunner$RunWithPolyglotRule.getPolyglotContext:()Lorg/graalvm/polyglot/Context;
ldc "llvm"
invokevirtual org.graalvm.polyglot.Context.getBindings:(Ljava/lang/String;)Lorg/graalvm/polyglot/Value;
aload 0
invokevirtual org.graalvm.polyglot.Value.getMember:(Ljava/lang/String;)Lorg/graalvm/polyglot/Value;
astore 1
start local 1 1: new java.lang.StringBuilder
dup
aload 0
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc " was not found"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aload 1
invokestatic org.junit.Assert.assertNotNull:(Ljava/lang/String;Ljava/lang/Object;)V
2: new java.lang.StringBuilder
dup
aload 0
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc " was found but canExecute() returned false"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aload 1
invokevirtual org.graalvm.polyglot.Value.canExecute:()Z
invokestatic org.junit.Assert.assertTrue:(Ljava/lang/String;Z)V
3: aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 name Ljava/lang/String;
1 4 1 func Lorg/graalvm/polyglot/Value;
MethodParameters:
Name Flags
name
public void testPolyglotFitsInI32();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=7, locals=6, args_size=1
start local 0 0: ldc "polyglot_fits_in_i32"
astore 1
start local 1 1: aload 1
invokestatic com.oracle.truffle.llvm.tests.interop.SulongBuiltinsTest.getFunction:(Ljava/lang/String;)Lorg/graalvm/polyglot/Value;
astore 2
start local 2 2: new java.lang.StringBuilder
dup
ldc "Incorrect implementation of "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 3
start local 3 3: aload 3
aload 2
iconst_1
anewarray java.lang.Object
dup
iconst_0
ldc 2147483647
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aastore
invokevirtual org.graalvm.polyglot.Value.execute:([Ljava/lang/Object;)Lorg/graalvm/polyglot/Value;
invokevirtual org.graalvm.polyglot.Value.asBoolean:()Z
invokestatic org.junit.Assert.assertTrue:(Ljava/lang/String;Z)V
4: ldc 2147483648
lstore 4
start local 4 5: aload 3
aload 2
iconst_1
anewarray java.lang.Object
dup
iconst_0
lload 4
invokestatic java.lang.Long.valueOf:(J)Ljava/lang/Long;
aastore
invokevirtual org.graalvm.polyglot.Value.execute:([Ljava/lang/Object;)Lorg/graalvm/polyglot/Value;
invokevirtual org.graalvm.polyglot.Value.asBoolean:()Z
invokestatic org.junit.Assert.assertFalse:(Ljava/lang/String;Z)V
6: return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lcom/oracle/truffle/llvm/tests/interop/SulongBuiltinsTest;
1 7 1 name Ljava/lang/String;
2 7 2 func Lorg/graalvm/polyglot/Value;
3 7 3 msg Ljava/lang/String;
5 7 4 v J
RuntimeVisibleAnnotations:
org.junit.Test()
public void testPolyglotGetArraySize();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=5, args_size=1
start local 0 0: ldc "polyglot_get_array_size"
astore 1
start local 1 1: aload 1
invokestatic com.oracle.truffle.llvm.tests.interop.SulongBuiltinsTest.getFunction:(Ljava/lang/String;)Lorg/graalvm/polyglot/Value;
astore 2
start local 2 2: new java.lang.StringBuilder
dup
ldc "Incorrect implementation of "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 3
start local 3 3: iconst_3
newarray 10
dup
iconst_0
iconst_1
iastore
dup
iconst_1
iconst_2
iastore
dup
iconst_2
iconst_3
iastore
astore 4
start local 4 4: aload 3
aload 2
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 4
aastore
invokevirtual org.graalvm.polyglot.Value.execute:([Ljava/lang/Object;)Lorg/graalvm/polyglot/Value;
invokevirtual org.graalvm.polyglot.Value.asLong:()J
ldc 3
invokestatic org.junit.Assert.assertEquals:(Ljava/lang/String;JJ)V
5: return
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 Lcom/oracle/truffle/llvm/tests/interop/SulongBuiltinsTest;
1 6 1 name Ljava/lang/String;
2 6 2 func Lorg/graalvm/polyglot/Value;
3 6 3 msg Ljava/lang/String;
4 6 4 v [I
RuntimeVisibleAnnotations:
org.junit.Test()
public void testTruffleHandle();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=10, args_size=1
start local 0 0: ldc "truffle_handle_for_managed"
astore 1
start local 1 1: aload 1
invokestatic com.oracle.truffle.llvm.tests.interop.SulongBuiltinsTest.getFunction:(Ljava/lang/String;)Lorg/graalvm/polyglot/Value;
astore 2
start local 2 2: new java.lang.StringBuilder
dup
ldc "Incorrect implementation of "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 3
start local 3 3: ldc "truffle_managed_from_handle"
astore 4
start local 4 4: aload 4
invokestatic com.oracle.truffle.llvm.tests.interop.SulongBuiltinsTest.getFunction:(Ljava/lang/String;)Lorg/graalvm/polyglot/Value;
astore 5
start local 5 5: new java.lang.StringBuilder
dup
ldc "Incorrect implementation of "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 4
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 6
start local 6 6: new java.lang.Object
dup
invokespecial java.lang.Object.<init>:()V
astore 7
start local 7 7: aload 2
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 7
aastore
invokevirtual org.graalvm.polyglot.Value.execute:([Ljava/lang/Object;)Lorg/graalvm/polyglot/Value;
astore 8
start local 8 8: aload 3
aload 8
invokestatic org.junit.Assert.assertNotNull:(Ljava/lang/String;Ljava/lang/Object;)V
9: aload 5
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 8
aastore
invokevirtual org.graalvm.polyglot.Value.execute:([Ljava/lang/Object;)Lorg/graalvm/polyglot/Value;
astore 9
start local 9 10: aload 6
aload 7
aload 9
invokevirtual org.graalvm.polyglot.Value.asHostObject:()Ljava/lang/Object;
invokestatic org.junit.Assert.assertSame:(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)V
11: return
end local 9 end local 8 end local 7 end local 6 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 12 0 this Lcom/oracle/truffle/llvm/tests/interop/SulongBuiltinsTest;
1 12 1 nameHandle Ljava/lang/String;
2 12 2 funcHandle Lorg/graalvm/polyglot/Value;
3 12 3 msgHandle Ljava/lang/String;
4 12 4 nameManaged Ljava/lang/String;
5 12 5 funcManaged Lorg/graalvm/polyglot/Value;
6 12 6 msgManaged Ljava/lang/String;
7 12 7 v Ljava/lang/Object;
8 12 8 handle Lorg/graalvm/polyglot/Value;
10 12 9 v2 Lorg/graalvm/polyglot/Value;
RuntimeVisibleAnnotations:
org.junit.Test()
}
SourceFile: "SulongBuiltinsTest.java"
InnerClasses:
public final RunWithPolyglotRule = com.oracle.truffle.tck.TruffleRunner$RunWithPolyglotRule of com.oracle.truffle.tck.TruffleRunner
RuntimeVisibleAnnotations:
org.junit.runner.RunWith(value = Lcom/oracle/truffle/tck/TruffleRunner;)