annotate src/share/vm/ci/ciKlass.cpp @ 6948:e522a00b91aa

Merge with http://hg.openjdk.java.net/hsx/hsx25/hotspot/ after NPG - C++ build works
author Doug Simon <doug.simon@oracle.com>
date Mon, 12 Nov 2012 23:14:12 +0100
parents 532be189cf09 da91efe96a93
children ce248dc0a656
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
a61af66fc99e Initial load
duke
parents:
diff changeset
1 /*
6725
da91efe96a93 6964458: Reimplement class meta-data storage to use native memory
coleenp
parents: 2426
diff changeset
2 * Copyright (c) 1999, 2012, 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: 1138
diff changeset
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
c18cbe5936b8 6941466: Oracle rebranding changes for Hotspot repositories
trims
parents: 1138
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: 1138
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
1972
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1604
diff changeset
25 #include "precompiled.hpp"
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1604
diff changeset
26 #include "ci/ciKlass.hpp"
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1604
diff changeset
27 #include "ci/ciSymbol.hpp"
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1604
diff changeset
28 #include "ci/ciUtilities.hpp"
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1604
diff changeset
29 #include "oops/oop.inline.hpp"
0
a61af66fc99e Initial load
duke
parents:
diff changeset
30
a61af66fc99e Initial load
duke
parents:
diff changeset
31 // ciKlass
a61af66fc99e Initial load
duke
parents:
diff changeset
32 //
6725
da91efe96a93 6964458: Reimplement class meta-data storage to use native memory
coleenp
parents: 2426
diff changeset
33 // This class represents a Klass* in the HotSpot virtual
0
a61af66fc99e Initial load
duke
parents:
diff changeset
34 // machine.
a61af66fc99e Initial load
duke
parents:
diff changeset
35
a61af66fc99e Initial load
duke
parents:
diff changeset
36 // ------------------------------------------------------------------
a61af66fc99e Initial load
duke
parents:
diff changeset
37 // ciKlass::ciKlass
a61af66fc99e Initial load
duke
parents:
diff changeset
38 ciKlass::ciKlass(KlassHandle h_k) : ciType(h_k) {
6725
da91efe96a93 6964458: Reimplement class meta-data storage to use native memory
coleenp
parents: 2426
diff changeset
39 assert(get_Klass()->is_klass(), "wrong type");
0
a61af66fc99e Initial load
duke
parents:
diff changeset
40 Klass* k = get_Klass();
a61af66fc99e Initial load
duke
parents:
diff changeset
41 _layout_helper = k->layout_helper();
2177
3582bf76420e 6990754: Use native memory and reference counting to implement SymbolTable
coleenp
parents: 1972
diff changeset
42 Symbol* klass_name = k->name();
0
a61af66fc99e Initial load
duke
parents:
diff changeset
43 assert(klass_name != NULL, "wrong ciKlass constructor");
2177
3582bf76420e 6990754: Use native memory and reference counting to implement SymbolTable
coleenp
parents: 1972
diff changeset
44 _name = CURRENT_ENV->get_symbol(klass_name);
0
a61af66fc99e Initial load
duke
parents:
diff changeset
45 }
a61af66fc99e Initial load
duke
parents:
diff changeset
46
a61af66fc99e Initial load
duke
parents:
diff changeset
47 // ------------------------------------------------------------------
a61af66fc99e Initial load
duke
parents:
diff changeset
48 // ciKlass::ciKlass
a61af66fc99e Initial load
duke
parents:
diff changeset
49 //
a61af66fc99e Initial load
duke
parents:
diff changeset
50 // Nameless klass variant.
a61af66fc99e Initial load
duke
parents:
diff changeset
51 ciKlass::ciKlass(KlassHandle h_k, ciSymbol* name) : ciType(h_k) {
6725
da91efe96a93 6964458: Reimplement class meta-data storage to use native memory
coleenp
parents: 2426
diff changeset
52 assert(get_Klass()->is_klass(), "wrong type");
0
a61af66fc99e Initial load
duke
parents:
diff changeset
53 _name = name;
a61af66fc99e Initial load
duke
parents:
diff changeset
54 _layout_helper = Klass::_lh_neutral_value;
a61af66fc99e Initial load
duke
parents:
diff changeset
55 }
a61af66fc99e Initial load
duke
parents:
diff changeset
56
a61af66fc99e Initial load
duke
parents:
diff changeset
57 // ------------------------------------------------------------------
a61af66fc99e Initial load
duke
parents:
diff changeset
58 // ciKlass::ciKlass
a61af66fc99e Initial load
duke
parents:
diff changeset
59 //
a61af66fc99e Initial load
duke
parents:
diff changeset
60 // Unloaded klass variant.
6725
da91efe96a93 6964458: Reimplement class meta-data storage to use native memory
coleenp
parents: 2426
diff changeset
61 ciKlass::ciKlass(ciSymbol* name, BasicType bt) : ciType(bt) {
0
a61af66fc99e Initial load
duke
parents:
diff changeset
62 _name = name;
a61af66fc99e Initial load
duke
parents:
diff changeset
63 _layout_helper = Klass::_lh_neutral_value;
a61af66fc99e Initial load
duke
parents:
diff changeset
64 }
a61af66fc99e Initial load
duke
parents:
diff changeset
65
a61af66fc99e Initial load
duke
parents:
diff changeset
66 // ------------------------------------------------------------------
a61af66fc99e Initial load
duke
parents:
diff changeset
67 // ciKlass::is_subtype_of
a61af66fc99e Initial load
duke
parents:
diff changeset
68 bool ciKlass::is_subtype_of(ciKlass* that) {
a61af66fc99e Initial load
duke
parents:
diff changeset
69 assert(is_loaded() && that->is_loaded(), "must be loaded");
a61af66fc99e Initial load
duke
parents:
diff changeset
70 // Check to see if the klasses are identical.
a61af66fc99e Initial load
duke
parents:
diff changeset
71 if (this == that) {
a61af66fc99e Initial load
duke
parents:
diff changeset
72 return true;
a61af66fc99e Initial load
duke
parents:
diff changeset
73 }
4977
532be189cf09 Reducing diff to hsx24
Thomas Wuerthinger <thomas.wuerthinger@oracle.com>
parents: 3672
diff changeset
74 #ifndef GRAAL
0
a61af66fc99e Initial load
duke
parents:
diff changeset
75 VM_ENTRY_MARK;
4977
532be189cf09 Reducing diff to hsx24
Thomas Wuerthinger <thomas.wuerthinger@oracle.com>
parents: 3672
diff changeset
76 #endif
0
a61af66fc99e Initial load
duke
parents:
diff changeset
77 Klass* this_klass = get_Klass();
6725
da91efe96a93 6964458: Reimplement class meta-data storage to use native memory
coleenp
parents: 2426
diff changeset
78 Klass* that_klass = that->get_Klass();
0
a61af66fc99e Initial load
duke
parents:
diff changeset
79 bool result = this_klass->is_subtype_of(that_klass);
a61af66fc99e Initial load
duke
parents:
diff changeset
80
a61af66fc99e Initial load
duke
parents:
diff changeset
81 return result;
a61af66fc99e Initial load
duke
parents:
diff changeset
82 }
a61af66fc99e Initial load
duke
parents:
diff changeset
83
a61af66fc99e Initial load
duke
parents:
diff changeset
84 // ------------------------------------------------------------------
a61af66fc99e Initial load
duke
parents:
diff changeset
85 // ciKlass::is_subclass_of
a61af66fc99e Initial load
duke
parents:
diff changeset
86 bool ciKlass::is_subclass_of(ciKlass* that) {
a61af66fc99e Initial load
duke
parents:
diff changeset
87 assert(is_loaded() && that->is_loaded(), "must be loaded");
a61af66fc99e Initial load
duke
parents:
diff changeset
88 // Check to see if the klasses are identical.
a61af66fc99e Initial load
duke
parents:
diff changeset
89
a61af66fc99e Initial load
duke
parents:
diff changeset
90 VM_ENTRY_MARK;
a61af66fc99e Initial load
duke
parents:
diff changeset
91 Klass* this_klass = get_Klass();
6725
da91efe96a93 6964458: Reimplement class meta-data storage to use native memory
coleenp
parents: 2426
diff changeset
92 Klass* that_klass = that->get_Klass();
0
a61af66fc99e Initial load
duke
parents:
diff changeset
93 bool result = this_klass->is_subclass_of(that_klass);
a61af66fc99e Initial load
duke
parents:
diff changeset
94
a61af66fc99e Initial load
duke
parents:
diff changeset
95 return result;
a61af66fc99e Initial load
duke
parents:
diff changeset
96 }
a61af66fc99e Initial load
duke
parents:
diff changeset
97
a61af66fc99e Initial load
duke
parents:
diff changeset
98 // ------------------------------------------------------------------
a61af66fc99e Initial load
duke
parents:
diff changeset
99 // ciKlass::super_depth
a61af66fc99e Initial load
duke
parents:
diff changeset
100 juint ciKlass::super_depth() {
a61af66fc99e Initial load
duke
parents:
diff changeset
101 assert(is_loaded(), "must be loaded");
a61af66fc99e Initial load
duke
parents:
diff changeset
102
a61af66fc99e Initial load
duke
parents:
diff changeset
103 VM_ENTRY_MARK;
a61af66fc99e Initial load
duke
parents:
diff changeset
104 Klass* this_klass = get_Klass();
a61af66fc99e Initial load
duke
parents:
diff changeset
105 return this_klass->super_depth();
a61af66fc99e Initial load
duke
parents:
diff changeset
106 }
a61af66fc99e Initial load
duke
parents:
diff changeset
107
a61af66fc99e Initial load
duke
parents:
diff changeset
108 // ------------------------------------------------------------------
a61af66fc99e Initial load
duke
parents:
diff changeset
109 // ciKlass::super_check_offset
a61af66fc99e Initial load
duke
parents:
diff changeset
110 juint ciKlass::super_check_offset() {
a61af66fc99e Initial load
duke
parents:
diff changeset
111 assert(is_loaded(), "must be loaded");
a61af66fc99e Initial load
duke
parents:
diff changeset
112
a61af66fc99e Initial load
duke
parents:
diff changeset
113 VM_ENTRY_MARK;
a61af66fc99e Initial load
duke
parents:
diff changeset
114 Klass* this_klass = get_Klass();
a61af66fc99e Initial load
duke
parents:
diff changeset
115 return this_klass->super_check_offset();
a61af66fc99e Initial load
duke
parents:
diff changeset
116 }
a61af66fc99e Initial load
duke
parents:
diff changeset
117
a61af66fc99e Initial load
duke
parents:
diff changeset
118 // ------------------------------------------------------------------
a61af66fc99e Initial load
duke
parents:
diff changeset
119 // ciKlass::super_of_depth
a61af66fc99e Initial load
duke
parents:
diff changeset
120 ciKlass* ciKlass::super_of_depth(juint i) {
a61af66fc99e Initial load
duke
parents:
diff changeset
121 assert(is_loaded(), "must be loaded");
a61af66fc99e Initial load
duke
parents:
diff changeset
122
a61af66fc99e Initial load
duke
parents:
diff changeset
123 VM_ENTRY_MARK;
a61af66fc99e Initial load
duke
parents:
diff changeset
124 Klass* this_klass = get_Klass();
6725
da91efe96a93 6964458: Reimplement class meta-data storage to use native memory
coleenp
parents: 2426
diff changeset
125 Klass* super = this_klass->primary_super_of_depth(i);
da91efe96a93 6964458: Reimplement class meta-data storage to use native memory
coleenp
parents: 2426
diff changeset
126 return (super != NULL) ? CURRENT_THREAD_ENV->get_klass(super) : NULL;
0
a61af66fc99e Initial load
duke
parents:
diff changeset
127 }
a61af66fc99e Initial load
duke
parents:
diff changeset
128
a61af66fc99e Initial load
duke
parents:
diff changeset
129 // ------------------------------------------------------------------
a61af66fc99e Initial load
duke
parents:
diff changeset
130 // ciKlass::can_be_primary_super
a61af66fc99e Initial load
duke
parents:
diff changeset
131 bool ciKlass::can_be_primary_super() {
a61af66fc99e Initial load
duke
parents:
diff changeset
132 assert(is_loaded(), "must be loaded");
a61af66fc99e Initial load
duke
parents:
diff changeset
133
a61af66fc99e Initial load
duke
parents:
diff changeset
134 VM_ENTRY_MARK;
a61af66fc99e Initial load
duke
parents:
diff changeset
135 Klass* this_klass = get_Klass();
a61af66fc99e Initial load
duke
parents:
diff changeset
136 return this_klass->can_be_primary_super();
a61af66fc99e Initial load
duke
parents:
diff changeset
137 }
a61af66fc99e Initial load
duke
parents:
diff changeset
138
a61af66fc99e Initial load
duke
parents:
diff changeset
139 // ------------------------------------------------------------------
a61af66fc99e Initial load
duke
parents:
diff changeset
140 // ciKlass::least_common_ancestor
a61af66fc99e Initial load
duke
parents:
diff changeset
141 //
a61af66fc99e Initial load
duke
parents:
diff changeset
142 // Get the shared parent of two klasses.
a61af66fc99e Initial load
duke
parents:
diff changeset
143 //
a61af66fc99e Initial load
duke
parents:
diff changeset
144 // Implementation note: this method currently goes "over the wall"
a61af66fc99e Initial load
duke
parents:
diff changeset
145 // and does all of the work on the VM side. It could be rewritten
a61af66fc99e Initial load
duke
parents:
diff changeset
146 // to use the super() method and do all of the work (aside from the
a61af66fc99e Initial load
duke
parents:
diff changeset
147 // lazy computation of super()) in native mode. This may be
a61af66fc99e Initial load
duke
parents:
diff changeset
148 // worthwhile if the compiler is repeatedly requesting the same lca
a61af66fc99e Initial load
duke
parents:
diff changeset
149 // computation or possibly if most of the superklasses have already
a61af66fc99e Initial load
duke
parents:
diff changeset
150 // been created as ciObjects anyway. Something to think about...
a61af66fc99e Initial load
duke
parents:
diff changeset
151 ciKlass*
a61af66fc99e Initial load
duke
parents:
diff changeset
152 ciKlass::least_common_ancestor(ciKlass* that) {
a61af66fc99e Initial load
duke
parents:
diff changeset
153 assert(is_loaded() && that->is_loaded(), "must be loaded");
a61af66fc99e Initial load
duke
parents:
diff changeset
154 // Check to see if the klasses are identical.
a61af66fc99e Initial load
duke
parents:
diff changeset
155 if (this == that) {
a61af66fc99e Initial load
duke
parents:
diff changeset
156 return this;
a61af66fc99e Initial load
duke
parents:
diff changeset
157 }
a61af66fc99e Initial load
duke
parents:
diff changeset
158
a61af66fc99e Initial load
duke
parents:
diff changeset
159 VM_ENTRY_MARK;
a61af66fc99e Initial load
duke
parents:
diff changeset
160 Klass* this_klass = get_Klass();
a61af66fc99e Initial load
duke
parents:
diff changeset
161 Klass* that_klass = that->get_Klass();
a61af66fc99e Initial load
duke
parents:
diff changeset
162 Klass* lca = this_klass->LCA(that_klass);
a61af66fc99e Initial load
duke
parents:
diff changeset
163
a61af66fc99e Initial load
duke
parents:
diff changeset
164 // Many times the LCA will be either this_klass or that_klass.
a61af66fc99e Initial load
duke
parents:
diff changeset
165 // Treat these as special cases.
a61af66fc99e Initial load
duke
parents:
diff changeset
166 if (lca == that_klass) {
a61af66fc99e Initial load
duke
parents:
diff changeset
167 return that;
a61af66fc99e Initial load
duke
parents:
diff changeset
168 }
a61af66fc99e Initial load
duke
parents:
diff changeset
169 if (this_klass == lca) {
a61af66fc99e Initial load
duke
parents:
diff changeset
170 return this;
a61af66fc99e Initial load
duke
parents:
diff changeset
171 }
a61af66fc99e Initial load
duke
parents:
diff changeset
172
a61af66fc99e Initial load
duke
parents:
diff changeset
173 // Create the ciInstanceKlass for the lca.
a61af66fc99e Initial load
duke
parents:
diff changeset
174 ciKlass* result =
6725
da91efe96a93 6964458: Reimplement class meta-data storage to use native memory
coleenp
parents: 2426
diff changeset
175 CURRENT_THREAD_ENV->get_klass(lca);
0
a61af66fc99e Initial load
duke
parents:
diff changeset
176
a61af66fc99e Initial load
duke
parents:
diff changeset
177 return result;
a61af66fc99e Initial load
duke
parents:
diff changeset
178 }
a61af66fc99e Initial load
duke
parents:
diff changeset
179
a61af66fc99e Initial load
duke
parents:
diff changeset
180 // ------------------------------------------------------------------
a61af66fc99e Initial load
duke
parents:
diff changeset
181 // ciKlass::find_klass
a61af66fc99e Initial load
duke
parents:
diff changeset
182 //
a61af66fc99e Initial load
duke
parents:
diff changeset
183 // Find a klass using this klass's class loader.
a61af66fc99e Initial load
duke
parents:
diff changeset
184 ciKlass* ciKlass::find_klass(ciSymbol* klass_name) {
a61af66fc99e Initial load
duke
parents:
diff changeset
185 assert(is_loaded(), "cannot find_klass through an unloaded klass");
a61af66fc99e Initial load
duke
parents:
diff changeset
186 return CURRENT_ENV->get_klass_by_name(this,
a61af66fc99e Initial load
duke
parents:
diff changeset
187 klass_name, false);
a61af66fc99e Initial load
duke
parents:
diff changeset
188 }
a61af66fc99e Initial load
duke
parents:
diff changeset
189
a61af66fc99e Initial load
duke
parents:
diff changeset
190 // ------------------------------------------------------------------
a61af66fc99e Initial load
duke
parents:
diff changeset
191 // ciKlass::java_mirror
1604
b918d354830a 6960865: ldc of unloaded class throws an assert in ciTypeFlow
jrose
parents: 1552
diff changeset
192 //
b918d354830a 6960865: ldc of unloaded class throws an assert in ciTypeFlow
jrose
parents: 1552
diff changeset
193 // Get the instance of java.lang.Class corresponding to this klass.
b918d354830a 6960865: ldc of unloaded class throws an assert in ciTypeFlow
jrose
parents: 1552
diff changeset
194 // If it is an unloaded instance or array klass, return an unloaded
b918d354830a 6960865: ldc of unloaded class throws an assert in ciTypeFlow
jrose
parents: 1552
diff changeset
195 // mirror object of type Class.
0
a61af66fc99e Initial load
duke
parents:
diff changeset
196 ciInstance* ciKlass::java_mirror() {
a61af66fc99e Initial load
duke
parents:
diff changeset
197 GUARDED_VM_ENTRY(
1604
b918d354830a 6960865: ldc of unloaded class throws an assert in ciTypeFlow
jrose
parents: 1552
diff changeset
198 if (!is_loaded())
b918d354830a 6960865: ldc of unloaded class throws an assert in ciTypeFlow
jrose
parents: 1552
diff changeset
199 return ciEnv::current()->get_unloaded_klass_mirror(this);
0
a61af66fc99e Initial load
duke
parents:
diff changeset
200 oop java_mirror = get_Klass()->java_mirror();
6725
da91efe96a93 6964458: Reimplement class meta-data storage to use native memory
coleenp
parents: 2426
diff changeset
201 return CURRENT_ENV->get_instance(java_mirror);
0
a61af66fc99e Initial load
duke
parents:
diff changeset
202 )
a61af66fc99e Initial load
duke
parents:
diff changeset
203 }
a61af66fc99e Initial load
duke
parents:
diff changeset
204
a61af66fc99e Initial load
duke
parents:
diff changeset
205 // ------------------------------------------------------------------
a61af66fc99e Initial load
duke
parents:
diff changeset
206 // ciKlass::modifier_flags
a61af66fc99e Initial load
duke
parents:
diff changeset
207 jint ciKlass::modifier_flags() {
a61af66fc99e Initial load
duke
parents:
diff changeset
208 assert(is_loaded(), "not loaded");
a61af66fc99e Initial load
duke
parents:
diff changeset
209 GUARDED_VM_ENTRY(
a61af66fc99e Initial load
duke
parents:
diff changeset
210 return get_Klass()->modifier_flags();
a61af66fc99e Initial load
duke
parents:
diff changeset
211 )
a61af66fc99e Initial load
duke
parents:
diff changeset
212 }
a61af66fc99e Initial load
duke
parents:
diff changeset
213
a61af66fc99e Initial load
duke
parents:
diff changeset
214 // ------------------------------------------------------------------
a61af66fc99e Initial load
duke
parents:
diff changeset
215 // ciKlass::access_flags
a61af66fc99e Initial load
duke
parents:
diff changeset
216 jint ciKlass::access_flags() {
a61af66fc99e Initial load
duke
parents:
diff changeset
217 assert(is_loaded(), "not loaded");
a61af66fc99e Initial load
duke
parents:
diff changeset
218 GUARDED_VM_ENTRY(
a61af66fc99e Initial load
duke
parents:
diff changeset
219 return get_Klass()->access_flags().as_int();
a61af66fc99e Initial load
duke
parents:
diff changeset
220 )
a61af66fc99e Initial load
duke
parents:
diff changeset
221 }
a61af66fc99e Initial load
duke
parents:
diff changeset
222
a61af66fc99e Initial load
duke
parents:
diff changeset
223 // ------------------------------------------------------------------
a61af66fc99e Initial load
duke
parents:
diff changeset
224 // ciKlass::print_impl
a61af66fc99e Initial load
duke
parents:
diff changeset
225 //
a61af66fc99e Initial load
duke
parents:
diff changeset
226 // Implementation of the print method
a61af66fc99e Initial load
duke
parents:
diff changeset
227 void ciKlass::print_impl(outputStream* st) {
a61af66fc99e Initial load
duke
parents:
diff changeset
228 st->print(" name=");
a61af66fc99e Initial load
duke
parents:
diff changeset
229 print_name_on(st);
a61af66fc99e Initial load
duke
parents:
diff changeset
230 }
a61af66fc99e Initial load
duke
parents:
diff changeset
231
a61af66fc99e Initial load
duke
parents:
diff changeset
232 // ------------------------------------------------------------------
a61af66fc99e Initial load
duke
parents:
diff changeset
233 // ciKlass::print_name
a61af66fc99e Initial load
duke
parents:
diff changeset
234 //
a61af66fc99e Initial load
duke
parents:
diff changeset
235 // Print the name of this klass
a61af66fc99e Initial load
duke
parents:
diff changeset
236 void ciKlass::print_name_on(outputStream* st) {
a61af66fc99e Initial load
duke
parents:
diff changeset
237 name()->print_symbol_on(st);
a61af66fc99e Initial load
duke
parents:
diff changeset
238 }