Package org.adoptopenjdk.jitwatch.model.bytecode

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


    }
  }

  private static void process(List<String> classLocations, String className, int maxMethodBytes, PrintWriter writer)
  {
    ClassBC classBytecode = BytecodeLoader.fetchBytecodeForClass(classLocations, className);

    if (classBytecode != null)
    {
      for (String memberName : classBytecode.getBytecodeMethodSignatures())
      {
        MemberBytecode memberBytecode = classBytecode.getMemberBytecode(memberName);

        List<BytecodeInstruction> instructions = memberBytecode.getInstructions();

        if (instructions != null && instructions.size() > 0)
        {
View Full Code Here


    StringBuilder statusBarBuilder = new StringBuilder();

    List<String> classLocations = config.getClassLocations();

    ClassBC classBytecode = loadBytecodeForCurrentMember(classLocations);

    updateStatusBarWithClassInformation(classBytecode, statusBarBuilder);

    viewerBytecode.setContent(currentMember, classBytecode, classLocations);
View Full Code Here

      {
        mergedClassLocations.add(parsedLocation);
      }
    }

    ClassBC classBytecode = currentMember.getMetaClass().getClassBytecode(mergedClassLocations);

    return classBytecode;
  }
View Full Code Here

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

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

    if (classBytecode != null)
    {
      result = classBytecode.findLineTableEntryForSourceLine(sourceIndex);
    }

    if (DEBUG_LOGGING)
    {
      logger.debug("source: {} result: {}", sourceIndex, result);
View Full Code Here

      metaClass = currentMember.getMetaClass();
    }

    if (metaClass != null)
    {
      ClassBC classBytecode = metaClass.getClassBytecode(config.getClassLocations());

      BytecodeLabel bcLabel = (BytecodeLabel) viewerBytecode.getLabelAtIndex(index);

      if (bcLabel != null)
      {
        BytecodeInstruction instruction = bcLabel.getInstruction();

        int bytecodeOffset = instruction.getOffset();

        int sourceHighlight = -1;
        int assemblyHighlight = viewerAssembly.getIndexForBytecodeOffset(metaClass.getFullyQualifiedName(), bytecodeOffset);

        if (classBytecode != null)
        {
          MemberBytecode memberBytecode = classBytecode.getMemberBytecode(currentMember);

          if (memberBytecode != null)
          {
            LineTable lineTable = memberBytecode.getLineTable();
View Full Code Here

TOP

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

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.