< prev index next >

agent/src/share/classes/sun/jvm/hotspot/ui/classbrowser/HTMLGenerator.java

Print this page




1904       buf.br();
1905       buf.beginTag("pre");
1906       for (JavaVFrame vf = thread.getLastJavaVFrameDbg(); vf != null; vf = vf.javaSender()) {
1907          Method method = vf.getMethod();
1908          buf.append(" - ");
1909          buf.append(genMethodLink(method));
1910          buf.append(" @bci = " + vf.getBCI());
1911 
1912          int lineNumber = method.getLineNumberFromBCI(vf.getBCI());
1913          if (lineNumber != -1) {
1914             buf.append(", line = ");
1915             buf.append(lineNumber);
1916          }
1917 
1918          sun.jvm.hotspot.debugger.Address pc = vf.getFrame().getPC();
1919          if (pc != null) {
1920             buf.append(", pc = ");
1921             buf.link(genPCHref(addressToLong(pc)), pc.toString());
1922          }
1923 









1924          if (vf.isCompiledFrame()) {
1925             buf.append(" (Compiled");
1926          }
1927          else if (vf.isInterpretedFrame()) {
1928             buf.append(" (Interpreted");
1929          }
1930 
1931          if (vf.mayBeImpreciseDbg()) {
1932             buf.append("; information may be imprecise");
1933          }
1934          buf.append(")");
1935          buf.br();
1936       }
1937 
1938       buf.endTag("pre");
1939       buf.genHTMLEpilogue();
1940       return buf.toString();
1941    }
1942 
1943    public String genHTMLForHyperlink(String href) {




1904       buf.br();
1905       buf.beginTag("pre");
1906       for (JavaVFrame vf = thread.getLastJavaVFrameDbg(); vf != null; vf = vf.javaSender()) {
1907          Method method = vf.getMethod();
1908          buf.append(" - ");
1909          buf.append(genMethodLink(method));
1910          buf.append(" @bci = " + vf.getBCI());
1911 
1912          int lineNumber = method.getLineNumberFromBCI(vf.getBCI());
1913          if (lineNumber != -1) {
1914             buf.append(", line = ");
1915             buf.append(lineNumber);
1916          }
1917 
1918          sun.jvm.hotspot.debugger.Address pc = vf.getFrame().getPC();
1919          if (pc != null) {
1920             buf.append(", pc = ");
1921             buf.link(genPCHref(addressToLong(pc)), pc.toString());
1922          }
1923 
1924          if (!method.isStatic() && !method.isNative()) {
1925             OopHandle oopHandle = vf.getLocals().oopHandleAt(0);
1926 
1927             if (oopHandle != null) {
1928                buf.append(", oop = ");
1929                buf.append(oopHandle.toString());
1930             }
1931          }
1932 
1933          if (vf.isCompiledFrame()) {
1934             buf.append(" (Compiled");
1935          }
1936          else if (vf.isInterpretedFrame()) {
1937             buf.append(" (Interpreted");
1938          }
1939 
1940          if (vf.mayBeImpreciseDbg()) {
1941             buf.append("; information may be imprecise");
1942          }
1943          buf.append(")");
1944          buf.br();
1945       }
1946 
1947       buf.endTag("pre");
1948       buf.genHTMLEpilogue();
1949       return buf.toString();
1950    }
1951 
1952    public String genHTMLForHyperlink(String href) {


< prev index next >