abstract class com.oracle.truffle.js.builtins.JavaBuiltins$JavaExtendNode extends com.oracle.truffle.js.nodes.function.JSBuiltinNode
minor version: 0
major version: 59
flags: flags: (0x0420) ACC_SUPER, ACC_ABSTRACT
this_class: com.oracle.truffle.js.builtins.JavaBuiltins$JavaExtendNode
super_class: com.oracle.truffle.js.nodes.function.JSBuiltinNode
{
private final com.oracle.truffle.api.profiles.BranchProfile errorBranch;
descriptor: Lcom/oracle/truffle/api/profiles/BranchProfile;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
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/builtins/JavaBuiltins;
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.builtins.JavaBuiltins$JavaExtendNode.$assertionsDisabled:Z
return
LocalVariableTable:
Start End Slot Name Signature
void <init>(com.oracle.truffle.js.runtime.JSContext, com.oracle.truffle.js.nodes.function.JSBuiltin);
descriptor: (Lcom/oracle/truffle/js/runtime/JSContext;Lcom/oracle/truffle/js/nodes/function/JSBuiltin;)V
flags: (0x0000)
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
aload 2
invokespecial com.oracle.truffle.js.nodes.function.JSBuiltinNode.<init>:(Lcom/oracle/truffle/js/runtime/JSContext;Lcom/oracle/truffle/js/nodes/function/JSBuiltin;)V
1: aload 0
invokestatic com.oracle.truffle.api.profiles.BranchProfile.create:()Lcom/oracle/truffle/api/profiles/BranchProfile;
putfield com.oracle.truffle.js.builtins.JavaBuiltins$JavaExtendNode.errorBranch:Lcom/oracle/truffle/api/profiles/BranchProfile;
2: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/oracle/truffle/js/builtins/JavaBuiltins$JavaExtendNode;
0 3 1 context Lcom/oracle/truffle/js/runtime/JSContext;
0 3 2 builtin Lcom/oracle/truffle/js/nodes/function/JSBuiltin;
MethodParameters:
Name Flags
context
builtin
protected java.lang.Object extend(java.lang.Object[]);
descriptor: ([Ljava/lang/Object;)Ljava/lang/Object;
flags: (0x0004) ACC_PROTECTED
Code:
stack=4, locals=7, args_size=2
start local 0 start local 1 0: getstatic com.oracle.truffle.js.runtime.JSConfig.SubstrateVM:Z
ifeq 2
1: ldc "JavaAdapter"
invokestatic com.oracle.truffle.js.runtime.Errors.unsupported:(Ljava/lang/String;)Ljava/lang/RuntimeException;
athrow
2: StackMap locals:
StackMap stack:
aload 1
arraylength
ifne 5
3: aload 0
getfield com.oracle.truffle.js.builtins.JavaBuiltins$JavaExtendNode.errorBranch:Lcom/oracle/truffle/api/profiles/BranchProfile;
invokevirtual com.oracle.truffle.api.profiles.BranchProfile.enter:()V
4: ldc "Java.extend needs at least one argument."
invokestatic com.oracle.truffle.js.runtime.Errors.createTypeError:(Ljava/lang/String;)Lcom/oracle/truffle/js/runtime/JSException;
athrow
5: StackMap locals:
StackMap stack:
aload 1
aload 1
arraylength
iconst_1
isub
aaload
invokestatic com.oracle.truffle.js.runtime.JSRuntime.isObject:(Ljava/lang/Object;)Z
ifeq 11
6: aload 1
aload 1
arraylength
iconst_1
isub
aaload
checkcast com.oracle.truffle.api.object.DynamicObject
astore 3
start local 3 7: aload 1
arraylength
iconst_1
isub
istore 2
start local 2 8: iload 2
ifne 13
9: aload 0
getfield com.oracle.truffle.js.builtins.JavaBuiltins$JavaExtendNode.errorBranch:Lcom/oracle/truffle/api/profiles/BranchProfile;
invokevirtual com.oracle.truffle.api.profiles.BranchProfile.enter:()V
10: ldc "Java.extend needs at least one type argument."
invokestatic com.oracle.truffle.js.runtime.Errors.createTypeError:(Ljava/lang/String;)Lcom/oracle/truffle/js/runtime/JSException;
athrow
end local 3 end local 2 11: StackMap locals:
StackMap stack:
aconst_null
astore 3
start local 3 12: aload 1
arraylength
istore 2
start local 2 13: StackMap locals: int com.oracle.truffle.api.object.DynamicObject
StackMap stack:
aload 0
invokevirtual com.oracle.truffle.js.builtins.JavaBuiltins$JavaExtendNode.getContext:()Lcom/oracle/truffle/js/runtime/JSContext;
invokevirtual com.oracle.truffle.js.runtime.JSContext.getRealm:()Lcom/oracle/truffle/js/runtime/JSRealm;
invokevirtual com.oracle.truffle.js.runtime.JSRealm.getEnv:()Lcom/oracle/truffle/api/TruffleLanguage$Env;
astore 4
start local 4 14: iload 2
anewarray java.lang.Class
astore 5
start local 5 15: iconst_0
istore 6
start local 6 16: goto 22
17: StackMap locals: com.oracle.truffle.api.TruffleLanguage$Env java.lang.Class[] int
StackMap stack:
aload 1
iload 6
aaload
aload 4
invokestatic com.oracle.truffle.js.builtins.JavaBuiltins$JavaExtendNode.isType:(Ljava/lang/Object;Lcom/oracle/truffle/api/TruffleLanguage$Env;)Z
ifne 20
18: aload 0
getfield com.oracle.truffle.js.builtins.JavaBuiltins$JavaExtendNode.errorBranch:Lcom/oracle/truffle/api/profiles/BranchProfile;
invokevirtual com.oracle.truffle.api.profiles.BranchProfile.enter:()V
19: ldc "Java.extend needs Java types as its arguments."
invokestatic com.oracle.truffle.js.runtime.Errors.createTypeError:(Ljava/lang/String;)Lcom/oracle/truffle/js/runtime/JSException;
athrow
20: StackMap locals:
StackMap stack:
aload 5
iload 6
aload 1
iload 6
aaload
aload 4
invokestatic com.oracle.truffle.js.builtins.JavaBuiltins$JavaExtendNode.toHostClass:(Ljava/lang/Object;Lcom/oracle/truffle/api/TruffleLanguage$Env;)Ljava/lang/Class;
aastore
21: iinc 6 1
StackMap locals:
StackMap stack:
22: iload 6
iload 2
if_icmplt 17
end local 6 23: aload 5
aload 0
invokevirtual com.oracle.truffle.js.builtins.JavaBuiltins$JavaExtendNode.getContext:()Lcom/oracle/truffle/js/runtime/JSContext;
invokestatic com.oracle.truffle.js.runtime.java.JavaAccess.checkAccess:([Ljava/lang/Class;Lcom/oracle/truffle/js/runtime/JSContext;)V
24: aload 3
ifnull 27
25: aload 4
aload 5
aload 3
invokevirtual com.oracle.truffle.api.TruffleLanguage$Env.createHostAdapterClassWithStaticOverrides:([Ljava/lang/Class;Ljava/lang/Object;)Ljava/lang/Object;
26: areturn
27: StackMap locals:
StackMap stack:
aload 4
aload 5
invokevirtual com.oracle.truffle.api.TruffleLanguage$Env.createHostAdapterClass:([Ljava/lang/Class;)Ljava/lang/Object;
28: areturn
29: StackMap locals:
StackMap stack: java.lang.Exception
astore 6
start local 6 30: aload 6
invokevirtual java.lang.Exception.getMessage:()Ljava/lang/String;
aload 6
aload 0
invokestatic com.oracle.truffle.js.runtime.Errors.createTypeError:(Ljava/lang/String;Ljava/lang/Throwable;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 31 0 this Lcom/oracle/truffle/js/builtins/JavaBuiltins$JavaExtendNode;
0 31 1 arguments [Ljava/lang/Object;
8 11 2 typesLength I
13 31 2 typesLength I
7 11 3 classOverrides Lcom/oracle/truffle/api/object/DynamicObject;
12 31 3 classOverrides Lcom/oracle/truffle/api/object/DynamicObject;
14 31 4 env Lcom/oracle/truffle/api/TruffleLanguage$Env;
15 31 5 types [Ljava/lang/Class;
16 23 6 i I
30 31 6 ex Ljava/lang/Exception;
Exception table:
from to target type
23 26 29 Class java.lang.Exception
27 28 29 Class java.lang.Exception
RuntimeVisibleAnnotations:
com.oracle.truffle.api.dsl.Specialization()
com.oracle.truffle.api.CompilerDirectives$TruffleBoundary(transferToInterpreterOnException = false)
MethodParameters:
Name Flags
arguments
protected static boolean isType(java.lang.Object, com.oracle.truffle.api.TruffleLanguage$Env);
descriptor: (Ljava/lang/Object;Lcom/oracle/truffle/api/TruffleLanguage$Env;)Z
flags: (0x000c) ACC_PROTECTED, ACC_STATIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 1
aload 0
invokevirtual com.oracle.truffle.api.TruffleLanguage$Env.isHostObject:(Ljava/lang/Object;)Z
ifeq 1
aload 1
aload 0
invokevirtual com.oracle.truffle.api.TruffleLanguage$Env.asHostObject:(Ljava/lang/Object;)Ljava/lang/Object;
instanceof java.lang.Class
ifeq 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 obj Ljava/lang/Object;
0 2 1 env Lcom/oracle/truffle/api/TruffleLanguage$Env;
MethodParameters:
Name Flags
obj
env
protected static java.lang.Class<?> toHostClass(, com.oracle.truffle.api.TruffleLanguage$Env);
descriptor: (Ljava/lang/Object;Lcom/oracle/truffle/api/TruffleLanguage$Env;)Ljava/lang/Class;
flags: (0x000c) ACC_PROTECTED, ACC_STATIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: getstatic com.oracle.truffle.js.builtins.JavaBuiltins$JavaExtendNode.$assertionsDisabled:Z
ifne 1
aload 0
aload 1
invokestatic com.oracle.truffle.js.builtins.JavaBuiltins$JavaExtendNode.isType:(Ljava/lang/Object;Lcom/oracle/truffle/api/TruffleLanguage$Env;)Z
ifne 1
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
1: StackMap locals:
StackMap stack:
aload 1
aload 0
invokevirtual com.oracle.truffle.api.TruffleLanguage$Env.asHostObject:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.Class
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 type Ljava/lang/Object;
0 2 1 env Lcom/oracle/truffle/api/TruffleLanguage$Env;
Signature: (Ljava/lang/Object;Lcom/oracle/truffle/api/TruffleLanguage$Env;)Ljava/lang/Class<*>;
MethodParameters:
Name Flags
type
env
}
SourceFile: "JavaBuiltins.java"
NestHost: com.oracle.truffle.js.builtins.JavaBuiltins
InnerClasses:
public abstract TruffleBoundary = com.oracle.truffle.api.CompilerDirectives$TruffleBoundary of com.oracle.truffle.api.CompilerDirectives
public final Env = com.oracle.truffle.api.TruffleLanguage$Env of com.oracle.truffle.api.TruffleLanguage
abstract JavaExtendNode = com.oracle.truffle.js.builtins.JavaBuiltins$JavaExtendNode of com.oracle.truffle.js.builtins.JavaBuiltins