public final class com.oracle.truffle.js.runtime.interop.JSInteropUtil
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: com.oracle.truffle.js.runtime.interop.JSInteropUtil
super_class: java.lang.Object
{
static final boolean $assertionsDisabled;
descriptor: Z
flags: (0x1018) ACC_STATIC, ACC_FINAL, ACC_SYNTHETIC
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: ldc Lcom/oracle/truffle/js/runtime/interop/JSInteropUtil;
invokevirtual java.lang.Class.desiredAssertionStatus:()Z
ifne 1
iconst_1
goto 2
StackMap locals:
StackMap stack:
1: iconst_0
StackMap locals:
StackMap stack: int
2: putstatic com.oracle.truffle.js.runtime.interop.JSInteropUtil.$assertionsDisabled:Z
return
LocalVariableTable:
Start End Slot Name Signature
private void <init>();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/oracle/truffle/js/runtime/interop/JSInteropUtil;
public static long getArraySize(java.lang.Object, com.oracle.truffle.api.interop.InteropLibrary, com.oracle.truffle.api.nodes.Node);
descriptor: (Ljava/lang/Object;Lcom/oracle/truffle/api/interop/InteropLibrary;Lcom/oracle/truffle/api/nodes/Node;)J
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 1
aload 0
invokevirtual com.oracle.truffle.api.interop.InteropLibrary.getArraySize:(Ljava/lang/Object;)J
1: lreturn
2: StackMap locals:
StackMap stack: com.oracle.truffle.api.interop.UnsupportedMessageException
astore 3
start local 3 3: aload 0
aload 3
ldc "getArraySize"
aload 2
invokestatic com.oracle.truffle.js.runtime.Errors.createTypeErrorInteropException:(Ljava/lang/Object;Lcom/oracle/truffle/api/interop/InteropException;Ljava/lang/String;Lcom/oracle/truffle/api/nodes/Node;)Lcom/oracle/truffle/js/runtime/JSException;
athrow
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 foreignObj Ljava/lang/Object;
0 4 1 interop Lcom/oracle/truffle/api/interop/InteropLibrary;
0 4 2 originatingNode Lcom/oracle/truffle/api/nodes/Node;
3 4 3 e Lcom/oracle/truffle/api/interop/UnsupportedMessageException;
Exception table:
from to target type
0 1 2 Class com.oracle.truffle.api.interop.UnsupportedMessageException
MethodParameters:
Name Flags
foreignObj
interop
originatingNode
public static java.lang.Object readMemberOrDefault(java.lang.Object, java.lang.Object, java.lang.Object);
descriptor: (Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 1
instanceof java.lang.String
ifne 2
1: aload 2
areturn
2: StackMap locals:
StackMap stack:
invokestatic com.oracle.truffle.api.interop.InteropLibrary.getFactory:()Lcom/oracle/truffle/api/library/LibraryFactory;
invokevirtual com.oracle.truffle.api.library.LibraryFactory.getUncached:()Lcom/oracle/truffle/api/library/Library;
checkcast com.oracle.truffle.api.interop.InteropLibrary
aload 0
aload 1
checkcast java.lang.String
invokevirtual com.oracle.truffle.api.interop.InteropLibrary.readMember:(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
invokestatic com.oracle.truffle.js.runtime.JSRuntime.importValue:(Ljava/lang/Object;)Ljava/lang/Object;
3: areturn
4: StackMap locals:
StackMap stack: com.oracle.truffle.api.interop.UnknownIdentifierException
pop
5: aload 2
areturn
6: StackMap locals:
StackMap stack: com.oracle.truffle.api.interop.UnsupportedMessageException
astore 3
start local 3 7: aload 0
aload 3
ldc "readMember"
aload 1
aconst_null
invokestatic com.oracle.truffle.js.runtime.Errors.createTypeErrorInteropException:(Ljava/lang/Object;Lcom/oracle/truffle/api/interop/InteropException;Ljava/lang/String;Ljava/lang/Object;Lcom/oracle/truffle/api/nodes/Node;)Lcom/oracle/truffle/js/runtime/JSException;
athrow
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 obj Ljava/lang/Object;
0 8 1 member Ljava/lang/Object;
0 8 2 defaultValue Ljava/lang/Object;
7 8 3 e Lcom/oracle/truffle/api/interop/UnsupportedMessageException;
Exception table:
from to target type
2 3 4 Class com.oracle.truffle.api.interop.UnknownIdentifierException
2 3 6 Class com.oracle.truffle.api.interop.UnsupportedMessageException
MethodParameters:
Name Flags
obj
member
defaultValue
public static java.lang.Object readMemberOrDefault(java.lang.Object, java.lang.Object, java.lang.Object, com.oracle.truffle.api.interop.InteropLibrary, com.oracle.truffle.js.nodes.interop.ImportValueNode, com.oracle.truffle.api.nodes.Node);
descriptor: (Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Lcom/oracle/truffle/api/interop/InteropLibrary;Lcom/oracle/truffle/js/nodes/interop/ImportValueNode;Lcom/oracle/truffle/api/nodes/Node;)Ljava/lang/Object;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=7, args_size=6
start local 0 start local 1 start local 2 start local 3 start local 4 start local 5 0: aload 1
instanceof java.lang.String
ifne 2
1: aload 2
areturn
2: StackMap locals:
StackMap stack:
aload 4
aload 3
aload 0
aload 1
checkcast java.lang.String
invokevirtual com.oracle.truffle.api.interop.InteropLibrary.readMember:(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
invokevirtual com.oracle.truffle.js.nodes.interop.ImportValueNode.executeWithTarget:(Ljava/lang/Object;)Ljava/lang/Object;
3: areturn
4: StackMap locals:
StackMap stack: com.oracle.truffle.api.interop.UnknownIdentifierException
pop
5: aload 2
areturn
6: StackMap locals:
StackMap stack: com.oracle.truffle.api.interop.UnsupportedMessageException
astore 6
start local 6 7: aload 0
aload 6
ldc "readMember"
aload 1
aload 5
invokestatic com.oracle.truffle.js.runtime.Errors.createTypeErrorInteropException:(Ljava/lang/Object;Lcom/oracle/truffle/api/interop/InteropException;Ljava/lang/String;Ljava/lang/Object;Lcom/oracle/truffle/api/nodes/Node;)Lcom/oracle/truffle/js/runtime/JSException;
athrow
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 8 0 obj Ljava/lang/Object;
0 8 1 member Ljava/lang/Object;
0 8 2 defaultValue Ljava/lang/Object;
0 8 3 interop Lcom/oracle/truffle/api/interop/InteropLibrary;
0 8 4 importValue Lcom/oracle/truffle/js/nodes/interop/ImportValueNode;
0 8 5 originatingNode Lcom/oracle/truffle/api/nodes/Node;
7 8 6 e Lcom/oracle/truffle/api/interop/UnsupportedMessageException;
Exception table:
from to target type
2 3 4 Class com.oracle.truffle.api.interop.UnknownIdentifierException
2 3 6 Class com.oracle.truffle.api.interop.UnsupportedMessageException
MethodParameters:
Name Flags
obj
member
defaultValue
interop
importValue
originatingNode
public static java.lang.Object readArrayElementOrDefault(java.lang.Object, long, java.lang.Object, com.oracle.truffle.api.interop.InteropLibrary, com.oracle.truffle.js.nodes.interop.ImportValueNode, com.oracle.truffle.api.nodes.Node);
descriptor: (Ljava/lang/Object;JLjava/lang/Object;Lcom/oracle/truffle/api/interop/InteropLibrary;Lcom/oracle/truffle/js/nodes/interop/ImportValueNode;Lcom/oracle/truffle/api/nodes/Node;)Ljava/lang/Object;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=8, args_size=6
start local 0 start local 1 start local 3 start local 4 start local 5 start local 6 0: aload 5
aload 4
aload 0
lload 1
invokevirtual com.oracle.truffle.api.interop.InteropLibrary.readArrayElement:(Ljava/lang/Object;J)Ljava/lang/Object;
invokevirtual com.oracle.truffle.js.nodes.interop.ImportValueNode.executeWithTarget:(Ljava/lang/Object;)Ljava/lang/Object;
1: areturn
2: StackMap locals:
StackMap stack: com.oracle.truffle.api.interop.InvalidArrayIndexException
pop
3: aload 3
areturn
4: StackMap locals:
StackMap stack: com.oracle.truffle.api.interop.UnsupportedMessageException
astore 7
start local 7 5: aload 0
aload 7
ldc "readArrayElement"
lload 1
invokestatic java.lang.Long.valueOf:(J)Ljava/lang/Long;
aload 6
invokestatic com.oracle.truffle.js.runtime.Errors.createTypeErrorInteropException:(Ljava/lang/Object;Lcom/oracle/truffle/api/interop/InteropException;Ljava/lang/String;Ljava/lang/Object;Lcom/oracle/truffle/api/nodes/Node;)Lcom/oracle/truffle/js/runtime/JSException;
athrow
end local 7 end local 6 end local 5 end local 4 end local 3 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 obj Ljava/lang/Object;
0 6 1 index J
0 6 3 defaultValue Ljava/lang/Object;
0 6 4 interop Lcom/oracle/truffle/api/interop/InteropLibrary;
0 6 5 importValue Lcom/oracle/truffle/js/nodes/interop/ImportValueNode;
0 6 6 originatingNode Lcom/oracle/truffle/api/nodes/Node;
5 6 7 e Lcom/oracle/truffle/api/interop/UnsupportedMessageException;
Exception table:
from to target type
0 1 2 Class com.oracle.truffle.api.interop.InvalidArrayIndexException
0 1 4 Class com.oracle.truffle.api.interop.UnsupportedMessageException
MethodParameters:
Name Flags
obj
index
defaultValue
interop
importValue
originatingNode
public static java.lang.Object readArrayElementOrDefault(java.lang.Object, long, java.lang.Object);
descriptor: (Ljava/lang/Object;JLjava/lang/Object;)Ljava/lang/Object;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=5, args_size=3
start local 0 start local 1 start local 3 0: invokestatic com.oracle.truffle.api.interop.InteropLibrary.getFactory:()Lcom/oracle/truffle/api/library/LibraryFactory;
invokevirtual com.oracle.truffle.api.library.LibraryFactory.getUncached:()Lcom/oracle/truffle/api/library/Library;
checkcast com.oracle.truffle.api.interop.InteropLibrary
aload 0
lload 1
invokevirtual com.oracle.truffle.api.interop.InteropLibrary.readArrayElement:(Ljava/lang/Object;J)Ljava/lang/Object;
invokestatic com.oracle.truffle.js.runtime.JSRuntime.importValue:(Ljava/lang/Object;)Ljava/lang/Object;
1: areturn
2: StackMap locals:
StackMap stack: com.oracle.truffle.api.interop.InvalidArrayIndexException
pop
3: aload 3
areturn
4: StackMap locals:
StackMap stack: com.oracle.truffle.api.interop.UnsupportedMessageException
astore 4
start local 4 5: aload 0
aload 4
ldc "readArrayElement"
lload 1
invokestatic java.lang.Long.valueOf:(J)Ljava/lang/Long;
aconst_null
invokestatic com.oracle.truffle.js.runtime.Errors.createTypeErrorInteropException:(Ljava/lang/Object;Lcom/oracle/truffle/api/interop/InteropException;Ljava/lang/String;Ljava/lang/Object;Lcom/oracle/truffle/api/nodes/Node;)Lcom/oracle/truffle/js/runtime/JSException;
athrow
end local 4 end local 3 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 obj Ljava/lang/Object;
0 6 1 index J
0 6 3 defaultValue Ljava/lang/Object;
5 6 4 e Lcom/oracle/truffle/api/interop/UnsupportedMessageException;
Exception table:
from to target type
0 1 2 Class com.oracle.truffle.api.interop.InvalidArrayIndexException
0 1 4 Class com.oracle.truffle.api.interop.UnsupportedMessageException
MethodParameters:
Name Flags
obj
index
defaultValue
public static void writeMember(java.lang.Object, java.lang.Object, java.lang.Object);
descriptor: (Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 1
instanceof java.lang.String
ifne 2
1: return
2: StackMap locals:
StackMap stack:
invokestatic com.oracle.truffle.api.interop.InteropLibrary.getFactory:()Lcom/oracle/truffle/api/library/LibraryFactory;
invokevirtual com.oracle.truffle.api.library.LibraryFactory.getUncached:()Lcom/oracle/truffle/api/library/Library;
checkcast com.oracle.truffle.api.interop.InteropLibrary
aload 0
aload 1
checkcast java.lang.String
aload 2
invokestatic com.oracle.truffle.js.runtime.JSRuntime.exportValue:(Ljava/lang/Object;)Ljava/lang/Object;
invokevirtual com.oracle.truffle.api.interop.InteropLibrary.writeMember:(Ljava/lang/Object;Ljava/lang/String;Ljava/lang/Object;)V
3: goto 6
StackMap locals:
StackMap stack: com.oracle.truffle.api.interop.InteropException
4: astore 3
start local 3 5: aload 0
aload 3
ldc "writeMember"
aload 1
aconst_null
invokestatic com.oracle.truffle.js.runtime.Errors.createTypeErrorInteropException:(Ljava/lang/Object;Lcom/oracle/truffle/api/interop/InteropException;Ljava/lang/String;Ljava/lang/Object;Lcom/oracle/truffle/api/nodes/Node;)Lcom/oracle/truffle/js/runtime/JSException;
athrow
end local 3 6: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 obj Ljava/lang/Object;
0 7 1 member Ljava/lang/Object;
0 7 2 value Ljava/lang/Object;
5 6 3 e Lcom/oracle/truffle/api/interop/InteropException;
Exception table:
from to target type
2 3 4 Class com.oracle.truffle.api.interop.UnsupportedMessageException
2 3 4 Class com.oracle.truffle.api.interop.UnknownIdentifierException
2 3 4 Class com.oracle.truffle.api.interop.UnsupportedTypeException
MethodParameters:
Name Flags
obj
member
value
public static void writeMember(java.lang.Object, java.lang.Object, java.lang.Object, com.oracle.truffle.api.interop.InteropLibrary, com.oracle.truffle.js.nodes.interop.ExportValueNode, com.oracle.truffle.api.nodes.Node);
descriptor: (Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Lcom/oracle/truffle/api/interop/InteropLibrary;Lcom/oracle/truffle/js/nodes/interop/ExportValueNode;Lcom/oracle/truffle/api/nodes/Node;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=7, args_size=6
start local 0 start local 1 start local 2 start local 3 start local 4 start local 5 0: aload 1
instanceof java.lang.String
ifne 2
1: return
2: StackMap locals:
StackMap stack:
aload 3
aload 0
aload 1
checkcast java.lang.String
aload 4
aload 2
invokevirtual com.oracle.truffle.js.nodes.interop.ExportValueNode.execute:(Ljava/lang/Object;)Ljava/lang/Object;
invokevirtual com.oracle.truffle.api.interop.InteropLibrary.writeMember:(Ljava/lang/Object;Ljava/lang/String;Ljava/lang/Object;)V
3: goto 6
StackMap locals:
StackMap stack: com.oracle.truffle.api.interop.InteropException
4: astore 6
start local 6 5: aload 0
aload 6
ldc "writeMember"
aload 1
aload 5
invokestatic com.oracle.truffle.js.runtime.Errors.createTypeErrorInteropException:(Ljava/lang/Object;Lcom/oracle/truffle/api/interop/InteropException;Ljava/lang/String;Ljava/lang/Object;Lcom/oracle/truffle/api/nodes/Node;)Lcom/oracle/truffle/js/runtime/JSException;
athrow
end local 6 6: StackMap locals:
StackMap stack:
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 7 0 obj Ljava/lang/Object;
0 7 1 member Ljava/lang/Object;
0 7 2 value Ljava/lang/Object;
0 7 3 interop Lcom/oracle/truffle/api/interop/InteropLibrary;
0 7 4 exportValue Lcom/oracle/truffle/js/nodes/interop/ExportValueNode;
0 7 5 originatingNode Lcom/oracle/truffle/api/nodes/Node;
5 6 6 e Lcom/oracle/truffle/api/interop/InteropException;
Exception table:
from to target type
2 3 4 Class com.oracle.truffle.api.interop.UnsupportedMessageException
2 3 4 Class com.oracle.truffle.api.interop.UnknownIdentifierException
2 3 4 Class com.oracle.truffle.api.interop.UnsupportedTypeException
MethodParameters:
Name Flags
obj
member
value
interop
exportValue
originatingNode
public static java.lang.Object toPrimitiveOrDefault(java.lang.Object, java.lang.Object, com.oracle.truffle.api.interop.InteropLibrary, com.oracle.truffle.api.nodes.Node);
descriptor: (Ljava/lang/Object;Ljava/lang/Object;Lcom/oracle/truffle/api/interop/InteropLibrary;Lcom/oracle/truffle/api/nodes/Node;)Ljava/lang/Object;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=5, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 2
aload 0
invokevirtual com.oracle.truffle.api.interop.InteropLibrary.isNull:(Ljava/lang/Object;)Z
ifeq 2
1: getstatic com.oracle.truffle.js.runtime.objects.Null.instance:Lcom/oracle/truffle/js/runtime/objects/JSDynamicObject;
areturn
2: StackMap locals:
StackMap stack:
aload 2
aload 0
invokevirtual com.oracle.truffle.api.interop.InteropLibrary.isBoolean:(Ljava/lang/Object;)Z
ifeq 5
3: aload 2
aload 0
invokevirtual com.oracle.truffle.api.interop.InteropLibrary.asBoolean:(Ljava/lang/Object;)Z
invokestatic java.lang.Boolean.valueOf:(Z)Ljava/lang/Boolean;
4: areturn
5: StackMap locals:
StackMap stack:
aload 2
aload 0
invokevirtual com.oracle.truffle.api.interop.InteropLibrary.isString:(Ljava/lang/Object;)Z
ifeq 8
6: aload 2
aload 0
invokevirtual com.oracle.truffle.api.interop.InteropLibrary.asString:(Ljava/lang/Object;)Ljava/lang/String;
7: areturn
8: StackMap locals:
StackMap stack:
aload 2
aload 0
invokevirtual com.oracle.truffle.api.interop.InteropLibrary.isNumber:(Ljava/lang/Object;)Z
ifeq 20
9: aload 2
aload 0
invokevirtual com.oracle.truffle.api.interop.InteropLibrary.fitsInInt:(Ljava/lang/Object;)Z
ifeq 12
10: aload 2
aload 0
invokevirtual com.oracle.truffle.api.interop.InteropLibrary.asInt:(Ljava/lang/Object;)I
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
11: areturn
12: StackMap locals:
StackMap stack:
aload 2
aload 0
invokevirtual com.oracle.truffle.api.interop.InteropLibrary.fitsInLong:(Ljava/lang/Object;)Z
ifeq 15
13: aload 2
aload 0
invokevirtual com.oracle.truffle.api.interop.InteropLibrary.asLong:(Ljava/lang/Object;)J
invokestatic java.lang.Long.valueOf:(J)Ljava/lang/Long;
14: areturn
15: StackMap locals:
StackMap stack:
aload 2
aload 0
invokevirtual com.oracle.truffle.api.interop.InteropLibrary.fitsInDouble:(Ljava/lang/Object;)Z
ifeq 20
16: aload 2
aload 0
invokevirtual com.oracle.truffle.api.interop.InteropLibrary.asDouble:(Ljava/lang/Object;)D
invokestatic java.lang.Double.valueOf:(D)Ljava/lang/Double;
17: areturn
18: StackMap locals:
StackMap stack: com.oracle.truffle.api.interop.UnsupportedMessageException
astore 4
start local 4 19: aload 0
aload 4
aload 3
invokestatic com.oracle.truffle.js.runtime.Errors.createTypeErrorUnboxException:(Ljava/lang/Object;Lcom/oracle/truffle/api/interop/InteropException;Lcom/oracle/truffle/api/nodes/Node;)Lcom/oracle/truffle/js/runtime/JSException;
athrow
end local 4 20: StackMap locals:
StackMap stack:
aload 1
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 21 0 obj Ljava/lang/Object;
0 21 1 defaultValue Ljava/lang/Object;
0 21 2 interop Lcom/oracle/truffle/api/interop/InteropLibrary;
0 21 3 originatingNode Lcom/oracle/truffle/api/nodes/Node;
19 20 4 e Lcom/oracle/truffle/api/interop/UnsupportedMessageException;
Exception table:
from to target type
2 4 18 Class com.oracle.truffle.api.interop.UnsupportedMessageException
5 7 18 Class com.oracle.truffle.api.interop.UnsupportedMessageException
8 11 18 Class com.oracle.truffle.api.interop.UnsupportedMessageException
12 14 18 Class com.oracle.truffle.api.interop.UnsupportedMessageException
15 17 18 Class com.oracle.truffle.api.interop.UnsupportedMessageException
MethodParameters:
Name Flags
obj
defaultValue
interop
originatingNode
public static java.util.List<java.lang.Object> keys();
descriptor: (Ljava/lang/Object;)Ljava/util/List;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=8, args_size=1
start local 0 0: invokestatic com.oracle.truffle.api.interop.InteropLibrary.getFactory:()Lcom/oracle/truffle/api/library/LibraryFactory;
invokevirtual com.oracle.truffle.api.library.LibraryFactory.getUncached:()Lcom/oracle/truffle/api/library/Library;
checkcast com.oracle.truffle.api.interop.InteropLibrary
aload 0
invokevirtual com.oracle.truffle.api.interop.InteropLibrary.getMembers:(Ljava/lang/Object;)Ljava/lang/Object;
astore 1
start local 1 1: invokestatic com.oracle.truffle.api.interop.InteropLibrary.getFactory:()Lcom/oracle/truffle/api/library/LibraryFactory;
aload 1
invokevirtual com.oracle.truffle.api.library.LibraryFactory.getUncached:(Ljava/lang/Object;)Lcom/oracle/truffle/api/library/Library;
checkcast com.oracle.truffle.api.interop.InteropLibrary
astore 2
start local 2 2: aload 2
aload 1
invokevirtual com.oracle.truffle.api.interop.InteropLibrary.getArraySize:(Ljava/lang/Object;)J
lstore 3
start local 3 3: lload 3
lconst_0
lcmp
iflt 4
lload 3
ldc 2147483647
lcmp
iflt 5
4: StackMap locals: java.lang.Object com.oracle.truffle.api.interop.InteropLibrary long
StackMap stack:
invokestatic com.oracle.truffle.js.runtime.Errors.createRangeErrorInvalidArrayLength:()Lcom/oracle/truffle/js/runtime/JSException;
athrow
5: StackMap locals:
StackMap stack:
new java.util.ArrayList
dup
lload 3
l2i
invokespecial java.util.ArrayList.<init>:(I)V
astore 5
start local 5 6: iconst_0
istore 6
start local 6 7: goto 12
8: StackMap locals: java.util.List int
StackMap stack:
aload 2
aload 1
iload 6
i2l
invokevirtual com.oracle.truffle.api.interop.InteropLibrary.readArrayElement:(Ljava/lang/Object;J)Ljava/lang/Object;
astore 7
start local 7 9: getstatic com.oracle.truffle.js.runtime.interop.JSInteropUtil.$assertionsDisabled:Z
ifne 10
invokestatic com.oracle.truffle.api.interop.InteropLibrary.getFactory:()Lcom/oracle/truffle/api/library/LibraryFactory;
invokevirtual com.oracle.truffle.api.library.LibraryFactory.getUncached:()Lcom/oracle/truffle/api/library/Library;
checkcast com.oracle.truffle.api.interop.InteropLibrary
aload 7
invokevirtual com.oracle.truffle.api.interop.InteropLibrary.isString:(Ljava/lang/Object;)Z
ifne 10
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
10: StackMap locals: java.lang.Object
StackMap stack:
aload 5
aload 7
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
end local 7 11: iinc 6 1
StackMap locals:
StackMap stack:
12: iload 6
i2l
lload 3
lcmp
iflt 8
end local 6 13: aload 5
14: areturn
end local 5 end local 3 end local 2 end local 1 15: StackMap locals: java.lang.Object
StackMap stack: com.oracle.truffle.api.interop.InteropException
astore 1
start local 1 16: aload 0
aload 1
ldc "readArrayElement"
aconst_null
invokestatic com.oracle.truffle.js.runtime.Errors.createTypeErrorInteropException:(Ljava/lang/Object;Lcom/oracle/truffle/api/interop/InteropException;Ljava/lang/String;Lcom/oracle/truffle/api/nodes/Node;)Lcom/oracle/truffle/js/runtime/JSException;
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 17 0 obj Ljava/lang/Object;
1 15 1 keysObj Ljava/lang/Object;
2 15 2 keysInterop Lcom/oracle/truffle/api/interop/InteropLibrary;
3 15 3 size J
6 15 5 keys Ljava/util/List<Ljava/lang/Object;>;
7 13 6 i I
9 11 7 key Ljava/lang/Object;
16 17 1 e Lcom/oracle/truffle/api/interop/InteropException;
Exception table:
from to target type
0 14 15 Class com.oracle.truffle.api.interop.UnsupportedMessageException
0 14 15 Class com.oracle.truffle.api.interop.InvalidArrayIndexException
Signature: (Ljava/lang/Object;)Ljava/util/List<Ljava/lang/Object;>;
RuntimeVisibleAnnotations:
com.oracle.truffle.api.CompilerDirectives$TruffleBoundary()
MethodParameters:
Name Flags
obj
public static boolean hasProperty(java.lang.Object, java.lang.Object);
descriptor: (Ljava/lang/Object;Ljava/lang/Object;)Z
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 1
instanceof java.lang.String
ifeq 2
1: invokestatic com.oracle.truffle.api.interop.InteropLibrary.getFactory:()Lcom/oracle/truffle/api/library/LibraryFactory;
invokevirtual com.oracle.truffle.api.library.LibraryFactory.getUncached:()Lcom/oracle/truffle/api/library/Library;
checkcast com.oracle.truffle.api.interop.InteropLibrary
aload 0
aload 1
checkcast java.lang.String
invokevirtual com.oracle.truffle.api.interop.InteropLibrary.isMemberExisting:(Ljava/lang/Object;Ljava/lang/String;)Z
ireturn
2: StackMap locals:
StackMap stack:
iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 obj Ljava/lang/Object;
0 3 1 key Ljava/lang/Object;
RuntimeVisibleAnnotations:
com.oracle.truffle.api.CompilerDirectives$TruffleBoundary()
MethodParameters:
Name Flags
obj
key
public static boolean remove(java.lang.Object, java.lang.Object);
descriptor: (Ljava/lang/Object;Ljava/lang/Object;)Z
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=3, args_size=2
start local 0 start local 1 0: aload 1
instanceof java.lang.String
ifeq 6
1: invokestatic com.oracle.truffle.api.interop.InteropLibrary.getFactory:()Lcom/oracle/truffle/api/library/LibraryFactory;
invokevirtual com.oracle.truffle.api.library.LibraryFactory.getUncached:()Lcom/oracle/truffle/api/library/Library;
checkcast com.oracle.truffle.api.interop.InteropLibrary
aload 0
aload 1
checkcast java.lang.String
invokevirtual com.oracle.truffle.api.interop.InteropLibrary.removeMember:(Ljava/lang/Object;Ljava/lang/String;)V
2: goto 5
StackMap locals:
StackMap stack: com.oracle.truffle.api.interop.InteropException
3: astore 2
start local 2 4: aload 0
aload 2
ldc "removeMember"
aload 1
aconst_null
invokestatic com.oracle.truffle.js.runtime.Errors.createTypeErrorInteropException:(Ljava/lang/Object;Lcom/oracle/truffle/api/interop/InteropException;Ljava/lang/String;Ljava/lang/Object;Lcom/oracle/truffle/api/nodes/Node;)Lcom/oracle/truffle/js/runtime/JSException;
athrow
end local 2 5: StackMap locals:
StackMap stack:
iconst_1
ireturn
6: StackMap locals:
StackMap stack:
iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 obj Ljava/lang/Object;
0 7 1 key Ljava/lang/Object;
4 5 2 e Lcom/oracle/truffle/api/interop/InteropException;
Exception table:
from to target type
1 2 3 Class com.oracle.truffle.api.interop.UnsupportedMessageException
1 2 3 Class com.oracle.truffle.api.interop.UnknownIdentifierException
RuntimeVisibleAnnotations:
com.oracle.truffle.api.CompilerDirectives$TruffleBoundary()
MethodParameters:
Name Flags
obj
key
public static java.lang.Object call(java.lang.Object, java.lang.Object[]);
descriptor: (Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=4, args_size=2
start local 0 start local 1 0: aload 1
invokestatic com.oracle.truffle.js.runtime.JSRuntime.exportValueArray:([Ljava/lang/Object;)[Ljava/lang/Object;
astore 2
start local 2 1: invokestatic com.oracle.truffle.api.interop.InteropLibrary.getFactory:()Lcom/oracle/truffle/api/library/LibraryFactory;
invokevirtual com.oracle.truffle.api.library.LibraryFactory.getUncached:()Lcom/oracle/truffle/api/library/Library;
checkcast com.oracle.truffle.api.interop.InteropLibrary
aload 0
aload 2
invokevirtual com.oracle.truffle.api.interop.InteropLibrary.execute:(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
invokestatic com.oracle.truffle.js.runtime.JSRuntime.importValue:(Ljava/lang/Object;)Ljava/lang/Object;
2: areturn
3: StackMap locals: java.lang.Object java.lang.Object[] java.lang.Object[]
StackMap stack: com.oracle.truffle.api.interop.InteropException
astore 3
start local 3 4: aload 0
aload 3
ldc "execute"
aconst_null
invokestatic com.oracle.truffle.js.runtime.Errors.createTypeErrorInteropException:(Ljava/lang/Object;Lcom/oracle/truffle/api/interop/InteropException;Ljava/lang/String;Lcom/oracle/truffle/api/nodes/Node;)Lcom/oracle/truffle/js/runtime/JSException;
athrow
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 function Ljava/lang/Object;
0 5 1 args [Ljava/lang/Object;
1 5 2 exportedArgs [Ljava/lang/Object;
4 5 3 e Lcom/oracle/truffle/api/interop/InteropException;
Exception table:
from to target type
1 2 3 Class com.oracle.truffle.api.interop.UnsupportedMessageException
1 2 3 Class com.oracle.truffle.api.interop.UnsupportedTypeException
1 2 3 Class com.oracle.truffle.api.interop.ArityException
RuntimeVisibleAnnotations:
com.oracle.truffle.api.CompilerDirectives$TruffleBoundary()
MethodParameters:
Name Flags
function
args
public static java.lang.Object construct(java.lang.Object, java.lang.Object[]);
descriptor: (Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=4, args_size=2
start local 0 start local 1 0: aload 1
invokestatic com.oracle.truffle.js.runtime.JSRuntime.exportValueArray:([Ljava/lang/Object;)[Ljava/lang/Object;
astore 2
start local 2 1: invokestatic com.oracle.truffle.api.interop.InteropLibrary.getFactory:()Lcom/oracle/truffle/api/library/LibraryFactory;
invokevirtual com.oracle.truffle.api.library.LibraryFactory.getUncached:()Lcom/oracle/truffle/api/library/Library;
checkcast com.oracle.truffle.api.interop.InteropLibrary
aload 0
aload 2
invokevirtual com.oracle.truffle.api.interop.InteropLibrary.instantiate:(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
invokestatic com.oracle.truffle.js.runtime.JSRuntime.importValue:(Ljava/lang/Object;)Ljava/lang/Object;
2: areturn
3: StackMap locals: java.lang.Object java.lang.Object[] java.lang.Object[]
StackMap stack: com.oracle.truffle.api.interop.InteropException
astore 3
start local 3 4: aload 0
aload 3
ldc "instantiate"
aconst_null
invokestatic com.oracle.truffle.js.runtime.Errors.createTypeErrorInteropException:(Ljava/lang/Object;Lcom/oracle/truffle/api/interop/InteropException;Ljava/lang/String;Lcom/oracle/truffle/api/nodes/Node;)Lcom/oracle/truffle/js/runtime/JSException;
athrow
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 target Ljava/lang/Object;
0 5 1 args [Ljava/lang/Object;
1 5 2 exportedArgs [Ljava/lang/Object;
4 5 3 e Lcom/oracle/truffle/api/interop/InteropException;
Exception table:
from to target type
1 2 3 Class com.oracle.truffle.api.interop.UnsupportedMessageException
1 2 3 Class com.oracle.truffle.api.interop.UnsupportedTypeException
1 2 3 Class com.oracle.truffle.api.interop.ArityException
RuntimeVisibleAnnotations:
com.oracle.truffle.api.CompilerDirectives$TruffleBoundary()
MethodParameters:
Name Flags
target
args
}
SourceFile: "JSInteropUtil.java"
InnerClasses:
public abstract TruffleBoundary = com.oracle.truffle.api.CompilerDirectives$TruffleBoundary of com.oracle.truffle.api.CompilerDirectives