Examples of IParseDictionary


Examples of org.adoptopenjdk.jitwatch.model.IParseDictionary

    {
      Task lastTaskTag = JournalUtil.getLastTask(journal);

      if (lastTaskTag != null)
      {
        IParseDictionary parseDictionary = lastTaskTag.getParseDictionary();

        Tag parsePhase = JournalUtil.getParsePhase(journal);

        if (parsePhase != null)
        {
          List<Tag> parseTags = parsePhase.getNamedChildren(TAG_PARSE);

          for (Tag parseTag : parseTags)
          {
            String currentMethod = null;
            String holder = null;

            List<Tag> allChildren = parseTag.getChildren();

            for (Tag childTag : allChildren)
            {
              String tagName = childTag.getName();
              Map<String, String> attrs = childTag.getAttrs();

              switch (tagName)
              {
              case TAG_METHOD:
              {
                currentMethod = attrs.get(ATTR_NAME);
                holder = attrs.get(ATTR_HOLDER);
              }
                break;

              // changes member context
              case TAG_CALL:
              {
                String methodID = attrs.get(ATTR_METHOD);

                Tag methodTag = parseDictionary.getMethod(methodID);
                currentMethod = methodTag.getAttribute(ATTR_NAME);
                holder = methodTag.getAttribute(ATTR_HOLDER);
              }
                break;

              case TAG_INTRINSIC:
              {
                if (holder != null && currentMethod != null)
                {
                  Tag klassTag = parseDictionary.getKlass(holder);

                  String intrinsic = childTag.getAttribute(ATTR_ID);

                  if (klassTag != null)
                  {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.