11 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
13 * version 2 for more details (a copy is included in the LICENSE file that
14 * accompanied this code).
15 *
16 * You should have received a copy of the GNU General Public License version
17 * 2 along with this work; if not, write to the Free Software Foundation,
18 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
19 *
20 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
21 * or visit www.oracle.com if you need additional information or have any
22 * questions.
23 *
24 */
25
26 #ifndef CPU_ZERO_BYTECODEINTERPRETER_ZERO_HPP
27 #define CPU_ZERO_BYTECODEINTERPRETER_ZERO_HPP
28
29 // Platform specific for C++ based Interpreter
30
31 #if defined(PPC) || defined(SPARC) || defined(IA64)
32 #define LOTS_OF_REGS // Use plenty of registers
33 #else
34 #undef LOTS_OF_REGS // Loser platforms
35 #endif
36
37 private:
38 interpreterState _self_link;
39
40 public:
41 inline void set_locals(intptr_t* new_locals) {
42 _locals = new_locals;
43 }
44 inline void set_method(Method* new_method) {
45 _method = new_method;
46 }
47 inline void set_mirror(oop new_mirror) {
48 _mirror = new_mirror;
49 }
50 inline interpreterState self_link() {
51 return _self_link;
|
11 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
13 * version 2 for more details (a copy is included in the LICENSE file that
14 * accompanied this code).
15 *
16 * You should have received a copy of the GNU General Public License version
17 * 2 along with this work; if not, write to the Free Software Foundation,
18 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
19 *
20 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
21 * or visit www.oracle.com if you need additional information or have any
22 * questions.
23 *
24 */
25
26 #ifndef CPU_ZERO_BYTECODEINTERPRETER_ZERO_HPP
27 #define CPU_ZERO_BYTECODEINTERPRETER_ZERO_HPP
28
29 // Platform specific for C++ based Interpreter
30
31 #if defined(PPC) || defined(IA64)
32 #define LOTS_OF_REGS // Use plenty of registers
33 #else
34 #undef LOTS_OF_REGS // Loser platforms
35 #endif
36
37 private:
38 interpreterState _self_link;
39
40 public:
41 inline void set_locals(intptr_t* new_locals) {
42 _locals = new_locals;
43 }
44 inline void set_method(Method* new_method) {
45 _method = new_method;
46 }
47 inline void set_mirror(oop new_mirror) {
48 _mirror = new_mirror;
49 }
50 inline interpreterState self_link() {
51 return _self_link;
|