public final class com.oracle.truffle.js.runtime.builtins.JSGlobal extends com.oracle.truffle.js.runtime.builtins.JSNonProxy
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: com.oracle.truffle.js.runtime.builtins.JSGlobal
super_class: com.oracle.truffle.js.runtime.builtins.JSNonProxy
{
public static final java.lang.String CLASS_NAME;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: "global"
public static final java.lang.String EVAL_NAME;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: "eval"
public static final com.oracle.truffle.js.runtime.builtins.JSGlobal INSTANCE;
descriptor: Lcom/oracle/truffle/js/runtime/builtins/JSGlobal;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: new com.oracle.truffle.js.runtime.builtins.JSGlobal
dup
invokespecial com.oracle.truffle.js.runtime.builtins.JSGlobal.<init>:()V
putstatic com.oracle.truffle.js.runtime.builtins.JSGlobal.INSTANCE:Lcom/oracle/truffle/js/runtime/builtins/JSGlobal;
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 com.oracle.truffle.js.runtime.builtins.JSNonProxy.<init>:()V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/oracle/truffle/js/runtime/builtins/JSGlobal;
public static com.oracle.truffle.api.object.DynamicObject create(com.oracle.truffle.js.runtime.JSRealm, com.oracle.truffle.api.object.DynamicObject);
descriptor: (Lcom/oracle/truffle/js/runtime/JSRealm;Lcom/oracle/truffle/api/object/DynamicObject;)Lcom/oracle/truffle/api/object/DynamicObject;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=5, args_size=2
start local 0 start local 1 0: invokestatic com.oracle.truffle.api.CompilerAsserts.neverPartOfCompilation:()V
1: aload 0
invokevirtual com.oracle.truffle.js.runtime.JSRealm.getContext:()Lcom/oracle/truffle/js/runtime/JSContext;
astore 2
start local 2 2: aload 2
invokevirtual com.oracle.truffle.js.runtime.JSContext.getGlobalObjectFactory:()Lcom/oracle/truffle/js/runtime/builtins/JSObjectFactory;
astore 3
start local 3 3: new com.oracle.truffle.js.runtime.builtins.JSGlobalObject
dup
aload 3
aload 0
invokevirtual com.oracle.truffle.js.runtime.builtins.JSObjectFactory.getShape:(Lcom/oracle/truffle/js/runtime/JSRealm;)Lcom/oracle/truffle/api/object/Shape;
invokespecial com.oracle.truffle.js.runtime.builtins.JSGlobalObject.<init>:(Lcom/oracle/truffle/api/object/Shape;)V
astore 4
start local 4 4: aload 3
aload 4
aload 1
invokevirtual com.oracle.truffle.js.runtime.builtins.JSObjectFactory.initProto:(Lcom/oracle/truffle/api/object/DynamicObject;Lcom/oracle/truffle/api/object/DynamicObject;)Lcom/oracle/truffle/api/object/DynamicObject;
pop
5: aload 4
ldc "global"
invokestatic com.oracle.truffle.js.runtime.objects.JSObjectUtil.putToStringTag:(Lcom/oracle/truffle/api/object/DynamicObject;Ljava/lang/String;)V
6: aload 4
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 realm Lcom/oracle/truffle/js/runtime/JSRealm;
0 7 1 objectPrototype Lcom/oracle/truffle/api/object/DynamicObject;
2 7 2 context Lcom/oracle/truffle/js/runtime/JSContext;
3 7 3 factory Lcom/oracle/truffle/js/runtime/builtins/JSObjectFactory;
4 7 4 global Lcom/oracle/truffle/api/object/DynamicObject;
MethodParameters:
Name Flags
realm
objectPrototype
public static com.oracle.truffle.api.object.Shape makeGlobalObjectShape(com.oracle.truffle.js.runtime.JSContext, com.oracle.truffle.api.object.DynamicObject);
descriptor: (Lcom/oracle/truffle/js/runtime/JSContext;Lcom/oracle/truffle/api/object/DynamicObject;)Lcom/oracle/truffle/api/object/Shape;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=4, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual com.oracle.truffle.js.runtime.JSContext.isMultiContext:()Z
ifeq 1
iconst_0
goto 2
StackMap locals:
StackMap stack:
1: iconst_1
StackMap locals:
StackMap stack: int
2: istore 2
start local 2 3: aload 0
getstatic com.oracle.truffle.js.runtime.builtins.JSGlobal.INSTANCE:Lcom/oracle/truffle/js/runtime/builtins/JSGlobal;
iload 2
ifeq 4
aload 1
goto 5
StackMap locals: com.oracle.truffle.js.runtime.JSContext com.oracle.truffle.api.object.DynamicObject int
StackMap stack: com.oracle.truffle.js.runtime.JSContext com.oracle.truffle.js.runtime.builtins.JSGlobal
4: aconst_null
StackMap locals: com.oracle.truffle.js.runtime.JSContext com.oracle.truffle.api.object.DynamicObject int
StackMap stack: com.oracle.truffle.js.runtime.JSContext com.oracle.truffle.js.runtime.builtins.JSGlobal com.oracle.truffle.api.object.DynamicObject
5: invokestatic com.oracle.truffle.js.runtime.objects.JSShape.newBuilder:(Lcom/oracle/truffle/js/runtime/JSContext;Lcom/oracle/truffle/js/runtime/builtins/JSClass;Lcom/oracle/truffle/api/object/DynamicObject;)Lcom/oracle/truffle/api/object/Shape$Builder;
iload 2
invokevirtual com.oracle.truffle.api.object.Shape$Builder.propertyAssumptions:(Z)Lcom/oracle/truffle/api/object/Shape$Builder;
6: iload 2
ifeq 7
aload 0
invokevirtual com.oracle.truffle.js.runtime.JSContext.getSingleRealmAssumption:()Lcom/oracle/truffle/api/Assumption;
goto 8
StackMap locals:
StackMap stack: com.oracle.truffle.api.object.Shape$Builder
7: aconst_null
8: StackMap locals: com.oracle.truffle.js.runtime.JSContext com.oracle.truffle.api.object.DynamicObject int
StackMap stack: com.oracle.truffle.api.object.Shape$Builder com.oracle.truffle.api.Assumption
invokevirtual com.oracle.truffle.api.object.Shape$Builder.singleContextAssumption:(Lcom/oracle/truffle/api/Assumption;)Lcom/oracle/truffle/api/object/Shape$Builder;
9: invokevirtual com.oracle.truffle.api.object.Shape$Builder.build:()Lcom/oracle/truffle/api/object/Shape;
10: astore 3
start local 3 11: iload 2
ifeq 13
12: aload 3
invokestatic com.oracle.truffle.api.object.Shape.newBuilder:(Lcom/oracle/truffle/api/object/Shape;)Lcom/oracle/truffle/api/object/Shape$DerivedBuilder;
getstatic com.oracle.truffle.js.runtime.objects.JSObject.HIDDEN_PROTO:Lcom/oracle/truffle/api/object/HiddenKey;
aload 1
iconst_0
invokevirtual com.oracle.truffle.api.object.Shape$DerivedBuilder.addConstantProperty:(Ljava/lang/Object;Ljava/lang/Object;I)Lcom/oracle/truffle/api/object/Shape$DerivedBuilder;
invokevirtual com.oracle.truffle.api.object.Shape$DerivedBuilder.build:()Lcom/oracle/truffle/api/object/Shape;
astore 3
13: StackMap locals: com.oracle.truffle.api.object.Shape
StackMap stack:
aload 3
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 context Lcom/oracle/truffle/js/runtime/JSContext;
0 14 1 objectPrototype Lcom/oracle/truffle/api/object/DynamicObject;
3 14 2 singleContext Z
11 14 3 globalObjectShape Lcom/oracle/truffle/api/object/Shape;
MethodParameters:
Name Flags
context
objectPrototype
public static com.oracle.truffle.api.object.DynamicObject createGlobalScope(com.oracle.truffle.js.runtime.JSContext);
descriptor: (Lcom/oracle/truffle/js/runtime/JSContext;)Lcom/oracle/truffle/api/object/DynamicObject;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: invokestatic com.oracle.truffle.api.CompilerAsserts.neverPartOfCompilation:()V
1: new com.oracle.truffle.js.runtime.builtins.JSGlobalObject
dup
aload 0
invokevirtual com.oracle.truffle.js.runtime.JSContext.getGlobalScopeShape:()Lcom/oracle/truffle/api/object/Shape;
invokespecial com.oracle.truffle.js.runtime.builtins.JSGlobalObject.<init>:(Lcom/oracle/truffle/api/object/Shape;)V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 context Lcom/oracle/truffle/js/runtime/JSContext;
MethodParameters:
Name Flags
context
public static boolean isJSGlobalObject(java.lang.Object);
descriptor: (Ljava/lang/Object;)Z
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokestatic com.oracle.truffle.js.runtime.objects.JSDynamicObject.isJSDynamicObject:(Ljava/lang/Object;)Z
ifeq 1
aload 0
checkcast com.oracle.truffle.api.object.DynamicObject
invokestatic com.oracle.truffle.js.runtime.builtins.JSGlobal.isJSGlobalObject:(Lcom/oracle/truffle/api/object/DynamicObject;)Z
ifeq 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 obj Ljava/lang/Object;
MethodParameters:
Name Flags
obj
public static boolean isJSGlobalObject(com.oracle.truffle.api.object.DynamicObject);
descriptor: (Lcom/oracle/truffle/api/object/DynamicObject;)Z
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getstatic com.oracle.truffle.js.runtime.builtins.JSGlobal.INSTANCE:Lcom/oracle/truffle/js/runtime/builtins/JSGlobal;
invokestatic com.oracle.truffle.js.runtime.builtins.JSGlobal.isInstance:(Lcom/oracle/truffle/api/object/DynamicObject;Lcom/oracle/truffle/js/runtime/builtins/JSClass;)Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 obj Lcom/oracle/truffle/api/object/DynamicObject;
MethodParameters:
Name Flags
obj
public java.lang.String getClassName(com.oracle.truffle.api.object.DynamicObject);
descriptor: (Lcom/oracle/truffle/api/object/DynamicObject;)Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=2, args_size=2
start local 0 start local 1 0: ldc "global"
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/oracle/truffle/js/runtime/builtins/JSGlobal;
0 1 1 object Lcom/oracle/truffle/api/object/DynamicObject;
MethodParameters:
Name Flags
object
}
SourceFile: "JSGlobal.java"
InnerClasses:
public final Builder = com.oracle.truffle.api.object.Shape$Builder of com.oracle.truffle.api.object.Shape
public final DerivedBuilder = com.oracle.truffle.api.object.Shape$DerivedBuilder of com.oracle.truffle.api.object.Shape