public class com.oracle.truffle.js.test.polyglot.ForeignTestMapTest extends com.oracle.truffle.js.test.JSTest
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: com.oracle.truffle.js.test.polyglot.ForeignTestMapTest
super_class: com.oracle.truffle.js.test.JSTest
{
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 // com.oracle.truffle.js.test.polyglot.ForeignTestMapTest this
0: .line 52
aload 0 /* this */
invokespecial com.oracle.truffle.js.test.JSTest.<init>:()V
return
end local 0 // com.oracle.truffle.js.test.polyglot.ForeignTestMapTest this
LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/oracle/truffle/js/test/polyglot/ForeignTestMapTest;
public void equalTest();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=4, args_size=1
start local 0 // com.oracle.truffle.js.test.polyglot.ForeignTestMapTest this
0: .line 56
new com.oracle.truffle.js.test.polyglot.ForeignTestMap
dup
invokespecial com.oracle.truffle.js.test.polyglot.ForeignTestMap.<init>:()V
astore 1 /* a */
start local 1 // com.oracle.truffle.js.test.polyglot.ForeignTestMap a
1: .line 57
aload 1 /* a */
invokevirtual com.oracle.truffle.js.test.polyglot.ForeignTestMap.getContainer:()Ljava/util/HashMap;
ldc "BOX"
ldc "boxed_A"
invokevirtual java.util.HashMap.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
2: .line 58
new com.oracle.truffle.js.test.polyglot.ForeignTestMap
dup
invokespecial com.oracle.truffle.js.test.polyglot.ForeignTestMap.<init>:()V
astore 2 /* a2 */
start local 2 // com.oracle.truffle.js.test.polyglot.ForeignTestMap a2
3: .line 59
aload 2 /* a2 */
invokevirtual com.oracle.truffle.js.test.polyglot.ForeignTestMap.getContainer:()Ljava/util/HashMap;
ldc "BOX"
ldc "boxed_A"
invokevirtual java.util.HashMap.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
4: .line 60
new com.oracle.truffle.js.test.polyglot.ForeignTestMap
dup
invokespecial com.oracle.truffle.js.test.polyglot.ForeignTestMap.<init>:()V
astore 3 /* b */
start local 3 // com.oracle.truffle.js.test.polyglot.ForeignTestMap b
5: .line 61
aload 3 /* b */
invokevirtual com.oracle.truffle.js.test.polyglot.ForeignTestMap.getContainer:()Ljava/util/HashMap;
ldc "BOX"
ldc "boxed_B"
invokevirtual java.util.HashMap.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
6: .line 63
aload 1 /* a */
aload 1 /* a */
invokestatic com.oracle.truffle.js.runtime.JSRuntime.equal:(Ljava/lang/Object;Ljava/lang/Object;)Z
invokestatic org.junit.Assert.assertTrue:(Z)V
7: .line 64
aload 1 /* a */
aload 2 /* a2 */
invokestatic com.oracle.truffle.js.runtime.JSRuntime.equal:(Ljava/lang/Object;Ljava/lang/Object;)Z
invokestatic org.junit.Assert.assertTrue:(Z)V
8: .line 65
aload 2 /* a2 */
aload 2 /* a2 */
invokestatic com.oracle.truffle.js.runtime.JSRuntime.equal:(Ljava/lang/Object;Ljava/lang/Object;)Z
invokestatic org.junit.Assert.assertTrue:(Z)V
9: .line 67
aload 1 /* a */
aload 3 /* b */
invokestatic com.oracle.truffle.js.runtime.JSRuntime.equal:(Ljava/lang/Object;Ljava/lang/Object;)Z
invokestatic org.junit.Assert.assertFalse:(Z)V
10: .line 68
aload 2 /* a2 */
aload 3 /* b */
invokestatic com.oracle.truffle.js.runtime.JSRuntime.equal:(Ljava/lang/Object;Ljava/lang/Object;)Z
invokestatic org.junit.Assert.assertFalse:(Z)V
11: .line 69
aload 1 /* a */
iconst_0
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
invokestatic com.oracle.truffle.js.runtime.JSRuntime.equal:(Ljava/lang/Object;Ljava/lang/Object;)Z
invokestatic org.junit.Assert.assertFalse:(Z)V
12: .line 70
aload 1 /* a */
iconst_1
invokestatic java.lang.Boolean.valueOf:(Z)Ljava/lang/Boolean;
invokestatic com.oracle.truffle.js.runtime.JSRuntime.equal:(Ljava/lang/Object;Ljava/lang/Object;)Z
invokestatic org.junit.Assert.assertFalse:(Z)V
13: .line 71
return
end local 3 // com.oracle.truffle.js.test.polyglot.ForeignTestMap b
end local 2 // com.oracle.truffle.js.test.polyglot.ForeignTestMap a2
end local 1 // com.oracle.truffle.js.test.polyglot.ForeignTestMap a
end local 0 // com.oracle.truffle.js.test.polyglot.ForeignTestMapTest this
LocalVariableTable:
Start End Slot Name Signature
0 14 0 this Lcom/oracle/truffle/js/test/polyglot/ForeignTestMapTest;
1 14 1 a Lcom/oracle/truffle/js/test/polyglot/ForeignTestMap;
3 14 2 a2 Lcom/oracle/truffle/js/test/polyglot/ForeignTestMap;
5 14 3 b Lcom/oracle/truffle/js/test/polyglot/ForeignTestMap;
RuntimeVisibleAnnotations:
org.junit.Test()
public void foreignTestMapTests();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=1
start local 0 // com.oracle.truffle.js.test.polyglot.ForeignTestMapTest this
0: .line 75
new com.oracle.truffle.js.test.polyglot.ForeignTestMap
dup
invokespecial com.oracle.truffle.js.test.polyglot.ForeignTestMap.<init>:()V
astore 1 /* map */
start local 1 // com.oracle.truffle.js.test.polyglot.ForeignTestMap map
1: .line 76
aload 1 /* map */
invokevirtual com.oracle.truffle.js.test.polyglot.ForeignTestMap.getContainer:()Ljava/util/HashMap;
ldc "value"
ldc "boxed"
invokevirtual java.util.HashMap.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
2: .line 78
aload 0 /* this */
getfield com.oracle.truffle.js.test.polyglot.ForeignTestMapTest.testHelper:Lcom/oracle/truffle/js/test/TestHelper;
invokevirtual com.oracle.truffle.js.test.TestHelper.getPolyglotContext:()Lorg/graalvm/polyglot/Context;
ldc "js"
invokevirtual org.graalvm.polyglot.Context.getBindings:(Ljava/lang/String;)Lorg/graalvm/polyglot/Value;
ldc "foreign"
aload 1 /* map */
invokevirtual org.graalvm.polyglot.Value.putMember:(Ljava/lang/String;Ljava/lang/Object;)V
3: .line 80
ldc "boxed"
aload 0 /* this */
getfield com.oracle.truffle.js.test.polyglot.ForeignTestMapTest.testHelper:Lcom/oracle/truffle/js/test/TestHelper;
ldc "foreign.value"
invokevirtual com.oracle.truffle.js.test.TestHelper.run:(Ljava/lang/String;)Ljava/lang/Object;
invokestatic org.junit.Assert.assertEquals:(Ljava/lang/Object;Ljava/lang/Object;)V
4: .line 81
bipush 42
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aload 0 /* this */
getfield com.oracle.truffle.js.test.polyglot.ForeignTestMapTest.testHelper:Lcom/oracle/truffle/js/test/TestHelper;
ldc "foreign.othervalue=42"
invokevirtual com.oracle.truffle.js.test.TestHelper.run:(Ljava/lang/String;)Ljava/lang/Object;
invokestatic org.junit.Assert.assertEquals:(Ljava/lang/Object;Ljava/lang/Object;)V
5: .line 82
bipush 42
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aload 0 /* this */
getfield com.oracle.truffle.js.test.polyglot.ForeignTestMapTest.testHelper:Lcom/oracle/truffle/js/test/TestHelper;
ldc "foreign.othervalue"
invokevirtual com.oracle.truffle.js.test.TestHelper.run:(Ljava/lang/String;)Ljava/lang/Object;
invokestatic org.junit.Assert.assertEquals:(Ljava/lang/Object;Ljava/lang/Object;)V
6: .line 83
iconst_1
invokestatic java.lang.Boolean.valueOf:(Z)Ljava/lang/Boolean;
aload 0 /* this */
getfield com.oracle.truffle.js.test.polyglot.ForeignTestMapTest.testHelper:Lcom/oracle/truffle/js/test/TestHelper;
ldc "delete foreign.othervalue"
invokevirtual com.oracle.truffle.js.test.TestHelper.run:(Ljava/lang/String;)Ljava/lang/Object;
invokestatic org.junit.Assert.assertEquals:(Ljava/lang/Object;Ljava/lang/Object;)V
7: .line 84
iconst_1
invokestatic java.lang.Boolean.valueOf:(Z)Ljava/lang/Boolean;
aload 0 /* this */
getfield com.oracle.truffle.js.test.polyglot.ForeignTestMapTest.testHelper:Lcom/oracle/truffle/js/test/TestHelper;
ldc "foreign.othervalue === undefined"
invokevirtual com.oracle.truffle.js.test.TestHelper.run:(Ljava/lang/String;)Ljava/lang/Object;
invokestatic org.junit.Assert.assertEquals:(Ljava/lang/Object;Ljava/lang/Object;)V
8: .line 85
bipush 84
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aload 0 /* this */
getfield com.oracle.truffle.js.test.polyglot.ForeignTestMapTest.testHelper:Lcom/oracle/truffle/js/test/TestHelper;
ldc "foreign.fn = (a)=>{ return a+a; }; foreign.fn(42);"
invokevirtual com.oracle.truffle.js.test.TestHelper.run:(Ljava/lang/String;)Ljava/lang/Object;
invokestatic org.junit.Assert.assertEquals:(Ljava/lang/Object;Ljava/lang/Object;)V
9: .line 87
iconst_1
invokestatic java.lang.Boolean.valueOf:(Z)Ljava/lang/Boolean;
aload 0 /* this */
getfield com.oracle.truffle.js.test.polyglot.ForeignTestMapTest.testHelper:Lcom/oracle/truffle/js/test/TestHelper;
ldc "foreign.length=10; foreign[0]=42; foreign[1]=41; Array.prototype.sort.call(foreign); foreign[0]===41 && foreign[1]===42 && foreign[2]===undefined;"
invokevirtual com.oracle.truffle.js.test.TestHelper.run:(Ljava/lang/String;)Ljava/lang/Object;
invokestatic org.junit.Assert.assertEquals:(Ljava/lang/Object;Ljava/lang/Object;)V
10: .line 88
return
end local 1 // com.oracle.truffle.js.test.polyglot.ForeignTestMap map
end local 0 // com.oracle.truffle.js.test.polyglot.ForeignTestMapTest this
LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lcom/oracle/truffle/js/test/polyglot/ForeignTestMapTest;
1 11 1 map Lcom/oracle/truffle/js/test/polyglot/ForeignTestMap;
RuntimeVisibleAnnotations:
org.junit.Test()
}
SourceFile: "ForeignTestMapTest.java"