public class org.graalvm.compiler.hotspot.test.PolymorphicInliningTest extends org.graalvm.compiler.core.test.GraalCompilerTest
  minor version: 0
  major version: 59
  flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
  this_class: org.graalvm.compiler.hotspot.test.PolymorphicInliningTest
  super_class: org.graalvm.compiler.core.test.GraalCompilerTest
{
  public void <init>();
    descriptor: ()V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=1, locals=1, args_size=1
        start local 0 // org.graalvm.compiler.hotspot.test.PolymorphicInliningTest this
         0: .line 44
            aload 0 /* this */
            invokespecial org.graalvm.compiler.core.test.GraalCompilerTest.<init>:()V
            return
        end local 0 // org.graalvm.compiler.hotspot.test.PolymorphicInliningTest this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    1     0  this  Lorg/graalvm/compiler/hotspot/test/PolymorphicInliningTest;

  public void initializeNotInlinableMethod();
    descriptor: ()V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=3, locals=1, args_size=1
        start local 0 // org.graalvm.compiler.hotspot.test.PolymorphicInliningTest this
         0: .line 48
            aload 0 /* this */
            ldc Lorg/graalvm/compiler/hotspot/test/PolymorphicInliningTest$NotInlinableSubClass;
            ldc "foo"
            invokevirtual org.graalvm.compiler.hotspot.test.PolymorphicInliningTest.getResolvedJavaMethod:(Ljava/lang/Class;Ljava/lang/String;)Ljdk/vm/ci/meta/ResolvedJavaMethod;
            checkcast jdk.vm.ci.hotspot.HotSpotResolvedJavaMethod
            invokeinterface jdk.vm.ci.hotspot.HotSpotResolvedJavaMethod.setNotInlinableOrCompilable:()V
         1: .line 50
            new org.graalvm.compiler.hotspot.test.PolymorphicInliningTest$A
            dup
            invokespecial org.graalvm.compiler.hotspot.test.PolymorphicInliningTest$A.<init>:()V
            invokevirtual org.graalvm.compiler.hotspot.test.PolymorphicInliningTest$A.foo:()I
            pop
         2: .line 51
            new org.graalvm.compiler.hotspot.test.PolymorphicInliningTest$B
            dup
            invokespecial org.graalvm.compiler.hotspot.test.PolymorphicInliningTest$B.<init>:()V
            invokevirtual org.graalvm.compiler.hotspot.test.PolymorphicInliningTest$B.foo:()I
            pop
         3: .line 52
            new org.graalvm.compiler.hotspot.test.PolymorphicInliningTest$NotInlinableSubClass
            dup
            invokespecial org.graalvm.compiler.hotspot.test.PolymorphicInliningTest$NotInlinableSubClass.<init>:()V
            invokevirtual org.graalvm.compiler.hotspot.test.PolymorphicInliningTest$NotInlinableSubClass.foo:()I
            pop
         4: .line 53
            return
        end local 0 // org.graalvm.compiler.hotspot.test.PolymorphicInliningTest this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    5     0  this  Lorg/graalvm/compiler/hotspot/test/PolymorphicInliningTest;
    RuntimeVisibleAnnotations: 
      org.junit.Before()

  public int snippet(org.graalvm.compiler.hotspot.test.PolymorphicInliningTest$SuperClass);
    descriptor: (Lorg/graalvm/compiler/hotspot/test/PolymorphicInliningTest$SuperClass;)I
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=1, locals=2, args_size=2
        start local 0 // org.graalvm.compiler.hotspot.test.PolymorphicInliningTest this
        start local 1 // org.graalvm.compiler.hotspot.test.PolymorphicInliningTest$SuperClass receiver
         0: .line 56
            aload 1 /* receiver */
            invokevirtual org.graalvm.compiler.hotspot.test.PolymorphicInliningTest$SuperClass.foo:()I
            ireturn
        end local 1 // org.graalvm.compiler.hotspot.test.PolymorphicInliningTest$SuperClass receiver
        end local 0 // org.graalvm.compiler.hotspot.test.PolymorphicInliningTest this
      LocalVariableTable:
        Start  End  Slot      Name  Signature
            0    1     0      this  Lorg/graalvm/compiler/hotspot/test/PolymorphicInliningTest;
            0    1     1  receiver  Lorg/graalvm/compiler/hotspot/test/PolymorphicInliningTest$SuperClass;
    MethodParameters:
          Name  Flags
      receiver  

  public void testBimorphicInlined();
    descriptor: ()V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=8, locals=5, args_size=1
        start local 0 // org.graalvm.compiler.hotspot.test.PolymorphicInliningTest this
         0: .line 61
            aload 0 /* this */
            ldc "snippet"
            invokevirtual org.graalvm.compiler.hotspot.test.PolymorphicInliningTest.getResolvedJavaMethod:(Ljava/lang/String;)Ljdk/vm/ci/meta/ResolvedJavaMethod;
            astore 1 /* method */
        start local 1 // jdk.vm.ci.meta.ResolvedJavaMethod method
         1: .line 62
            aload 0 /* this */
            aload 1 /* method */
            invokevirtual org.graalvm.compiler.hotspot.test.PolymorphicInliningTest.parseForCompile:(Ljdk/vm/ci/meta/ResolvedJavaMethod;)Lorg/graalvm/compiler/nodes/StructuredGraph;
            astore 2 /* graph */
        start local 2 // org.graalvm.compiler.nodes.StructuredGraph graph
         2: .line 64
            aload 0 /* this */
            invokevirtual org.graalvm.compiler.hotspot.test.PolymorphicInliningTest.getMetaAccess:()Ljdk/vm/ci/meta/MetaAccessProvider;
            astore 3 /* metaAccess */
        start local 3 // jdk.vm.ci.meta.MetaAccessProvider metaAccess
         3: .line 65
            iconst_2
            anewarray jdk.vm.ci.meta.JavaTypeProfile$ProfiledType
            dup
            iconst_0
         4: .line 66
            new jdk.vm.ci.meta.JavaTypeProfile$ProfiledType
            dup
            aload 3 /* metaAccess */
            ldc Lorg/graalvm/compiler/hotspot/test/PolymorphicInliningTest$A;
            invokeinterface jdk.vm.ci.meta.MetaAccessProvider.lookupJavaType:(Ljava/lang/Class;)Ljdk/vm/ci/meta/ResolvedJavaType;
            ldc 0.5
            invokespecial jdk.vm.ci.meta.JavaTypeProfile$ProfiledType.<init>:(Ljdk/vm/ci/meta/ResolvedJavaType;D)V
            aastore
            dup
            iconst_1
         5: .line 67
            new jdk.vm.ci.meta.JavaTypeProfile$ProfiledType
            dup
            aload 3 /* metaAccess */
            ldc Lorg/graalvm/compiler/hotspot/test/PolymorphicInliningTest$B;
            invokeinterface jdk.vm.ci.meta.MetaAccessProvider.lookupJavaType:(Ljava/lang/Class;)Ljdk/vm/ci/meta/ResolvedJavaType;
            ldc 0.5
            invokespecial jdk.vm.ci.meta.JavaTypeProfile$ProfiledType.<init>:(Ljdk/vm/ci/meta/ResolvedJavaType;D)V
            aastore
         6: .line 65
            astore 4 /* injectedProfile */
        start local 4 // jdk.vm.ci.meta.JavaTypeProfile$ProfiledType[] injectedProfile
         7: .line 68
            aload 2 /* graph */
            ldc "PolymorphicInliningTest$SuperClass.foo"
            new jdk.vm.ci.meta.JavaTypeProfile
            dup
            getstatic jdk.vm.ci.meta.TriState.FALSE:Ljdk/vm/ci/meta/TriState;
            dconst_0
            aload 4 /* injectedProfile */
            invokespecial jdk.vm.ci.meta.JavaTypeProfile.<init>:(Ljdk/vm/ci/meta/TriState;D[Ljdk/vm/ci/meta/JavaTypeProfile$ProfiledType;)V
            invokestatic org.graalvm.compiler.hotspot.test.PolymorphicInliningTest.injectTypeProfile:(Lorg/graalvm/compiler/nodes/StructuredGraph;Ljava/lang/String;Ljdk/vm/ci/meta/JavaTypeProfile;)V
         8: .line 70
            aload 0 /* this */
            invokevirtual org.graalvm.compiler.hotspot.test.PolymorphicInliningTest.createInliningPhase:()Lorg/graalvm/compiler/phases/BasePhase;
            aload 2 /* graph */
            aload 0 /* this */
            invokevirtual org.graalvm.compiler.hotspot.test.PolymorphicInliningTest.getDefaultHighTierContext:()Lorg/graalvm/compiler/phases/tiers/HighTierContext;
            invokevirtual org.graalvm.compiler.phases.BasePhase.apply:(Lorg/graalvm/compiler/nodes/StructuredGraph;Ljava/lang/Object;)V
         9: .line 73
            aload 2 /* graph */
            ldc Lorg/graalvm/compiler/nodes/InvokeNode;
            invokestatic org.graalvm.compiler.hotspot.test.PolymorphicInliningTest.getNodeCount:(Lorg/graalvm/compiler/nodes/StructuredGraph;Ljava/lang/Class;)I
            ifne 10
            iconst_1
            goto 11
      StackMap locals: org.graalvm.compiler.hotspot.test.PolymorphicInliningTest jdk.vm.ci.meta.ResolvedJavaMethod org.graalvm.compiler.nodes.StructuredGraph jdk.vm.ci.meta.MetaAccessProvider jdk.vm.ci.meta.JavaTypeProfile$ProfiledType[]
      StackMap stack:
        10: iconst_0
      StackMap locals:
      StackMap stack: int
        11: invokestatic org.graalvm.compiler.hotspot.test.PolymorphicInliningTest.assertTrue:(Z)V
        12: .line 74
            aload 2 /* graph */
            ldc Lorg/graalvm/compiler/nodes/java/TypeSwitchNode;
            invokestatic org.graalvm.compiler.hotspot.test.PolymorphicInliningTest.getNodeCount:(Lorg/graalvm/compiler/nodes/StructuredGraph;Ljava/lang/Class;)I
            iconst_1
            if_icmpne 13
            iconst_1
            goto 14
      StackMap locals:
      StackMap stack:
        13: iconst_0
      StackMap locals:
      StackMap stack: int
        14: invokestatic org.graalvm.compiler.hotspot.test.PolymorphicInliningTest.assertTrue:(Z)V
        15: .line 75
            aload 2 /* graph */
            ldc Lorg/graalvm/compiler/nodes/AbstractDeoptimizeNode;
            invokestatic org.graalvm.compiler.hotspot.test.PolymorphicInliningTest.getNodeCount:(Lorg/graalvm/compiler/nodes/StructuredGraph;Ljava/lang/Class;)I
            iconst_1
            if_icmpne 16
            iconst_1
            goto 17
      StackMap locals:
      StackMap stack:
        16: iconst_0
      StackMap locals:
      StackMap stack: int
        17: invokestatic org.graalvm.compiler.hotspot.test.PolymorphicInliningTest.assertTrue:(Z)V
        18: .line 76
            return
        end local 4 // jdk.vm.ci.meta.JavaTypeProfile$ProfiledType[] injectedProfile
        end local 3 // jdk.vm.ci.meta.MetaAccessProvider metaAccess
        end local 2 // org.graalvm.compiler.nodes.StructuredGraph graph
        end local 1 // jdk.vm.ci.meta.ResolvedJavaMethod method
        end local 0 // org.graalvm.compiler.hotspot.test.PolymorphicInliningTest this
      LocalVariableTable:
        Start  End  Slot             Name  Signature
            0   19     0             this  Lorg/graalvm/compiler/hotspot/test/PolymorphicInliningTest;
            1   19     1           method  Ljdk/vm/ci/meta/ResolvedJavaMethod;
            2   19     2            graph  Lorg/graalvm/compiler/nodes/StructuredGraph;
            3   19     3       metaAccess  Ljdk/vm/ci/meta/MetaAccessProvider;
            7   19     4  injectedProfile  [Ljdk/vm/ci/meta/JavaTypeProfile$ProfiledType;
    RuntimeVisibleAnnotations: 
      org.junit.Test()

  public void testBimorphicNotInlined();
    descriptor: ()V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=8, locals=5, args_size=1
        start local 0 // org.graalvm.compiler.hotspot.test.PolymorphicInliningTest this
         0: .line 80
            aload 0 /* this */
            ldc "snippet"
            invokevirtual org.graalvm.compiler.hotspot.test.PolymorphicInliningTest.getResolvedJavaMethod:(Ljava/lang/String;)Ljdk/vm/ci/meta/ResolvedJavaMethod;
            astore 1 /* method */
        start local 1 // jdk.vm.ci.meta.ResolvedJavaMethod method
         1: .line 81
            aload 0 /* this */
            aload 1 /* method */
            invokevirtual org.graalvm.compiler.hotspot.test.PolymorphicInliningTest.parseForCompile:(Ljdk/vm/ci/meta/ResolvedJavaMethod;)Lorg/graalvm/compiler/nodes/StructuredGraph;
            astore 2 /* graph */
        start local 2 // org.graalvm.compiler.nodes.StructuredGraph graph
         2: .line 83
            aload 0 /* this */
            invokevirtual org.graalvm.compiler.hotspot.test.PolymorphicInliningTest.getMetaAccess:()Ljdk/vm/ci/meta/MetaAccessProvider;
            astore 3 /* metaAccess */
        start local 3 // jdk.vm.ci.meta.MetaAccessProvider metaAccess
         3: .line 84
            iconst_2
            anewarray jdk.vm.ci.meta.JavaTypeProfile$ProfiledType
            dup
            iconst_0
         4: .line 85
            new jdk.vm.ci.meta.JavaTypeProfile$ProfiledType
            dup
            aload 3 /* metaAccess */
            ldc Lorg/graalvm/compiler/hotspot/test/PolymorphicInliningTest$A;
            invokeinterface jdk.vm.ci.meta.MetaAccessProvider.lookupJavaType:(Ljava/lang/Class;)Ljdk/vm/ci/meta/ResolvedJavaType;
            ldc 0.8
            invokespecial jdk.vm.ci.meta.JavaTypeProfile$ProfiledType.<init>:(Ljdk/vm/ci/meta/ResolvedJavaType;D)V
            aastore
            dup
            iconst_1
         5: .line 86
            new jdk.vm.ci.meta.JavaTypeProfile$ProfiledType
            dup
            aload 3 /* metaAccess */
            ldc Lorg/graalvm/compiler/hotspot/test/PolymorphicInliningTest$NotInlinableSubClass;
            invokeinterface jdk.vm.ci.meta.MetaAccessProvider.lookupJavaType:(Ljava/lang/Class;)Ljdk/vm/ci/meta/ResolvedJavaType;
            ldc 0.2
            invokespecial jdk.vm.ci.meta.JavaTypeProfile$ProfiledType.<init>:(Ljdk/vm/ci/meta/ResolvedJavaType;D)V
            aastore
         6: .line 84
            astore 4 /* injectedProfile */
        start local 4 // jdk.vm.ci.meta.JavaTypeProfile$ProfiledType[] injectedProfile
         7: .line 87
            aload 2 /* graph */
            ldc "PolymorphicInliningTest$SuperClass.foo"
            new jdk.vm.ci.meta.JavaTypeProfile
            dup
            getstatic jdk.vm.ci.meta.TriState.FALSE:Ljdk/vm/ci/meta/TriState;
            dconst_0
            aload 4 /* injectedProfile */
            invokespecial jdk.vm.ci.meta.JavaTypeProfile.<init>:(Ljdk/vm/ci/meta/TriState;D[Ljdk/vm/ci/meta/JavaTypeProfile$ProfiledType;)V
            invokestatic org.graalvm.compiler.hotspot.test.PolymorphicInliningTest.injectTypeProfile:(Lorg/graalvm/compiler/nodes/StructuredGraph;Ljava/lang/String;Ljdk/vm/ci/meta/JavaTypeProfile;)V
         8: .line 89
            aload 0 /* this */
            invokevirtual org.graalvm.compiler.hotspot.test.PolymorphicInliningTest.createInliningPhase:()Lorg/graalvm/compiler/phases/BasePhase;
            aload 2 /* graph */
            aload 0 /* this */
            invokevirtual org.graalvm.compiler.hotspot.test.PolymorphicInliningTest.getDefaultHighTierContext:()Lorg/graalvm/compiler/phases/tiers/HighTierContext;
            invokevirtual org.graalvm.compiler.phases.BasePhase.apply:(Lorg/graalvm/compiler/nodes/StructuredGraph;Ljava/lang/Object;)V
         9: .line 92
            aload 2 /* graph */
            ldc Lorg/graalvm/compiler/nodes/InvokeNode;
            invokestatic org.graalvm.compiler.hotspot.test.PolymorphicInliningTest.getNodeCount:(Lorg/graalvm/compiler/nodes/StructuredGraph;Ljava/lang/Class;)I
            iconst_1
            if_icmpne 10
            iconst_1
            goto 11
      StackMap locals: org.graalvm.compiler.hotspot.test.PolymorphicInliningTest jdk.vm.ci.meta.ResolvedJavaMethod org.graalvm.compiler.nodes.StructuredGraph jdk.vm.ci.meta.MetaAccessProvider jdk.vm.ci.meta.JavaTypeProfile$ProfiledType[]
      StackMap stack:
        10: iconst_0
      StackMap locals:
      StackMap stack: int
        11: invokestatic org.graalvm.compiler.hotspot.test.PolymorphicInliningTest.assertTrue:(Z)V
        12: .line 93
            aload 2 /* graph */
            ldc Lorg/graalvm/compiler/nodes/java/TypeSwitchNode;
            invokestatic org.graalvm.compiler.hotspot.test.PolymorphicInliningTest.getNodeCount:(Lorg/graalvm/compiler/nodes/StructuredGraph;Ljava/lang/Class;)I
            ifne 13
            iconst_1
            goto 14
      StackMap locals:
      StackMap stack:
        13: iconst_0
      StackMap locals:
      StackMap stack: int
        14: invokestatic org.graalvm.compiler.hotspot.test.PolymorphicInliningTest.assertTrue:(Z)V
        15: .line 94
            aload 2 /* graph */
            ldc Lorg/graalvm/compiler/nodes/AbstractDeoptimizeNode;
            invokestatic org.graalvm.compiler.hotspot.test.PolymorphicInliningTest.getNodeCount:(Lorg/graalvm/compiler/nodes/StructuredGraph;Ljava/lang/Class;)I
            ifne 16
            iconst_1
            goto 17
      StackMap locals:
      StackMap stack:
        16: iconst_0
      StackMap locals:
      StackMap stack: int
        17: invokestatic org.graalvm.compiler.hotspot.test.PolymorphicInliningTest.assertTrue:(Z)V
        18: .line 95
            return
        end local 4 // jdk.vm.ci.meta.JavaTypeProfile$ProfiledType[] injectedProfile
        end local 3 // jdk.vm.ci.meta.MetaAccessProvider metaAccess
        end local 2 // org.graalvm.compiler.nodes.StructuredGraph graph
        end local 1 // jdk.vm.ci.meta.ResolvedJavaMethod method
        end local 0 // org.graalvm.compiler.hotspot.test.PolymorphicInliningTest this
      LocalVariableTable:
        Start  End  Slot             Name  Signature
            0   19     0             this  Lorg/graalvm/compiler/hotspot/test/PolymorphicInliningTest;
            1   19     1           method  Ljdk/vm/ci/meta/ResolvedJavaMethod;
            2   19     2            graph  Lorg/graalvm/compiler/nodes/StructuredGraph;
            3   19     3       metaAccess  Ljdk/vm/ci/meta/MetaAccessProvider;
            7   19     4  injectedProfile  [Ljdk/vm/ci/meta/JavaTypeProfile$ProfiledType;
    RuntimeVisibleAnnotations: 
      org.junit.Test()

  public void testMegamorphicInlined();
    descriptor: ()V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=8, locals=5, args_size=1
        start local 0 // org.graalvm.compiler.hotspot.test.PolymorphicInliningTest this
         0: .line 99
            aload 0 /* this */
            ldc "snippet"
            invokevirtual org.graalvm.compiler.hotspot.test.PolymorphicInliningTest.getResolvedJavaMethod:(Ljava/lang/String;)Ljdk/vm/ci/meta/ResolvedJavaMethod;
            astore 1 /* method */
        start local 1 // jdk.vm.ci.meta.ResolvedJavaMethod method
         1: .line 100
            aload 0 /* this */
            aload 1 /* method */
            invokevirtual org.graalvm.compiler.hotspot.test.PolymorphicInliningTest.parseForCompile:(Ljdk/vm/ci/meta/ResolvedJavaMethod;)Lorg/graalvm/compiler/nodes/StructuredGraph;
            astore 2 /* graph */
        start local 2 // org.graalvm.compiler.nodes.StructuredGraph graph
         2: .line 102
            aload 0 /* this */
            invokevirtual org.graalvm.compiler.hotspot.test.PolymorphicInliningTest.getMetaAccess:()Ljdk/vm/ci/meta/MetaAccessProvider;
            astore 3 /* metaAccess */
        start local 3 // jdk.vm.ci.meta.MetaAccessProvider metaAccess
         3: .line 103
            iconst_2
            anewarray jdk.vm.ci.meta.JavaTypeProfile$ProfiledType
            dup
            iconst_0
         4: .line 104
            new jdk.vm.ci.meta.JavaTypeProfile$ProfiledType
            dup
            aload 3 /* metaAccess */
            ldc Lorg/graalvm/compiler/hotspot/test/PolymorphicInliningTest$A;
            invokeinterface jdk.vm.ci.meta.MetaAccessProvider.lookupJavaType:(Ljava/lang/Class;)Ljdk/vm/ci/meta/ResolvedJavaType;
            ldc 0.79
            invokespecial jdk.vm.ci.meta.JavaTypeProfile$ProfiledType.<init>:(Ljdk/vm/ci/meta/ResolvedJavaType;D)V
            aastore
            dup
            iconst_1
         5: .line 105
            new jdk.vm.ci.meta.JavaTypeProfile$ProfiledType
            dup
            aload 3 /* metaAccess */
            ldc Lorg/graalvm/compiler/hotspot/test/PolymorphicInliningTest$NotInlinableSubClass;
            invokeinterface jdk.vm.ci.meta.MetaAccessProvider.lookupJavaType:(Ljava/lang/Class;)Ljdk/vm/ci/meta/ResolvedJavaType;
            ldc 0.2
            invokespecial jdk.vm.ci.meta.JavaTypeProfile$ProfiledType.<init>:(Ljdk/vm/ci/meta/ResolvedJavaType;D)V
            aastore
         6: .line 103
            astore 4 /* injectedProfile */
        start local 4 // jdk.vm.ci.meta.JavaTypeProfile$ProfiledType[] injectedProfile
         7: .line 106
            aload 2 /* graph */
            ldc "PolymorphicInliningTest$SuperClass.foo"
            new jdk.vm.ci.meta.JavaTypeProfile
            dup
            getstatic jdk.vm.ci.meta.TriState.FALSE:Ljdk/vm/ci/meta/TriState;
            ldc 0.01
            aload 4 /* injectedProfile */
            invokespecial jdk.vm.ci.meta.JavaTypeProfile.<init>:(Ljdk/vm/ci/meta/TriState;D[Ljdk/vm/ci/meta/JavaTypeProfile$ProfiledType;)V
            invokestatic org.graalvm.compiler.hotspot.test.PolymorphicInliningTest.injectTypeProfile:(Lorg/graalvm/compiler/nodes/StructuredGraph;Ljava/lang/String;Ljdk/vm/ci/meta/JavaTypeProfile;)V
         8: .line 108
            aload 0 /* this */
            invokevirtual org.graalvm.compiler.hotspot.test.PolymorphicInliningTest.createInliningPhase:()Lorg/graalvm/compiler/phases/BasePhase;
            aload 2 /* graph */
            aload 0 /* this */
            invokevirtual org.graalvm.compiler.hotspot.test.PolymorphicInliningTest.getDefaultHighTierContext:()Lorg/graalvm/compiler/phases/tiers/HighTierContext;
            invokevirtual org.graalvm.compiler.phases.BasePhase.apply:(Lorg/graalvm/compiler/nodes/StructuredGraph;Ljava/lang/Object;)V
         9: .line 110
            aload 2 /* graph */
            ldc Lorg/graalvm/compiler/nodes/InvokeNode;
            invokestatic org.graalvm.compiler.hotspot.test.PolymorphicInliningTest.getNodeCount:(Lorg/graalvm/compiler/nodes/StructuredGraph;Ljava/lang/Class;)I
            iconst_1
            if_icmpne 10
            iconst_1
            goto 11
      StackMap locals: org.graalvm.compiler.hotspot.test.PolymorphicInliningTest jdk.vm.ci.meta.ResolvedJavaMethod org.graalvm.compiler.nodes.StructuredGraph jdk.vm.ci.meta.MetaAccessProvider jdk.vm.ci.meta.JavaTypeProfile$ProfiledType[]
      StackMap stack:
        10: iconst_0
      StackMap locals:
      StackMap stack: int
        11: invokestatic org.graalvm.compiler.hotspot.test.PolymorphicInliningTest.assertTrue:(Z)V
        12: .line 111
            aload 2 /* graph */
            ldc Lorg/graalvm/compiler/nodes/java/TypeSwitchNode;
            invokestatic org.graalvm.compiler.hotspot.test.PolymorphicInliningTest.getNodeCount:(Lorg/graalvm/compiler/nodes/StructuredGraph;Ljava/lang/Class;)I
            iconst_1
            if_icmpne 13
            iconst_1
            goto 14
      StackMap locals:
      StackMap stack:
        13: iconst_0
      StackMap locals:
      StackMap stack: int
        14: invokestatic org.graalvm.compiler.hotspot.test.PolymorphicInliningTest.assertTrue:(Z)V
        15: .line 112
            aload 2 /* graph */
            ldc Lorg/graalvm/compiler/nodes/AbstractDeoptimizeNode;
            invokestatic org.graalvm.compiler.hotspot.test.PolymorphicInliningTest.getNodeCount:(Lorg/graalvm/compiler/nodes/StructuredGraph;Ljava/lang/Class;)I
            ifne 16
            iconst_1
            goto 17
      StackMap locals:
      StackMap stack:
        16: iconst_0
      StackMap locals:
      StackMap stack: int
        17: invokestatic org.graalvm.compiler.hotspot.test.PolymorphicInliningTest.assertTrue:(Z)V
        18: .line 113
            return
        end local 4 // jdk.vm.ci.meta.JavaTypeProfile$ProfiledType[] injectedProfile
        end local 3 // jdk.vm.ci.meta.MetaAccessProvider metaAccess
        end local 2 // org.graalvm.compiler.nodes.StructuredGraph graph
        end local 1 // jdk.vm.ci.meta.ResolvedJavaMethod method
        end local 0 // org.graalvm.compiler.hotspot.test.PolymorphicInliningTest this
      LocalVariableTable:
        Start  End  Slot             Name  Signature
            0   19     0             this  Lorg/graalvm/compiler/hotspot/test/PolymorphicInliningTest;
            1   19     1           method  Ljdk/vm/ci/meta/ResolvedJavaMethod;
            2   19     2            graph  Lorg/graalvm/compiler/nodes/StructuredGraph;
            3   19     3       metaAccess  Ljdk/vm/ci/meta/MetaAccessProvider;
            7   19     4  injectedProfile  [Ljdk/vm/ci/meta/JavaTypeProfile$ProfiledType;
    RuntimeVisibleAnnotations: 
      org.junit.Test()

  public void testMegamorphicNotInlined();
    descriptor: ()V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=8, locals=5, args_size=1
        start local 0 // org.graalvm.compiler.hotspot.test.PolymorphicInliningTest this
         0: .line 117
            aload 0 /* this */
            ldc "snippet"
            invokevirtual org.graalvm.compiler.hotspot.test.PolymorphicInliningTest.getResolvedJavaMethod:(Ljava/lang/String;)Ljdk/vm/ci/meta/ResolvedJavaMethod;
            astore 1 /* method */
        start local 1 // jdk.vm.ci.meta.ResolvedJavaMethod method
         1: .line 118
            aload 0 /* this */
            aload 1 /* method */
            invokevirtual org.graalvm.compiler.hotspot.test.PolymorphicInliningTest.parseForCompile:(Ljdk/vm/ci/meta/ResolvedJavaMethod;)Lorg/graalvm/compiler/nodes/StructuredGraph;
            astore 2 /* graph */
        start local 2 // org.graalvm.compiler.nodes.StructuredGraph graph
         2: .line 120
            aload 0 /* this */
            invokevirtual org.graalvm.compiler.hotspot.test.PolymorphicInliningTest.getMetaAccess:()Ljdk/vm/ci/meta/MetaAccessProvider;
            astore 3 /* metaAccess */
        start local 3 // jdk.vm.ci.meta.MetaAccessProvider metaAccess
         3: .line 121
            iconst_3
            anewarray jdk.vm.ci.meta.JavaTypeProfile$ProfiledType
            dup
            iconst_0
         4: .line 122
            new jdk.vm.ci.meta.JavaTypeProfile$ProfiledType
            dup
            aload 3 /* metaAccess */
            ldc Lorg/graalvm/compiler/hotspot/test/PolymorphicInliningTest$A;
            invokeinterface jdk.vm.ci.meta.MetaAccessProvider.lookupJavaType:(Ljava/lang/Class;)Ljdk/vm/ci/meta/ResolvedJavaType;
            ldc 0.3
            invokespecial jdk.vm.ci.meta.JavaTypeProfile$ProfiledType.<init>:(Ljdk/vm/ci/meta/ResolvedJavaType;D)V
            aastore
            dup
            iconst_1
         5: .line 123
            new jdk.vm.ci.meta.JavaTypeProfile$ProfiledType
            dup
            aload 3 /* metaAccess */
            ldc Lorg/graalvm/compiler/hotspot/test/PolymorphicInliningTest$B;
            invokeinterface jdk.vm.ci.meta.MetaAccessProvider.lookupJavaType:(Ljava/lang/Class;)Ljdk/vm/ci/meta/ResolvedJavaType;
            ldc 0.3
            invokespecial jdk.vm.ci.meta.JavaTypeProfile$ProfiledType.<init>:(Ljdk/vm/ci/meta/ResolvedJavaType;D)V
            aastore
            dup
            iconst_2
         6: .line 124
            new jdk.vm.ci.meta.JavaTypeProfile$ProfiledType
            dup
            aload 3 /* metaAccess */
            ldc Lorg/graalvm/compiler/hotspot/test/PolymorphicInliningTest$NotInlinableSubClass;
            invokeinterface jdk.vm.ci.meta.MetaAccessProvider.lookupJavaType:(Ljava/lang/Class;)Ljdk/vm/ci/meta/ResolvedJavaType;
            ldc 0.3
            invokespecial jdk.vm.ci.meta.JavaTypeProfile$ProfiledType.<init>:(Ljdk/vm/ci/meta/ResolvedJavaType;D)V
            aastore
         7: .line 121
            astore 4 /* injectedProfile */
        start local 4 // jdk.vm.ci.meta.JavaTypeProfile$ProfiledType[] injectedProfile
         8: .line 125
            aload 2 /* graph */
            ldc "PolymorphicInliningTest$SuperClass.foo"
            new jdk.vm.ci.meta.JavaTypeProfile
            dup
            getstatic jdk.vm.ci.meta.TriState.FALSE:Ljdk/vm/ci/meta/TriState;
            ldc 0.1
            aload 4 /* injectedProfile */
            invokespecial jdk.vm.ci.meta.JavaTypeProfile.<init>:(Ljdk/vm/ci/meta/TriState;D[Ljdk/vm/ci/meta/JavaTypeProfile$ProfiledType;)V
            invokestatic org.graalvm.compiler.hotspot.test.PolymorphicInliningTest.injectTypeProfile:(Lorg/graalvm/compiler/nodes/StructuredGraph;Ljava/lang/String;Ljdk/vm/ci/meta/JavaTypeProfile;)V
         9: .line 127
            aload 0 /* this */
            invokevirtual org.graalvm.compiler.hotspot.test.PolymorphicInliningTest.createInliningPhase:()Lorg/graalvm/compiler/phases/BasePhase;
            aload 2 /* graph */
            aload 0 /* this */
            invokevirtual org.graalvm.compiler.hotspot.test.PolymorphicInliningTest.getDefaultHighTierContext:()Lorg/graalvm/compiler/phases/tiers/HighTierContext;
            invokevirtual org.graalvm.compiler.phases.BasePhase.apply:(Lorg/graalvm/compiler/nodes/StructuredGraph;Ljava/lang/Object;)V
        10: .line 131
            aload 2 /* graph */
            ldc Lorg/graalvm/compiler/nodes/InvokeNode;
            invokestatic org.graalvm.compiler.hotspot.test.PolymorphicInliningTest.getNodeCount:(Lorg/graalvm/compiler/nodes/StructuredGraph;Ljava/lang/Class;)I
            iconst_1
            if_icmpne 11
            iconst_1
            goto 12
      StackMap locals: org.graalvm.compiler.hotspot.test.PolymorphicInliningTest jdk.vm.ci.meta.ResolvedJavaMethod org.graalvm.compiler.nodes.StructuredGraph jdk.vm.ci.meta.MetaAccessProvider jdk.vm.ci.meta.JavaTypeProfile$ProfiledType[]
      StackMap stack:
        11: iconst_0
      StackMap locals:
      StackMap stack: int
        12: invokestatic org.graalvm.compiler.hotspot.test.PolymorphicInliningTest.assertTrue:(Z)V
        13: .line 132
            aload 2 /* graph */
            ldc Lorg/graalvm/compiler/nodes/java/TypeSwitchNode;
            invokestatic org.graalvm.compiler.hotspot.test.PolymorphicInliningTest.getNodeCount:(Lorg/graalvm/compiler/nodes/StructuredGraph;Ljava/lang/Class;)I
            ifne 14
            iconst_1
            goto 15
      StackMap locals:
      StackMap stack:
        14: iconst_0
      StackMap locals:
      StackMap stack: int
        15: invokestatic org.graalvm.compiler.hotspot.test.PolymorphicInliningTest.assertTrue:(Z)V
        16: .line 133
            aload 2 /* graph */
            ldc Lorg/graalvm/compiler/nodes/AbstractDeoptimizeNode;
            invokestatic org.graalvm.compiler.hotspot.test.PolymorphicInliningTest.getNodeCount:(Lorg/graalvm/compiler/nodes/StructuredGraph;Ljava/lang/Class;)I
            ifne 17
            iconst_1
            goto 18
      StackMap locals:
      StackMap stack:
        17: iconst_0
      StackMap locals:
      StackMap stack: int
        18: invokestatic org.graalvm.compiler.hotspot.test.PolymorphicInliningTest.assertTrue:(Z)V
        19: .line 134
            return
        end local 4 // jdk.vm.ci.meta.JavaTypeProfile$ProfiledType[] injectedProfile
        end local 3 // jdk.vm.ci.meta.MetaAccessProvider metaAccess
        end local 2 // org.graalvm.compiler.nodes.StructuredGraph graph
        end local 1 // jdk.vm.ci.meta.ResolvedJavaMethod method
        end local 0 // org.graalvm.compiler.hotspot.test.PolymorphicInliningTest this
      LocalVariableTable:
        Start  End  Slot             Name  Signature
            0   20     0             this  Lorg/graalvm/compiler/hotspot/test/PolymorphicInliningTest;
            1   20     1           method  Ljdk/vm/ci/meta/ResolvedJavaMethod;
            2   20     2            graph  Lorg/graalvm/compiler/nodes/StructuredGraph;
            3   20     3       metaAccess  Ljdk/vm/ci/meta/MetaAccessProvider;
            8   20     4  injectedProfile  [Ljdk/vm/ci/meta/JavaTypeProfile$ProfiledType;
    RuntimeVisibleAnnotations: 
      org.junit.Test()

  private static void injectTypeProfile(org.graalvm.compiler.nodes.StructuredGraph, java.lang.String, jdk.vm.ci.meta.JavaTypeProfile);
    descriptor: (Lorg/graalvm/compiler/nodes/StructuredGraph;Ljava/lang/String;Ljdk/vm/ci/meta/JavaTypeProfile;)V
    flags: (0x000a) ACC_PRIVATE, ACC_STATIC
    Code:
      stack=2, locals=5, args_size=3
        start local 0 // org.graalvm.compiler.nodes.StructuredGraph graph
        start local 1 // java.lang.String targetMethod
        start local 2 // jdk.vm.ci.meta.JavaTypeProfile profile
         0: .line 137
            aload 0 /* graph */
            getstatic org.graalvm.compiler.nodes.java.MethodCallTargetNode.TYPE:Lorg/graalvm/compiler/graph/NodeClass;
            invokevirtual org.graalvm.compiler.nodes.StructuredGraph.getNodes:(Lorg/graalvm/compiler/graph/NodeClass;)Lorg/graalvm/compiler/graph/iterators/NodeIterable;
            invokeinterface org.graalvm.compiler.graph.iterators.NodeIterable.iterator:()Ljava/util/Iterator;
            astore 4
            goto 4
      StackMap locals: org.graalvm.compiler.nodes.StructuredGraph java.lang.String jdk.vm.ci.meta.JavaTypeProfile top java.util.Iterator
      StackMap stack:
         1: aload 4
            invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
            checkcast org.graalvm.compiler.nodes.java.MethodCallTargetNode
            astore 3 /* callTargetNode */
        start local 3 // org.graalvm.compiler.nodes.java.MethodCallTargetNode callTargetNode
         2: .line 138
            aload 1 /* targetMethod */
            aload 3 /* callTargetNode */
            invokevirtual org.graalvm.compiler.nodes.java.MethodCallTargetNode.targetName:()Ljava/lang/String;
            invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
            ifeq 4
         3: .line 139
            aload 3 /* callTargetNode */
            aload 2 /* profile */
            invokevirtual org.graalvm.compiler.nodes.java.MethodCallTargetNode.setJavaTypeProfile:(Ljdk/vm/ci/meta/JavaTypeProfile;)V
        end local 3 // org.graalvm.compiler.nodes.java.MethodCallTargetNode callTargetNode
         4: .line 137
      StackMap locals:
      StackMap stack:
            aload 4
            invokeinterface java.util.Iterator.hasNext:()Z
            ifne 1
         5: .line 142
            return
        end local 2 // jdk.vm.ci.meta.JavaTypeProfile profile
        end local 1 // java.lang.String targetMethod
        end local 0 // org.graalvm.compiler.nodes.StructuredGraph graph
      LocalVariableTable:
        Start  End  Slot            Name  Signature
            0    6     0           graph  Lorg/graalvm/compiler/nodes/StructuredGraph;
            0    6     1    targetMethod  Ljava/lang/String;
            0    6     2         profile  Ljdk/vm/ci/meta/JavaTypeProfile;
            2    4     3  callTargetNode  Lorg/graalvm/compiler/nodes/java/MethodCallTargetNode;
    MethodParameters:
              Name  Flags
      graph         
      targetMethod  
      profile       

  private static int getNodeCount(org.graalvm.compiler.nodes.StructuredGraph, java.lang.Class<? extends org.graalvm.compiler.graph.Node>);
    descriptor: (Lorg/graalvm/compiler/nodes/StructuredGraph;Ljava/lang/Class;)I
    flags: (0x000a) ACC_PRIVATE, ACC_STATIC
    Code:
      stack=2, locals=2, args_size=2
        start local 0 // org.graalvm.compiler.nodes.StructuredGraph graph
        start local 1 // java.lang.Class nodeClass
         0: .line 145
            aload 0 /* graph */
            invokevirtual org.graalvm.compiler.nodes.StructuredGraph.getNodes:()Lorg/graalvm/compiler/graph/iterators/NodeIterable;
            aload 1 /* nodeClass */
            invokeinterface org.graalvm.compiler.graph.iterators.NodeIterable.filter:(Ljava/lang/Class;)Lorg/graalvm/compiler/graph/iterators/NodeIterable;
            invokeinterface org.graalvm.compiler.graph.iterators.NodeIterable.count:()I
            ireturn
        end local 1 // java.lang.Class nodeClass
        end local 0 // org.graalvm.compiler.nodes.StructuredGraph graph
      LocalVariableTable:
        Start  End  Slot       Name  Signature
            0    1     0      graph  Lorg/graalvm/compiler/nodes/StructuredGraph;
            0    1     1  nodeClass  Ljava/lang/Class<+Lorg/graalvm/compiler/graph/Node;>;
    Signature: (Lorg/graalvm/compiler/nodes/StructuredGraph;Ljava/lang/Class<+Lorg/graalvm/compiler/graph/Node;>;)I
    MethodParameters:
           Name  Flags
      graph      
      nodeClass  
}
SourceFile: "PolymorphicInliningTest.java"
NestMembers:
  org.graalvm.compiler.hotspot.test.PolymorphicInliningTest$A  org.graalvm.compiler.hotspot.test.PolymorphicInliningTest$B  org.graalvm.compiler.hotspot.test.PolymorphicInliningTest$NotInlinableSubClass  org.graalvm.compiler.hotspot.test.PolymorphicInliningTest$SuperClass
InnerClasses:
  public ProfiledType = jdk.vm.ci.meta.JavaTypeProfile$ProfiledType of jdk.vm.ci.meta.JavaTypeProfile
  private A = org.graalvm.compiler.hotspot.test.PolymorphicInliningTest$A of org.graalvm.compiler.hotspot.test.PolymorphicInliningTest
  private B = org.graalvm.compiler.hotspot.test.PolymorphicInliningTest$B of org.graalvm.compiler.hotspot.test.PolymorphicInliningTest
  private NotInlinableSubClass = org.graalvm.compiler.hotspot.test.PolymorphicInliningTest$NotInlinableSubClass of org.graalvm.compiler.hotspot.test.PolymorphicInliningTest
  private abstract SuperClass = org.graalvm.compiler.hotspot.test.PolymorphicInliningTest$SuperClass of org.graalvm.compiler.hotspot.test.PolymorphicInliningTest