public final class com.oracle.svm.truffle.nfi.LocalNativeScope implements java.lang.AutoCloseable
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: com.oracle.svm.truffle.nfi.LocalNativeScope
super_class: java.lang.Object
{
private final com.oracle.svm.truffle.nfi.LocalNativeScope parent;
descriptor: Lcom/oracle/svm/truffle/nfi/LocalNativeScope;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final short scopeId;
descriptor: S
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private int pinCount;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private final org.graalvm.nativeimage.PinnedObject[] pinned;
descriptor: [Lorg/graalvm/nativeimage/PinnedObject;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private java.util.ArrayList<java.lang.Object> localHandles;
descriptor: Ljava/util/ArrayList;
flags: (0x0002) ACC_PRIVATE
Signature: Ljava/util/ArrayList<Ljava/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/svm/truffle/nfi/LocalNativeScope;
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.svm.truffle.nfi.LocalNativeScope.$assertionsDisabled:Z
return
LocalVariableTable:
Start End Slot Name Signature
void <init>(com.oracle.svm.truffle.nfi.LocalNativeScope, int);
descriptor: (Lcom/oracle/svm/truffle/nfi/LocalNativeScope;I)V
flags: (0x0000)
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aload 1
putfield com.oracle.svm.truffle.nfi.LocalNativeScope.parent:Lcom/oracle/svm/truffle/nfi/LocalNativeScope;
2: aload 1
ifnonnull 5
3: aload 0
iconst_1
putfield com.oracle.svm.truffle.nfi.LocalNativeScope.scopeId:S
4: goto 7
5: StackMap locals: com.oracle.svm.truffle.nfi.LocalNativeScope com.oracle.svm.truffle.nfi.LocalNativeScope int
StackMap stack:
getstatic com.oracle.svm.truffle.nfi.LocalNativeScope.$assertionsDisabled:Z
ifne 6
aload 1
getfield com.oracle.svm.truffle.nfi.LocalNativeScope.scopeId:S
sipush 32767
if_icmplt 6
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
6: StackMap locals:
StackMap stack:
aload 0
aload 1
getfield com.oracle.svm.truffle.nfi.LocalNativeScope.scopeId:S
iconst_1
iadd
i2s
putfield com.oracle.svm.truffle.nfi.LocalNativeScope.scopeId:S
7: StackMap locals:
StackMap stack:
aload 0
iconst_0
putfield com.oracle.svm.truffle.nfi.LocalNativeScope.pinCount:I
8: aload 0
iload 2
ifle 9
iload 2
anewarray org.graalvm.nativeimage.PinnedObject
goto 10
StackMap locals:
StackMap stack: com.oracle.svm.truffle.nfi.LocalNativeScope
9: aconst_null
StackMap locals: com.oracle.svm.truffle.nfi.LocalNativeScope com.oracle.svm.truffle.nfi.LocalNativeScope int
StackMap stack: com.oracle.svm.truffle.nfi.LocalNativeScope org.graalvm.nativeimage.PinnedObject[]
10: putfield com.oracle.svm.truffle.nfi.LocalNativeScope.pinned:[Lorg/graalvm/nativeimage/PinnedObject;
11: aload 0
aconst_null
putfield com.oracle.svm.truffle.nfi.LocalNativeScope.localHandles:Ljava/util/ArrayList;
12: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 this Lcom/oracle/svm/truffle/nfi/LocalNativeScope;
0 13 1 parent Lcom/oracle/svm/truffle/nfi/LocalNativeScope;
0 13 2 patchCount I
MethodParameters:
Name Flags
parent
patchCount
public com.oracle.svm.truffle.nfi.TruffleObjectHandle createLocalHandle(java.lang.Object);
descriptor: (Ljava/lang/Object;)Lcom/oracle/svm/truffle/nfi/TruffleObjectHandle;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield com.oracle.svm.truffle.nfi.LocalNativeScope.localHandles:Ljava/util/ArrayList;
ifnonnull 2
1: aload 0
new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
putfield com.oracle.svm.truffle.nfi.LocalNativeScope.localHandles:Ljava/util/ArrayList;
2: StackMap locals:
StackMap stack:
aload 0
getfield com.oracle.svm.truffle.nfi.LocalNativeScope.localHandles:Ljava/util/ArrayList;
invokevirtual java.util.ArrayList.size:()I
istore 2
start local 2 3: aload 0
getfield com.oracle.svm.truffle.nfi.LocalNativeScope.localHandles:Ljava/util/ArrayList;
aload 1
invokevirtual java.util.ArrayList.add:(Ljava/lang/Object;)Z
pop
4: getstatic com.oracle.svm.truffle.nfi.LocalNativeScope.$assertionsDisabled:Z
ifne 5
aload 0
getfield com.oracle.svm.truffle.nfi.LocalNativeScope.localHandles:Ljava/util/ArrayList;
iload 2
invokevirtual java.util.ArrayList.get:(I)Ljava/lang/Object;
aload 1
if_acmpeq 5
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
5: StackMap locals: int
StackMap stack:
iload 2
invokestatic org.graalvm.word.WordFactory.unsigned:(I)Lorg/graalvm/word/UnsignedWord;
bipush 16
invokeinterface org.graalvm.word.UnsignedWord.shiftLeft:(I)Lorg/graalvm/word/UnsignedWord;
aload 0
getfield com.oracle.svm.truffle.nfi.LocalNativeScope.scopeId:S
ldc 65535
iand
invokeinterface org.graalvm.word.UnsignedWord.or:(I)Lorg/graalvm/word/UnsignedWord;
invokeinterface org.graalvm.word.UnsignedWord.not:()Lorg/graalvm/word/UnsignedWord;
checkcast com.oracle.svm.truffle.nfi.TruffleObjectHandle
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lcom/oracle/svm/truffle/nfi/LocalNativeScope;
0 6 1 obj Ljava/lang/Object;
3 6 2 idx I
MethodParameters:
Name Flags
obj
private com.oracle.svm.truffle.nfi.LocalNativeScope findScope(short);
descriptor: (S)Lcom/oracle/svm/truffle/nfi/LocalNativeScope;
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 0
astore 2
start local 2 1: goto 3
2: StackMap locals: com.oracle.svm.truffle.nfi.LocalNativeScope
StackMap stack:
aload 2
getfield com.oracle.svm.truffle.nfi.LocalNativeScope.parent:Lcom/oracle/svm/truffle/nfi/LocalNativeScope;
astore 2
3: StackMap locals:
StackMap stack:
aload 2
ifnull 4
aload 2
getfield com.oracle.svm.truffle.nfi.LocalNativeScope.scopeId:S
iload 1
if_icmpgt 2
4: StackMap locals:
StackMap stack:
aload 2
ifnull 6
aload 2
getfield com.oracle.svm.truffle.nfi.LocalNativeScope.scopeId:S
iload 1
if_icmpne 6
5: aload 2
areturn
6: StackMap locals:
StackMap stack:
aconst_null
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lcom/oracle/svm/truffle/nfi/LocalNativeScope;
0 7 1 id S
1 7 2 cur Lcom/oracle/svm/truffle/nfi/LocalNativeScope;
MethodParameters:
Name Flags
id
public java.lang.Object resolveLocalHandle(com.oracle.svm.truffle.nfi.TruffleObjectHandle);
descriptor: (Lcom/oracle/svm/truffle/nfi/TruffleObjectHandle;)Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=6, args_size=2
start local 0 start local 1 0: aload 1
checkcast org.graalvm.compiler.word.Word
invokevirtual org.graalvm.compiler.word.Word.not:()Lorg/graalvm/compiler/word/Word;
astore 2
start local 2 1: aload 2
ldc 65535
invokevirtual org.graalvm.compiler.word.Word.and:(I)Lorg/graalvm/compiler/word/Word;
invokevirtual org.graalvm.compiler.word.Word.rawValue:()J
l2i
i2s
istore 3
start local 3 2: aload 0
iload 3
invokevirtual com.oracle.svm.truffle.nfi.LocalNativeScope.findScope:(S)Lcom/oracle/svm/truffle/nfi/LocalNativeScope;
astore 4
start local 4 3: aload 4
ifnull 6
4: aload 2
bipush 16
invokevirtual org.graalvm.compiler.word.Word.unsignedShiftRight:(I)Lorg/graalvm/compiler/word/Word;
invokevirtual org.graalvm.compiler.word.Word.rawValue:()J
l2i
istore 5
start local 5 5: aload 4
getfield com.oracle.svm.truffle.nfi.LocalNativeScope.localHandles:Ljava/util/ArrayList;
iload 5
invokevirtual java.util.ArrayList.get:(I)Ljava/lang/Object;
areturn
end local 5 6: StackMap locals: org.graalvm.compiler.word.Word int com.oracle.svm.truffle.nfi.LocalNativeScope
StackMap stack:
aconst_null
areturn
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/svm/truffle/nfi/LocalNativeScope;
0 7 1 handle Lcom/oracle/svm/truffle/nfi/TruffleObjectHandle;
1 7 2 word Lorg/graalvm/compiler/word/Word;
2 7 3 handleScopeId S
3 7 4 scope Lcom/oracle/svm/truffle/nfi/LocalNativeScope;
5 6 5 idx I
MethodParameters:
Name Flags
handle
org.graalvm.word.PointerBase pinArray(java.lang.Object);
descriptor: (Ljava/lang/Object;)Lorg/graalvm/word/PointerBase;
flags: (0x0000)
Code:
stack=5, locals=3, args_size=2
start local 0 start local 1 0: aload 1
invokestatic org.graalvm.nativeimage.PinnedObject.create:(Ljava/lang/Object;)Lorg/graalvm/nativeimage/PinnedObject;
astore 2
start local 2 1: aload 0
getfield com.oracle.svm.truffle.nfi.LocalNativeScope.pinned:[Lorg/graalvm/nativeimage/PinnedObject;
aload 0
dup
getfield com.oracle.svm.truffle.nfi.LocalNativeScope.pinCount:I
dup_x1
iconst_1
iadd
putfield com.oracle.svm.truffle.nfi.LocalNativeScope.pinCount:I
aload 2
aastore
2: aload 2
iconst_0
invokeinterface org.graalvm.nativeimage.PinnedObject.addressOfArrayElement:(I)Lorg/graalvm/word/PointerBase;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/oracle/svm/truffle/nfi/LocalNativeScope;
0 3 1 arr Ljava/lang/Object;
1 3 2 ret Lorg/graalvm/nativeimage/PinnedObject;
RuntimeVisibleAnnotations:
com.oracle.truffle.api.CompilerDirectives$TruffleBoundary()
MethodParameters:
Name Flags
arr
org.graalvm.word.PointerBase pinString(java.lang.String);
descriptor: (Ljava/lang/String;)Lorg/graalvm/word/PointerBase;
flags: (0x0000)
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 1
invokestatic com.oracle.svm.truffle.nfi.TruffleNFISupport.javaStringToUtf8:(Ljava/lang/String;)[B
astore 2
start local 2 1: aload 0
aload 2
invokevirtual com.oracle.svm.truffle.nfi.LocalNativeScope.pinArray:(Ljava/lang/Object;)Lorg/graalvm/word/PointerBase;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/oracle/svm/truffle/nfi/LocalNativeScope;
0 2 1 str Ljava/lang/String;
1 2 2 array [B
RuntimeVisibleAnnotations:
com.oracle.truffle.api.CompilerDirectives$TruffleBoundary()
MethodParameters:
Name Flags
str
public void close();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: iconst_0
istore 1
start local 1 1: goto 4
2: StackMap locals: int
StackMap stack:
aload 0
getfield com.oracle.svm.truffle.nfi.LocalNativeScope.pinned:[Lorg/graalvm/nativeimage/PinnedObject;
iload 1
aaload
invokeinterface org.graalvm.nativeimage.PinnedObject.close:()V
3: iinc 1 1
StackMap locals:
StackMap stack:
4: iload 1
aload 0
getfield com.oracle.svm.truffle.nfi.LocalNativeScope.pinCount:I
if_icmplt 2
end local 1 5: aload 0
aload 0
getfield com.oracle.svm.truffle.nfi.LocalNativeScope.parent:Lcom/oracle/svm/truffle/nfi/LocalNativeScope;
invokestatic com.oracle.svm.truffle.nfi.TruffleNFISupport.closeLocalScope:(Lcom/oracle/svm/truffle/nfi/LocalNativeScope;Lcom/oracle/svm/truffle/nfi/LocalNativeScope;)V
6: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lcom/oracle/svm/truffle/nfi/LocalNativeScope;
1 5 1 i I
}
SourceFile: "LocalNativeScope.java"
InnerClasses:
public abstract TruffleBoundary = com.oracle.truffle.api.CompilerDirectives$TruffleBoundary of com.oracle.truffle.api.CompilerDirectives