annotate agent/src/share/classes/sun/jvm/hotspot/bugspot/VariablePanel.java @ 1913:3b2dea75431e

6984311: JSR 292 needs optional bootstrap method parameters Summary: Allow CONSTANT_InvokeDynamic nodes to have any number of extra operands. Reviewed-by: twisti
author jrose
date Sat, 30 Oct 2010 13:08:23 -0700
parents c18cbe5936b8
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
a61af66fc99e Initial load
duke
parents:
diff changeset
1 /*
1552
c18cbe5936b8 6941466: Oracle rebranding changes for Hotspot repositories
trims
parents: 0
diff changeset
2 * Copyright (c) 2001, 2002, Oracle and/or its affiliates. All rights reserved.
0
a61af66fc99e Initial load
duke
parents:
diff changeset
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
a61af66fc99e Initial load
duke
parents:
diff changeset
4 *
a61af66fc99e Initial load
duke
parents:
diff changeset
5 * This code is free software; you can redistribute it and/or modify it
a61af66fc99e Initial load
duke
parents:
diff changeset
6 * under the terms of the GNU General Public License version 2 only, as
a61af66fc99e Initial load
duke
parents:
diff changeset
7 * published by the Free Software Foundation.
a61af66fc99e Initial load
duke
parents:
diff changeset
8 *
a61af66fc99e Initial load
duke
parents:
diff changeset
9 * This code is distributed in the hope that it will be useful, but WITHOUT
a61af66fc99e Initial load
duke
parents:
diff changeset
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
a61af66fc99e Initial load
duke
parents:
diff changeset
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
a61af66fc99e Initial load
duke
parents:
diff changeset
12 * version 2 for more details (a copy is included in the LICENSE file that
a61af66fc99e Initial load
duke
parents:
diff changeset
13 * accompanied this code).
a61af66fc99e Initial load
duke
parents:
diff changeset
14 *
a61af66fc99e Initial load
duke
parents:
diff changeset
15 * You should have received a copy of the GNU General Public License version
a61af66fc99e Initial load
duke
parents:
diff changeset
16 * 2 along with this work; if not, write to the Free Software Foundation,
a61af66fc99e Initial load
duke
parents:
diff changeset
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
a61af66fc99e Initial load
duke
parents:
diff changeset
18 *
1552
c18cbe5936b8 6941466: Oracle rebranding changes for Hotspot repositories
trims
parents: 0
diff changeset
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
c18cbe5936b8 6941466: Oracle rebranding changes for Hotspot repositories
trims
parents: 0
diff changeset
20 * or visit www.oracle.com if you need additional information or have any
c18cbe5936b8 6941466: Oracle rebranding changes for Hotspot repositories
trims
parents: 0
diff changeset
21 * questions.
0
a61af66fc99e Initial load
duke
parents:
diff changeset
22 *
a61af66fc99e Initial load
duke
parents:
diff changeset
23 */
a61af66fc99e Initial load
duke
parents:
diff changeset
24
a61af66fc99e Initial load
duke
parents:
diff changeset
25 package sun.jvm.hotspot.bugspot;
a61af66fc99e Initial load
duke
parents:
diff changeset
26
a61af66fc99e Initial load
duke
parents:
diff changeset
27 import java.awt.*;
a61af66fc99e Initial load
duke
parents:
diff changeset
28 import javax.swing.*;
a61af66fc99e Initial load
duke
parents:
diff changeset
29 import java.util.*;
a61af66fc99e Initial load
duke
parents:
diff changeset
30 import sun.jvm.hotspot.debugger.*;
a61af66fc99e Initial load
duke
parents:
diff changeset
31 import sun.jvm.hotspot.debugger.cdbg.*;
a61af66fc99e Initial load
duke
parents:
diff changeset
32 import sun.jvm.hotspot.bugspot.tree.*;
a61af66fc99e Initial load
duke
parents:
diff changeset
33 import sun.jvm.hotspot.oops.*;
a61af66fc99e Initial load
duke
parents:
diff changeset
34 import sun.jvm.hotspot.runtime.*;
a61af66fc99e Initial load
duke
parents:
diff changeset
35 import sun.jvm.hotspot.ui.tree.*;
a61af66fc99e Initial load
duke
parents:
diff changeset
36 import sun.jvm.hotspot.ui.treetable.*;
a61af66fc99e Initial load
duke
parents:
diff changeset
37
a61af66fc99e Initial load
duke
parents:
diff changeset
38 /** Manages display of a set of local variables in a frame, or the
a61af66fc99e Initial load
duke
parents:
diff changeset
39 contents of the "this" pointer */
a61af66fc99e Initial load
duke
parents:
diff changeset
40
a61af66fc99e Initial load
duke
parents:
diff changeset
41 public class VariablePanel extends JPanel {
a61af66fc99e Initial load
duke
parents:
diff changeset
42 private JTreeTable treeTable;
a61af66fc99e Initial load
duke
parents:
diff changeset
43 private SimpleTreeTableModel model;
a61af66fc99e Initial load
duke
parents:
diff changeset
44 private SimpleTreeGroupNode root;
a61af66fc99e Initial load
duke
parents:
diff changeset
45
a61af66fc99e Initial load
duke
parents:
diff changeset
46 public VariablePanel() {
a61af66fc99e Initial load
duke
parents:
diff changeset
47 super();
a61af66fc99e Initial load
duke
parents:
diff changeset
48
a61af66fc99e Initial load
duke
parents:
diff changeset
49 model = new SimpleTreeTableModel();
a61af66fc99e Initial load
duke
parents:
diff changeset
50 model.setValuesEditable(false);
a61af66fc99e Initial load
duke
parents:
diff changeset
51 root = new SimpleTreeGroupNode();
a61af66fc99e Initial load
duke
parents:
diff changeset
52 model.setRoot(root);
a61af66fc99e Initial load
duke
parents:
diff changeset
53 treeTable = new JTreeTable(model);
a61af66fc99e Initial load
duke
parents:
diff changeset
54 treeTable.setRootVisible(false);
a61af66fc99e Initial load
duke
parents:
diff changeset
55 treeTable.setShowsRootHandles(true);
a61af66fc99e Initial load
duke
parents:
diff changeset
56 treeTable.setShowsIcons(false);
a61af66fc99e Initial load
duke
parents:
diff changeset
57 treeTable.setTreeEditable(false);
a61af66fc99e Initial load
duke
parents:
diff changeset
58 treeTable.getTableHeader().setReorderingAllowed(false);
a61af66fc99e Initial load
duke
parents:
diff changeset
59 treeTable.setCellSelectionEnabled(true);
a61af66fc99e Initial load
duke
parents:
diff changeset
60 treeTable.setSelectionMode(ListSelectionModel.SINGLE_INTERVAL_SELECTION);
a61af66fc99e Initial load
duke
parents:
diff changeset
61 treeTable.setDragEnabled(true);
a61af66fc99e Initial load
duke
parents:
diff changeset
62 JScrollPane sp = new JScrollPane(treeTable);
a61af66fc99e Initial load
duke
parents:
diff changeset
63 sp.getViewport().setBackground(Color.white);
a61af66fc99e Initial load
duke
parents:
diff changeset
64
a61af66fc99e Initial load
duke
parents:
diff changeset
65 setLayout(new BorderLayout());
a61af66fc99e Initial load
duke
parents:
diff changeset
66 add(sp, BorderLayout.CENTER);
a61af66fc99e Initial load
duke
parents:
diff changeset
67 }
a61af66fc99e Initial load
duke
parents:
diff changeset
68
a61af66fc99e Initial load
duke
parents:
diff changeset
69 /** Clear the contents of this VariablePanel */
a61af66fc99e Initial load
duke
parents:
diff changeset
70 public void clear() {
a61af66fc99e Initial load
duke
parents:
diff changeset
71 root.removeAllChildren();
a61af66fc99e Initial load
duke
parents:
diff changeset
72 model.fireTreeStructureChanged();
a61af66fc99e Initial load
duke
parents:
diff changeset
73 }
a61af66fc99e Initial load
duke
parents:
diff changeset
74
a61af66fc99e Initial load
duke
parents:
diff changeset
75 /** Update the contents of this VariablePanel from the given CFrame */
a61af66fc99e Initial load
duke
parents:
diff changeset
76 public void update(CFrame fr) {
a61af66fc99e Initial load
duke
parents:
diff changeset
77 // Collect locals
a61af66fc99e Initial load
duke
parents:
diff changeset
78 CCollector coll = new CCollector();
a61af66fc99e Initial load
duke
parents:
diff changeset
79 fr.iterateLocals(coll);
a61af66fc99e Initial load
duke
parents:
diff changeset
80 update(coll);
a61af66fc99e Initial load
duke
parents:
diff changeset
81 }
a61af66fc99e Initial load
duke
parents:
diff changeset
82
a61af66fc99e Initial load
duke
parents:
diff changeset
83 /** Update the contents of this VariablePanel from the given JavaVFrame */
a61af66fc99e Initial load
duke
parents:
diff changeset
84 public void update(JavaVFrame jfr) {
a61af66fc99e Initial load
duke
parents:
diff changeset
85 Method m = jfr.getMethod();
a61af66fc99e Initial load
duke
parents:
diff changeset
86 if (!m.hasLocalVariableTable()) {
a61af66fc99e Initial load
duke
parents:
diff changeset
87 return;
a61af66fc99e Initial load
duke
parents:
diff changeset
88 }
a61af66fc99e Initial load
duke
parents:
diff changeset
89 int bci = jfr.getBCI();
a61af66fc99e Initial load
duke
parents:
diff changeset
90 // Get local variable table
a61af66fc99e Initial load
duke
parents:
diff changeset
91 LocalVariableTableElement[] locals = m.getLocalVariableTable();
a61af66fc99e Initial load
duke
parents:
diff changeset
92 // Get locals as StackValueCollection
a61af66fc99e Initial load
duke
parents:
diff changeset
93 StackValueCollection coll = jfr.getLocals();
a61af66fc99e Initial load
duke
parents:
diff changeset
94 root.removeAllChildren();
a61af66fc99e Initial load
duke
parents:
diff changeset
95 // See which locals are live
a61af66fc99e Initial load
duke
parents:
diff changeset
96 for (int i = 0; i < locals.length; i++) {
a61af66fc99e Initial load
duke
parents:
diff changeset
97 LocalVariableTableElement local = locals[i];
a61af66fc99e Initial load
duke
parents:
diff changeset
98 if (local.getStartBCI() <= bci && bci < local.getStartBCI() + local.getLength()) {
a61af66fc99e Initial load
duke
parents:
diff changeset
99 // Valid; add it
a61af66fc99e Initial load
duke
parents:
diff changeset
100 SimpleTreeNode node = null;
a61af66fc99e Initial load
duke
parents:
diff changeset
101 Symbol name = null;
a61af66fc99e Initial load
duke
parents:
diff changeset
102 try {
a61af66fc99e Initial load
duke
parents:
diff changeset
103 name = m.getConstants().getSymbolAt(local.getNameCPIndex());
a61af66fc99e Initial load
duke
parents:
diff changeset
104 if (name == null) {
a61af66fc99e Initial load
duke
parents:
diff changeset
105 System.err.println("Null name at slot " +
a61af66fc99e Initial load
duke
parents:
diff changeset
106 local.getNameCPIndex() +
a61af66fc99e Initial load
duke
parents:
diff changeset
107 " for local variable at slot " +
a61af66fc99e Initial load
duke
parents:
diff changeset
108 local.getSlot());
a61af66fc99e Initial load
duke
parents:
diff changeset
109 continue;
a61af66fc99e Initial load
duke
parents:
diff changeset
110 }
a61af66fc99e Initial load
duke
parents:
diff changeset
111 } catch (Exception e) {
a61af66fc99e Initial load
duke
parents:
diff changeset
112 System.err.println("Unable to fetch name at slot " +
a61af66fc99e Initial load
duke
parents:
diff changeset
113 local.getNameCPIndex() +
a61af66fc99e Initial load
duke
parents:
diff changeset
114 " for local variable at slot " +
a61af66fc99e Initial load
duke
parents:
diff changeset
115 local.getSlot());
a61af66fc99e Initial load
duke
parents:
diff changeset
116 e.printStackTrace();
a61af66fc99e Initial load
duke
parents:
diff changeset
117 continue;
a61af66fc99e Initial load
duke
parents:
diff changeset
118 }
a61af66fc99e Initial load
duke
parents:
diff changeset
119 sun.jvm.hotspot.oops.NamedFieldIdentifier f =
a61af66fc99e Initial load
duke
parents:
diff changeset
120 new sun.jvm.hotspot.oops.NamedFieldIdentifier(name.asString());
a61af66fc99e Initial load
duke
parents:
diff changeset
121 Symbol descriptor = null;
a61af66fc99e Initial load
duke
parents:
diff changeset
122 try {
a61af66fc99e Initial load
duke
parents:
diff changeset
123 descriptor = m.getConstants().getSymbolAt(local.getDescriptorCPIndex());
a61af66fc99e Initial load
duke
parents:
diff changeset
124 } catch (Exception e) {
a61af66fc99e Initial load
duke
parents:
diff changeset
125 System.err.println("Unable to fetch descriptor at slot " +
a61af66fc99e Initial load
duke
parents:
diff changeset
126 local.getDescriptorCPIndex() +
a61af66fc99e Initial load
duke
parents:
diff changeset
127 " for local variable " + f.getName() +
a61af66fc99e Initial load
duke
parents:
diff changeset
128 " at slot " + local.getSlot());
a61af66fc99e Initial load
duke
parents:
diff changeset
129 e.printStackTrace();
a61af66fc99e Initial load
duke
parents:
diff changeset
130 continue;
a61af66fc99e Initial load
duke
parents:
diff changeset
131 }
a61af66fc99e Initial load
duke
parents:
diff changeset
132
a61af66fc99e Initial load
duke
parents:
diff changeset
133 if (descriptor != null) {
a61af66fc99e Initial load
duke
parents:
diff changeset
134 switch (descriptor.getByteAt(0)) {
a61af66fc99e Initial load
duke
parents:
diff changeset
135 case 'F': {
a61af66fc99e Initial load
duke
parents:
diff changeset
136 node = new sun.jvm.hotspot.ui.tree.FloatTreeNodeAdapter(coll.floatAt(local.getSlot()), f, true);
a61af66fc99e Initial load
duke
parents:
diff changeset
137 break;
a61af66fc99e Initial load
duke
parents:
diff changeset
138 }
a61af66fc99e Initial load
duke
parents:
diff changeset
139 case 'D': {
a61af66fc99e Initial load
duke
parents:
diff changeset
140 node = new sun.jvm.hotspot.ui.tree.DoubleTreeNodeAdapter(coll.doubleAt(local.getSlot()), f, true);
a61af66fc99e Initial load
duke
parents:
diff changeset
141 break;
a61af66fc99e Initial load
duke
parents:
diff changeset
142 }
a61af66fc99e Initial load
duke
parents:
diff changeset
143 case 'C': {
a61af66fc99e Initial load
duke
parents:
diff changeset
144 node = new sun.jvm.hotspot.ui.tree.CharTreeNodeAdapter((char) coll.intAt(local.getSlot()), f, true);
a61af66fc99e Initial load
duke
parents:
diff changeset
145 break;
a61af66fc99e Initial load
duke
parents:
diff changeset
146 }
a61af66fc99e Initial load
duke
parents:
diff changeset
147 case 'B':
a61af66fc99e Initial load
duke
parents:
diff changeset
148 case 'S':
a61af66fc99e Initial load
duke
parents:
diff changeset
149 case 'I': {
a61af66fc99e Initial load
duke
parents:
diff changeset
150 node = new sun.jvm.hotspot.ui.tree.LongTreeNodeAdapter(coll.intAt(local.getSlot()), f, true);
a61af66fc99e Initial load
duke
parents:
diff changeset
151 break;
a61af66fc99e Initial load
duke
parents:
diff changeset
152 }
a61af66fc99e Initial load
duke
parents:
diff changeset
153 case 'Z': {
a61af66fc99e Initial load
duke
parents:
diff changeset
154 node = new sun.jvm.hotspot.ui.tree.BooleanTreeNodeAdapter(
a61af66fc99e Initial load
duke
parents:
diff changeset
155 ((coll.intAt(local.getSlot()) != 0) ? true : false), f, true
a61af66fc99e Initial load
duke
parents:
diff changeset
156 );
a61af66fc99e Initial load
duke
parents:
diff changeset
157 break;
a61af66fc99e Initial load
duke
parents:
diff changeset
158 }
a61af66fc99e Initial load
duke
parents:
diff changeset
159 case 'J': {
a61af66fc99e Initial load
duke
parents:
diff changeset
160 node = new sun.jvm.hotspot.ui.tree.LongTreeNodeAdapter(coll.longAt(local.getSlot()), f, true);
a61af66fc99e Initial load
duke
parents:
diff changeset
161 break;
a61af66fc99e Initial load
duke
parents:
diff changeset
162 }
a61af66fc99e Initial load
duke
parents:
diff changeset
163 default: {
a61af66fc99e Initial load
duke
parents:
diff changeset
164 try {
a61af66fc99e Initial load
duke
parents:
diff changeset
165 node = new sun.jvm.hotspot.ui.tree.OopTreeNodeAdapter(
a61af66fc99e Initial load
duke
parents:
diff changeset
166 VM.getVM().getObjectHeap().newOop(coll.oopHandleAt(local.getSlot())), f, true
a61af66fc99e Initial load
duke
parents:
diff changeset
167 );
a61af66fc99e Initial load
duke
parents:
diff changeset
168 } catch (AddressException e) {
a61af66fc99e Initial load
duke
parents:
diff changeset
169 node = new sun.jvm.hotspot.ui.tree.FieldTreeNodeAdapter(f, true) {
a61af66fc99e Initial load
duke
parents:
diff changeset
170 public int getChildCount() { return 0; }
a61af66fc99e Initial load
duke
parents:
diff changeset
171 public SimpleTreeNode getChild(int i) { return null; }
a61af66fc99e Initial load
duke
parents:
diff changeset
172 public boolean isLeaf() { return false; }
a61af66fc99e Initial load
duke
parents:
diff changeset
173 public int getIndexOfChild(SimpleTreeNode child) { return 0; }
a61af66fc99e Initial load
duke
parents:
diff changeset
174 public String getValue() {
a61af66fc99e Initial load
duke
parents:
diff changeset
175 return "<Bad oop>";
a61af66fc99e Initial load
duke
parents:
diff changeset
176 }
a61af66fc99e Initial load
duke
parents:
diff changeset
177 };
a61af66fc99e Initial load
duke
parents:
diff changeset
178 }
a61af66fc99e Initial load
duke
parents:
diff changeset
179 break;
a61af66fc99e Initial load
duke
parents:
diff changeset
180 }
a61af66fc99e Initial load
duke
parents:
diff changeset
181 }
a61af66fc99e Initial load
duke
parents:
diff changeset
182 if (node != null) {
a61af66fc99e Initial load
duke
parents:
diff changeset
183 root.addChild(node);
a61af66fc99e Initial load
duke
parents:
diff changeset
184 }
a61af66fc99e Initial load
duke
parents:
diff changeset
185 }
a61af66fc99e Initial load
duke
parents:
diff changeset
186 }
a61af66fc99e Initial load
duke
parents:
diff changeset
187 }
a61af66fc99e Initial load
duke
parents:
diff changeset
188
a61af66fc99e Initial load
duke
parents:
diff changeset
189 model.fireTreeStructureChanged();
a61af66fc99e Initial load
duke
parents:
diff changeset
190 }
a61af66fc99e Initial load
duke
parents:
diff changeset
191
a61af66fc99e Initial load
duke
parents:
diff changeset
192 /** Update the contents of this VariablePanel from the given "this"
a61af66fc99e Initial load
duke
parents:
diff changeset
193 pointer of the given type */
a61af66fc99e Initial load
duke
parents:
diff changeset
194 public void update(Address thisAddr, Type type) {
a61af66fc99e Initial load
duke
parents:
diff changeset
195 // Collect fields
a61af66fc99e Initial load
duke
parents:
diff changeset
196 CCollector coll = new CCollector();
a61af66fc99e Initial load
duke
parents:
diff changeset
197 type.iterateObject(thisAddr, coll);
a61af66fc99e Initial load
duke
parents:
diff changeset
198 update(coll);
a61af66fc99e Initial load
duke
parents:
diff changeset
199 }
a61af66fc99e Initial load
duke
parents:
diff changeset
200
a61af66fc99e Initial load
duke
parents:
diff changeset
201 private void update(CCollector coll) {
a61af66fc99e Initial load
duke
parents:
diff changeset
202 root.removeAllChildren();
a61af66fc99e Initial load
duke
parents:
diff changeset
203 for (int i = 0; i < coll.getNumChildren(); i++) {
a61af66fc99e Initial load
duke
parents:
diff changeset
204 root.addChild(coll.getChild(i));
a61af66fc99e Initial load
duke
parents:
diff changeset
205 }
a61af66fc99e Initial load
duke
parents:
diff changeset
206 model.fireTreeStructureChanged();
a61af66fc99e Initial load
duke
parents:
diff changeset
207 }
a61af66fc99e Initial load
duke
parents:
diff changeset
208
a61af66fc99e Initial load
duke
parents:
diff changeset
209 static class CCollector extends DefaultObjectVisitor {
a61af66fc99e Initial load
duke
parents:
diff changeset
210 private java.util.List children;
a61af66fc99e Initial load
duke
parents:
diff changeset
211
a61af66fc99e Initial load
duke
parents:
diff changeset
212 public CCollector() {
a61af66fc99e Initial load
duke
parents:
diff changeset
213 children = new ArrayList();
a61af66fc99e Initial load
duke
parents:
diff changeset
214 }
a61af66fc99e Initial load
duke
parents:
diff changeset
215
a61af66fc99e Initial load
duke
parents:
diff changeset
216 public int getNumChildren() {
a61af66fc99e Initial load
duke
parents:
diff changeset
217 return children.size();
a61af66fc99e Initial load
duke
parents:
diff changeset
218 }
a61af66fc99e Initial load
duke
parents:
diff changeset
219
a61af66fc99e Initial load
duke
parents:
diff changeset
220 public SimpleTreeNode getChild(int i) {
a61af66fc99e Initial load
duke
parents:
diff changeset
221 return (SimpleTreeNode) children.get(i);
a61af66fc99e Initial load
duke
parents:
diff changeset
222 }
a61af66fc99e Initial load
duke
parents:
diff changeset
223
a61af66fc99e Initial load
duke
parents:
diff changeset
224 public void doBit(sun.jvm.hotspot.debugger.cdbg.FieldIdentifier f, long val) {
a61af66fc99e Initial load
duke
parents:
diff changeset
225 children.add(new sun.jvm.hotspot.bugspot.tree.LongTreeNodeAdapter(val, f, true));
a61af66fc99e Initial load
duke
parents:
diff changeset
226 }
a61af66fc99e Initial load
duke
parents:
diff changeset
227 public void doInt(sun.jvm.hotspot.debugger.cdbg.FieldIdentifier f, long val) {
a61af66fc99e Initial load
duke
parents:
diff changeset
228 children.add(new sun.jvm.hotspot.bugspot.tree.LongTreeNodeAdapter(val, f, true));
a61af66fc99e Initial load
duke
parents:
diff changeset
229 }
a61af66fc99e Initial load
duke
parents:
diff changeset
230 public void doEnum(sun.jvm.hotspot.debugger.cdbg.FieldIdentifier f, long val, String enumName) {
a61af66fc99e Initial load
duke
parents:
diff changeset
231 children.add(new sun.jvm.hotspot.bugspot.tree.EnumTreeNodeAdapter(enumName, val, f, true));
a61af66fc99e Initial load
duke
parents:
diff changeset
232 }
a61af66fc99e Initial load
duke
parents:
diff changeset
233 public void doFloat(sun.jvm.hotspot.debugger.cdbg.FieldIdentifier f, float val) {
a61af66fc99e Initial load
duke
parents:
diff changeset
234 children.add(new sun.jvm.hotspot.bugspot.tree.FloatTreeNodeAdapter(val, f, true));
a61af66fc99e Initial load
duke
parents:
diff changeset
235 }
a61af66fc99e Initial load
duke
parents:
diff changeset
236 public void doDouble(sun.jvm.hotspot.debugger.cdbg.FieldIdentifier f, double val) {
a61af66fc99e Initial load
duke
parents:
diff changeset
237 children.add(new sun.jvm.hotspot.bugspot.tree.DoubleTreeNodeAdapter(val, f, true));
a61af66fc99e Initial load
duke
parents:
diff changeset
238 }
a61af66fc99e Initial load
duke
parents:
diff changeset
239 public void doPointer(sun.jvm.hotspot.debugger.cdbg.FieldIdentifier f, Address val) {
a61af66fc99e Initial load
duke
parents:
diff changeset
240 children.add(new sun.jvm.hotspot.bugspot.tree.AddressTreeNodeAdapter(val, f, true));
a61af66fc99e Initial load
duke
parents:
diff changeset
241 }
a61af66fc99e Initial load
duke
parents:
diff changeset
242 public void doArray(sun.jvm.hotspot.debugger.cdbg.FieldIdentifier f, Address val) {
a61af66fc99e Initial load
duke
parents:
diff changeset
243 children.add(new sun.jvm.hotspot.bugspot.tree.AddressTreeNodeAdapter(val, f, true));
a61af66fc99e Initial load
duke
parents:
diff changeset
244 }
a61af66fc99e Initial load
duke
parents:
diff changeset
245 public void doRef(sun.jvm.hotspot.debugger.cdbg.FieldIdentifier f, Address val) {
a61af66fc99e Initial load
duke
parents:
diff changeset
246 children.add(new sun.jvm.hotspot.bugspot.tree.AddressTreeNodeAdapter(val, f, true));
a61af66fc99e Initial load
duke
parents:
diff changeset
247 }
a61af66fc99e Initial load
duke
parents:
diff changeset
248 public void doCompound(sun.jvm.hotspot.debugger.cdbg.FieldIdentifier f, Address val) {
a61af66fc99e Initial load
duke
parents:
diff changeset
249 children.add(new sun.jvm.hotspot.bugspot.tree.ObjectTreeNodeAdapter(val, f, true));
a61af66fc99e Initial load
duke
parents:
diff changeset
250 }
a61af66fc99e Initial load
duke
parents:
diff changeset
251 }
a61af66fc99e Initial load
duke
parents:
diff changeset
252 }