Package org.adoptopenjdk.jitwatch.model.assembly

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


    for (String line : asm)
    {
      builder.append(line).append(S_NEWLINE);
    }
   
    AssemblyMethod asmMethod = AssemblyUtil.parseAssembly(builder.toString());
   
    String header = asmMethod.getHeader();
   
    assertNotNull(header);
   
    List<AssemblyBlock> blocks = asmMethod.getBlocks();
   
    assertEquals(5, blocks.size());
   
    AssemblyBlock block0 = blocks.get(0);
    assertNull(block0.getTitle());
View Full Code Here


  public static List<OptimizedVirtualCall> findOptimizedCalls(IMetaMember member)
  {
    List<OptimizedVirtualCall> result = new ArrayList<>();

    AssemblyMethod asmMethod = member.getAssembly();

    if (asmMethod != null)
    {
      for (AssemblyBlock block : asmMethod.getBlocks())
      {
        for (AssemblyInstruction instruction : block.getInstructions())
        {
          OptimizedVirtualCall optimizedVCall = findOptimizedCall(member, instruction);
View Full Code Here

    IMetaMember member = map.get("org.adoptopenjdk.jitwatch.demo.SandboxTestLoad main ([Ljava.lang.String;)V");

    assertNotNull(member);

    AssemblyMethod assemblyMethod = member.getAssembly();

    assertNotNull(assemblyMethod);

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

    assertEquals(1, asmBlocks.size());

    AssemblyBlock block = asmBlocks.get(0);
View Full Code Here

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

    assertNotNull(member);

    AssemblyMethod assemblyMethod = member.getAssembly();

    assertNotNull(assemblyMethod);

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

    assertEquals(1, asmBlocks.size());

    AssemblyBlock block = asmBlocks.get(0);
View Full Code Here

    IMetaMember member = map.get("org.adoptopenjdk.jitwatch.demo.SandboxTestLoad main ([Ljava.lang.String;)V");

    assertNotNull(member);

    AssemblyMethod assemblyMethod = member.getAssembly();

    assertNotNull(assemblyMethod);

    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);
View Full Code Here

    IMetaMember member = map.get("java.lang.String hashCode ()I");

    assertNotNull(member);

    AssemblyMethod assemblyMethod = member.getAssembly();

    assertNotNull(assemblyMethod);

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

    assertEquals(2, asmBlocks.size());

    assertEquals(6, asmBlocks.get(0).getInstructions().size());
    assertEquals(21, asmBlocks.get(1).getInstructions().size());
View Full Code Here

    performAssemblyParsingOn(lines);

    IMetaMember member = map.get("org.openjdk.jmh.samples.generated.JMHSample_08_DeadCode_measureRight measureRight_avgt_jmhLoop (Lorg.openjdk.jmh.runner.InfraControl;Lorg.openjdk.jmh.results.RawResults;Lorg.openjdk.jmh.samples.generated.JMHSample_08_DeadCode_measureRight$JMHSample_08_DeadCode_1_jmh;Lorg.openjdk.jmh.samples.generated.JMHSample_08_DeadCode_measureRight$Blackhole_1_jmh;)V");
    assertNotNull(member);

    AssemblyMethod assemblyMethod = member.getAssembly();

    assertNotNull(assemblyMethod);
   
    assertEquals(19, assemblyMethod.getMaxAnnotationWidth());
   
    //System.out.println(assemblyMethod.toString());

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

    assertEquals(2, asmBlocks.size());

    assertEquals(7, asmBlocks.get(0).getInstructions().size());
    assertEquals(11, asmBlocks.get(1).getInstructions().size());
View Full Code Here

    IMetaMember member = map.get("org.adoptopenjdk.jitwatch.demo.SandboxTestLoad main ([Ljava.lang.String;)V");

    assertNotNull(member);

    AssemblyMethod assemblyMethod = member.getAssembly();

    assertNotNull(assemblyMethod);

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

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

    AssemblyBlock block0 = asmBlocks.get(0);
View Full Code Here

    IMetaMember member = map.get("SandboxTest add (II)I");

    assertNotNull(member);

    AssemblyMethod assemblyMethod = member.getAssembly();

    assertNotNull(assemblyMethod);

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

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

    AssemblyBlock block0 = asmBlocks.get(0);
View Full Code Here

        if (DEBUG_LOGGING_ASSEMBLY)
        {
          logger.debug("Found member {}", currentMember);
        }

        AssemblyMethod asmMethod = AssemblyUtil.parseAssembly(asmString);
       
        currentMember.setAssembly(asmMethod);
      }
      else
      {
View Full Code Here

TOP

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

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.