Package org.adoptopenjdk.jitwatch.model

Examples of org.adoptopenjdk.jitwatch.model.IMetaMember


    JITDataModel model = new JITDataModel();

    model.buildAndGetMetaClass(StringBuilder.class);

    IMetaMember member2 = ParseUtil.getMemberFromComment(model, comment2);

    assertEquals("public java.lang.StringBuilder java.lang.StringBuilder.append(int)", member2.toString());
  }
View Full Code Here


    JITDataModel model = new JITDataModel();

    model.buildAndGetMetaClass(MakeHotSpotLog.class);

    IMetaMember member3 = ParseUtil.getMemberFromComment(model, comment3);

    assertEquals("private long org.adoptopenjdk.jitwatch.demo.MakeHotSpotLog.chainA1(long)", member3.toString());
  }
View Full Code Here

    model.buildAndGetMetaClass(java.lang.invoke.MethodHandle.class);

    MemberSignatureParts msp = MemberSignatureParts
        .fromLogCompilationSignature("java.lang.invoke.MethodHandle linkToStatic (Ljava.lang.Object;Ljava.lang.invoke.MemberName;)V");

    IMetaMember member = model.findMetaMember(msp);
   
    assertNotNull(member);
  }
View Full Code Here

    model.buildAndGetMetaClass(java.lang.String.class);

    MemberSignatureParts msp = MemberSignatureParts
        .fromLogCompilationSignature("java.lang.String indexOf (II)I");

    IMetaMember member = model.findMetaMember(msp);
   
    assertNotNull(member);
  }
View Full Code Here

        MetaPackage fakePackage = new MetaPackage("java.lang");

        MetaClass fakeClass = new MetaClass(fakePackage, "java.lang.Object");

        IMetaMember fakeMember = new MetaMethod(objToStringMethod, fakeClass);

        putMap(logSignature, fakeMember);

        return map.get(logSignature);
      }
View Full Code Here

  {
    String[] lines = SINGLE_ASSEMBLY_METHOD;

    performAssemblyParsingOn(lines);

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

        "  0x00007f7d733640c0: mov    0x8(%rsi),%r10d", "  0x00007f7d733640c4: cmp    %r10,%rax",
        "  0x00007f7d733640c7: jne    0x00007f7d7333b960  ;   {runtime_call}", "  0x00007f7d733640cd: data32 xchg %ax,%ax" };

    performAssemblyParsingOn(lines);

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

    };

    performAssemblyParsingOn(lines);

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

    lines[7] = "[ 0x00007f7d733642e0: callq  0x00007f7d77e276f0  ;   {runtime_call}";

    // When
    performAssemblyParsingOn(lines);
    int actualAssemblyResults = map.size();
    IMetaMember actualMember = map.get("org.adoptopenjdk.jitwatch.demo.SandboxTestLoad main ([Ljava.lang.String;)V");

    // Then
    assertThat("One assembly result should have been returned.", actualAssemblyResults, is(equalTo(expectedAssemblyResults)));
    assertThat("An object should have been returned", actualMember, is(available()));
  }
View Full Code Here

        "                    0x00007f25cd0fefce: jne    0x00007f25cd0ff0bf  ;*ifne",
        "                                                                  ; - java.lang.String::hashCode@6 (line 1454)" };

    performAssemblyParsingOn(lines);

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

    assertNotNull(member);

    AssemblyMethod assemblyMethod = member.getAssembly();

    assertNotNull(assemblyMethod);

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

View Full Code Here

TOP

Related Classes of org.adoptopenjdk.jitwatch.model.IMetaMember

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.