1 /*
2 * Copyright (c) 2011, 2015, 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 */
23
24 #ifndef SHARE_VM_JVMCI_JVMCIJAVACLASSES_HPP
25 #define SHARE_VM_JVMCI_JVMCIJAVACLASSES_HPP
26
27 #include "classfile/systemDictionary.hpp"
28 #include "oops/instanceMirrorKlass.hpp"
29
30 class JVMCIJavaClasses : AllStatic {
31 public:
32 static void compute_offsets(TRAPS);
33 };
34
35 /* This macro defines the structure of the CompilationResult - classes.
36 * It will generate classes with accessors similar to javaClasses.hpp, but with specializations for oops, Handles and jni handles.
37 *
38 * The public interface of these classes will look like this:
39
40 * class StackSlot : AllStatic {
41 * public:
42 * static Klass* klass();
43 * static jint index(oop obj);
44 * static jint index(Handle obj);
45 * static jint index(jobject obj);
46 * static void set_index(oop obj, jint x);
47 * static void set_index(Handle obj, jint x);
48 * static void set_index(jobject obj, jint x);
|
1 /*
2 * Copyright (c) 2011, 2016, 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 */
23
24 #ifndef SHARE_VM_JVMCI_JVMCIJAVACLASSES_HPP
25 #define SHARE_VM_JVMCI_JVMCIJAVACLASSES_HPP
26
27 #include "classfile/systemDictionary.hpp"
28 #include "oops/instanceMirrorKlass.hpp"
29 #include "oops/oop.inline.hpp"
30
31 class JVMCIJavaClasses : AllStatic {
32 public:
33 static void compute_offsets(TRAPS);
34 };
35
36 /* This macro defines the structure of the CompilationResult - classes.
37 * It will generate classes with accessors similar to javaClasses.hpp, but with specializations for oops, Handles and jni handles.
38 *
39 * The public interface of these classes will look like this:
40
41 * class StackSlot : AllStatic {
42 * public:
43 * static Klass* klass();
44 * static jint index(oop obj);
45 * static jint index(Handle obj);
46 * static jint index(jobject obj);
47 * static void set_index(oop obj, jint x);
48 * static void set_index(Handle obj, jint x);
49 * static void set_index(jobject obj, jint x);
|