1 /*
2 * Copyright (c) 2003, 2017, Oracle and/or its affiliates. All rights reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * This code is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation.
8 *
9 * This code is distributed in the hope that it will be useful, but WITHOUT
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 * version 2 for more details (a copy is included in the LICENSE file that
13 * accompanied this code).
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 *
452 AnnotationArray* class_annotations, int &byte_i_ref, TRAPS);
453 bool rewrite_cp_refs_in_annotations_typeArray(
454 AnnotationArray* annotations_typeArray, int &byte_i_ref, TRAPS);
455 bool rewrite_cp_refs_in_class_annotations(
456 InstanceKlass* scratch_class, TRAPS);
457 bool rewrite_cp_refs_in_element_value(
458 AnnotationArray* class_annotations, int &byte_i_ref, TRAPS);
459 bool rewrite_cp_refs_in_type_annotations_typeArray(
460 AnnotationArray* type_annotations_typeArray, int &byte_i_ref,
461 const char * location_mesg, TRAPS);
462 bool rewrite_cp_refs_in_type_annotation_struct(
463 AnnotationArray* type_annotations_typeArray, int &byte_i_ref,
464 const char * location_mesg, TRAPS);
465 bool skip_type_annotation_target(
466 AnnotationArray* type_annotations_typeArray, int &byte_i_ref,
467 const char * location_mesg, TRAPS);
468 bool skip_type_annotation_type_path(
469 AnnotationArray* type_annotations_typeArray, int &byte_i_ref, TRAPS);
470 bool rewrite_cp_refs_in_fields_annotations(
471 InstanceKlass* scratch_class, TRAPS);
472 void rewrite_cp_refs_in_method(methodHandle method,
473 methodHandle * new_method_p, TRAPS);
474 bool rewrite_cp_refs_in_methods(InstanceKlass* scratch_class, TRAPS);
475 bool rewrite_cp_refs_in_methods_annotations(
476 InstanceKlass* scratch_class, TRAPS);
477 bool rewrite_cp_refs_in_methods_default_annotations(
478 InstanceKlass* scratch_class, TRAPS);
479 bool rewrite_cp_refs_in_methods_parameter_annotations(
480 InstanceKlass* scratch_class, TRAPS);
481 bool rewrite_cp_refs_in_class_type_annotations(
482 InstanceKlass* scratch_class, TRAPS);
483 bool rewrite_cp_refs_in_fields_type_annotations(
484 InstanceKlass* scratch_class, TRAPS);
485 bool rewrite_cp_refs_in_methods_type_annotations(
486 InstanceKlass* scratch_class, TRAPS);
487 void rewrite_cp_refs_in_stack_map_table(const methodHandle& method, TRAPS);
488 void rewrite_cp_refs_in_verification_type_info(
489 address& stackmap_addr_ref, address stackmap_end, u2 frame_i,
490 u1 frame_size, TRAPS);
491 void set_new_constant_pool(ClassLoaderData* loader_data,
|
1 /*
2 * Copyright (c) 2003, 2018, Oracle and/or its affiliates. All rights reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * This code is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation.
8 *
9 * This code is distributed in the hope that it will be useful, but WITHOUT
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 * version 2 for more details (a copy is included in the LICENSE file that
13 * accompanied this code).
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 *
452 AnnotationArray* class_annotations, int &byte_i_ref, TRAPS);
453 bool rewrite_cp_refs_in_annotations_typeArray(
454 AnnotationArray* annotations_typeArray, int &byte_i_ref, TRAPS);
455 bool rewrite_cp_refs_in_class_annotations(
456 InstanceKlass* scratch_class, TRAPS);
457 bool rewrite_cp_refs_in_element_value(
458 AnnotationArray* class_annotations, int &byte_i_ref, TRAPS);
459 bool rewrite_cp_refs_in_type_annotations_typeArray(
460 AnnotationArray* type_annotations_typeArray, int &byte_i_ref,
461 const char * location_mesg, TRAPS);
462 bool rewrite_cp_refs_in_type_annotation_struct(
463 AnnotationArray* type_annotations_typeArray, int &byte_i_ref,
464 const char * location_mesg, TRAPS);
465 bool skip_type_annotation_target(
466 AnnotationArray* type_annotations_typeArray, int &byte_i_ref,
467 const char * location_mesg, TRAPS);
468 bool skip_type_annotation_type_path(
469 AnnotationArray* type_annotations_typeArray, int &byte_i_ref, TRAPS);
470 bool rewrite_cp_refs_in_fields_annotations(
471 InstanceKlass* scratch_class, TRAPS);
472 bool rewrite_cp_refs_in_nest_attributes(InstanceKlass* scratch_class);
473 void rewrite_cp_refs_in_method(methodHandle method,
474 methodHandle * new_method_p, TRAPS);
475 bool rewrite_cp_refs_in_methods(InstanceKlass* scratch_class, TRAPS);
476 bool rewrite_cp_refs_in_methods_annotations(
477 InstanceKlass* scratch_class, TRAPS);
478 bool rewrite_cp_refs_in_methods_default_annotations(
479 InstanceKlass* scratch_class, TRAPS);
480 bool rewrite_cp_refs_in_methods_parameter_annotations(
481 InstanceKlass* scratch_class, TRAPS);
482 bool rewrite_cp_refs_in_class_type_annotations(
483 InstanceKlass* scratch_class, TRAPS);
484 bool rewrite_cp_refs_in_fields_type_annotations(
485 InstanceKlass* scratch_class, TRAPS);
486 bool rewrite_cp_refs_in_methods_type_annotations(
487 InstanceKlass* scratch_class, TRAPS);
488 void rewrite_cp_refs_in_stack_map_table(const methodHandle& method, TRAPS);
489 void rewrite_cp_refs_in_verification_type_info(
490 address& stackmap_addr_ref, address stackmap_end, u2 frame_i,
491 u1 frame_size, TRAPS);
492 void set_new_constant_pool(ClassLoaderData* loader_data,
|