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 *
23 */
24
25 #include "precompiled.hpp"
26 #include "ci/ciField.hpp"
27 #include "ci/ciInstance.hpp"
28 #include "ci/ciInstanceKlass.hpp"
29 #include "ci/ciUtilities.hpp"
30 #include "classfile/systemDictionary.hpp"
31 #include "memory/allocation.hpp"
32 #include "memory/allocation.inline.hpp"
33 #include "memory/resourceArea.hpp"
34 #include "oops/oop.inline.hpp"
35 #include "oops/fieldStreams.hpp"
36 #include "runtime/fieldDescriptor.hpp"
37 #include "runtime/jniHandles.inline.hpp"
38
39 // ciInstanceKlass
40 //
41 // This class represents a Klass* in the HotSpot virtual machine
42 // whose Klass part in an InstanceKlass.
43
44
45 // ------------------------------------------------------------------
46 // ciInstanceKlass::ciInstanceKlass
47 //
48 // Loaded instance klass.
49 ciInstanceKlass::ciInstanceKlass(Klass* k) :
50 ciKlass(k)
51 {
52 assert(get_Klass()->is_instance_klass(), "wrong type");
53 assert(get_instanceKlass()->is_loaded(), "must be at least loaded");
54 InstanceKlass* ik = get_instanceKlass();
55
56 AccessFlags access_flags = ik->access_flags();
|
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 *
23 */
24
25 #include "precompiled.hpp"
26 #include "ci/ciField.hpp"
27 #include "ci/ciInstance.hpp"
28 #include "ci/ciInstanceKlass.hpp"
29 #include "ci/ciUtilities.inline.hpp"
30 #include "classfile/systemDictionary.hpp"
31 #include "memory/allocation.hpp"
32 #include "memory/allocation.inline.hpp"
33 #include "memory/resourceArea.hpp"
34 #include "oops/oop.inline.hpp"
35 #include "oops/fieldStreams.hpp"
36 #include "runtime/fieldDescriptor.hpp"
37 #include "runtime/handles.inline.hpp"
38 #include "runtime/jniHandles.inline.hpp"
39
40 // ciInstanceKlass
41 //
42 // This class represents a Klass* in the HotSpot virtual machine
43 // whose Klass part in an InstanceKlass.
44
45
46 // ------------------------------------------------------------------
47 // ciInstanceKlass::ciInstanceKlass
48 //
49 // Loaded instance klass.
50 ciInstanceKlass::ciInstanceKlass(Klass* k) :
51 ciKlass(k)
52 {
53 assert(get_Klass()->is_instance_klass(), "wrong type");
54 assert(get_instanceKlass()->is_loaded(), "must be at least loaded");
55 InstanceKlass* ik = get_instanceKlass();
56
57 AccessFlags access_flags = ik->access_flags();
|