14 *
15 * You should have received a copy of the GNU General Public License version
16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 *
23 */
24
25 #include "precompiled.hpp"
26 #include "classfile/systemDictionary.hpp"
27 #include "classfile/vmSymbols.hpp"
28 #include "memory/resourceArea.hpp"
29 #include "memory/universe.hpp"
30 #include "oops/annotations.hpp"
31 #include "oops/instanceKlass.hpp"
32 #include "oops/oop.inline.hpp"
33 #include "oops/fieldStreams.hpp"
34 #include "runtime/fieldDescriptor.hpp"
35 #include "runtime/handles.inline.hpp"
36 #include "runtime/signature.hpp"
37
38
39 oop fieldDescriptor::loader() const {
40 return _cp->pool_holder()->class_loader();
41 }
42
43 Symbol* fieldDescriptor::generic_signature() const {
44 if (!has_generic_signature()) {
45 return NULL;
46 }
47
48 int idx = 0;
49 InstanceKlass* ik = field_holder();
50 for (AllFieldStream fs(ik); !fs.done(); fs.next()) {
51 if (idx == _index) {
52 return fs.generic_signature();
53 } else {
54 idx ++;
|
14 *
15 * You should have received a copy of the GNU General Public License version
16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 *
23 */
24
25 #include "precompiled.hpp"
26 #include "classfile/systemDictionary.hpp"
27 #include "classfile/vmSymbols.hpp"
28 #include "memory/resourceArea.hpp"
29 #include "memory/universe.hpp"
30 #include "oops/annotations.hpp"
31 #include "oops/instanceKlass.hpp"
32 #include "oops/oop.inline.hpp"
33 #include "oops/fieldStreams.hpp"
34 #include "runtime/fieldDescriptor.inline.hpp"
35 #include "runtime/handles.inline.hpp"
36 #include "runtime/signature.hpp"
37
38
39 oop fieldDescriptor::loader() const {
40 return _cp->pool_holder()->class_loader();
41 }
42
43 Symbol* fieldDescriptor::generic_signature() const {
44 if (!has_generic_signature()) {
45 return NULL;
46 }
47
48 int idx = 0;
49 InstanceKlass* ik = field_holder();
50 for (AllFieldStream fs(ik); !fs.done(); fs.next()) {
51 if (idx == _index) {
52 return fs.generic_signature();
53 } else {
54 idx ++;
|