Package org.adoptopenjdk.jitwatch.model.bytecode

Examples of org.adoptopenjdk.jitwatch.model.bytecode.LineTableEntry


  public void testCompositeLineTable()
  {
    LineTable table1 = new LineTable();
    LineTable table2 = new LineTable();
   
    LineTableEntry entry1 = new LineTableEntry(MemberSignatureParts.fromParts("TestClass", "foo", void.class.getName(), new String[0]), 0, 0);
    LineTableEntry entry2 = new LineTableEntry(MemberSignatureParts.fromParts("TestClass", "foo", void.class.getName(), new String[0]), 5, 5);
    LineTableEntry entry3 = new LineTableEntry(MemberSignatureParts.fromParts("TestClass", "bar", void.class.getName(), new String[0]), 10, 10);
    LineTableEntry entry4 = new LineTableEntry(MemberSignatureParts.fromParts("TestClass", "bar", void.class.getName(), new String[0]), 15, 15);
   
    table1.add(entry1);
    table1.add(entry2);

    table2.add(entry3);
View Full Code Here


      metaClass = currentMember.getMetaClass();
    }

    if (metaClass != null)
    {
      LineTableEntry entry = getLineTableEntryForSourceLine(metaClass, sourceLine);

      if (entry != null)
      {
        MemberSignatureParts msp = entry.getMemberSignatureParts();

        IMetaMember nextMember = metaClass.getMemberFromSignature(msp);

        if (nextMember != null)
        {
          if (!nextMember.equals(currentMember))
          {
            setMember(nextMember, false, false);
          }

          int bcOffset = entry.getBytecodeOffset();

          bytecodeHighlight = viewerBytecode.getLineIndexForBytecodeOffset(bcOffset);
        }
        else
        {
View Full Code Here

    viewerAssembly.highlightLine(assemblyHighlight);
  }

  private LineTableEntry getLineTableEntryForSourceLine(MetaClass metaClass, int sourceIndex)
  {
    LineTableEntry result = null;

    ClassBC classBytecode = metaClass.getClassBytecode(config.getClassLocations());

    if (classBytecode != null)
    {
View Full Code Here

TOP

Related Classes of org.adoptopenjdk.jitwatch.model.bytecode.LineTableEntry

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.