Package org.adoptopenjdk.jitwatch.model.assembly

Examples of org.adoptopenjdk.jitwatch.model.assembly.AssemblyBlock


   
    List<AssemblyBlock> blocks = asmMethod.getBlocks();
   
    assertEquals(5, blocks.size());
   
    AssemblyBlock block0 = blocks.get(0);
    assertNull(block0.getTitle());
   
    List<AssemblyInstruction> instructions0 = block0.getInstructions();
    assertEquals(4, instructions0.size());
   
    AssemblyBlock block1 = blocks.get(1);
    assertEquals("[Verified Entry Point]", block1.getTitle());
   
    List<AssemblyInstruction> instructions1 = block1.getInstructions();
    assertEquals(26, instructions1.size());
   
    AssemblyBlock block2 = blocks.get(2);
    assertEquals("[Exception Handler]", block2.getTitle());
   
    List<AssemblyInstruction> instructions2 = block2.getInstructions();
    assertEquals(0, instructions2.size());
   
    AssemblyBlock block3 = blocks.get(3);
    assertEquals("[Stub Code]", block3.getTitle());
   
    List<AssemblyInstruction> instructions3 = block3.getInstructions();
    assertEquals(1, instructions3.size());
   
    AssemblyBlock block4 = blocks.get(4);
    assertEquals("[Deopt Handler Code]", block4.getTitle());
   
    List<AssemblyInstruction> instructions4 = block4.getInstructions();
    assertEquals(7, instructions4.size());   
  }
View Full Code Here


    List<AssemblyBlock> asmBlocks = assemblyMethod.getBlocks();

    assertEquals(1, asmBlocks.size());

    AssemblyBlock block = asmBlocks.get(0);

    List<AssemblyInstruction> instructions = block.getInstructions();

    assertEquals(5, instructions.size());
  }
View Full Code Here

    List<AssemblyBlock> asmBlocks = assemblyMethod.getBlocks();

    assertEquals(1, asmBlocks.size());

    AssemblyBlock block = asmBlocks.get(0);

    List<AssemblyInstruction> instructions = block.getInstructions();

    assertEquals(4, instructions.size());
  }
View Full Code Here

    List<AssemblyBlock> asmBlocks = assemblyMethod.getBlocks();

    assertEquals(1, asmBlocks.size());

    AssemblyBlock block = asmBlocks.get(0);

    List<AssemblyInstruction> instructions = block.getInstructions();

    assertEquals(5, instructions.size());

    IMetaMember member2 = map.get("org.adoptopenjdk.jitwatch.demo.SandboxTest add (II)I");

    assertNotNull(member2);

    AssemblyMethod assemblyMethod2 = member2.getAssembly();

    assertNotNull(assemblyMethod2);

    List<AssemblyBlock> asmBlocks2 = assemblyMethod2.getBlocks();

    assertEquals(1, asmBlocks2.size());

    AssemblyBlock block2 = asmBlocks2.get(0);

    List<AssemblyInstruction> instructions2 = block2.getInstructions();

    assertEquals(4, instructions2.size());
  }
View Full Code Here

    List<AssemblyBlock> asmBlocks = assemblyMethod.getBlocks();

    // code, deopt handler
    assertEquals(2, asmBlocks.size());

    AssemblyBlock block0 = asmBlocks.get(0);
    List<AssemblyInstruction> instructions0 = block0.getInstructions();
    assertEquals(1, instructions0.size());   
   
    AssemblyBlock block1 = asmBlocks.get(1);
    List<AssemblyInstruction> instructions1 = block1.getInstructions();
    assertEquals(6, instructions1.size());
  }
View Full Code Here

    List<AssemblyBlock> asmBlocks = assemblyMethod.getBlocks();

    // code, deopt handler
    assertEquals(2, asmBlocks.size());

    AssemblyBlock block0 = asmBlocks.get(0);
    List<AssemblyInstruction> instructions0 = block0.getInstructions();
    assertEquals(4, instructions0.size());   
   
    AssemblyBlock block1 = asmBlocks.get(1);
    List<AssemblyInstruction> instructions1 = block1.getInstructions();
    assertEquals(9, instructions1.size());
   
  }
View Full Code Here

TOP

Related Classes of org.adoptopenjdk.jitwatch.model.assembly.AssemblyBlock

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.