src/cpu/zero/vm/bytecodeInterpreter_zero.cpp

Tue, 08 Aug 2017 15:57:29 +0800

author
aoqi
date
Tue, 08 Aug 2017 15:57:29 +0800
changeset 6876
710a3c8b516e
parent 4037
da91efe96a93
parent 0
f90c822e73f8
permissions
-rw-r--r--

merge

aoqi@0 1 /*
aoqi@0 2 * Copyright (c) 2003, 2012, Oracle and/or its affiliates. All rights reserved.
aoqi@0 3 * Copyright 2008 Red Hat, Inc.
aoqi@0 4 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
aoqi@0 5 *
aoqi@0 6 * This code is free software; you can redistribute it and/or modify it
aoqi@0 7 * under the terms of the GNU General Public License version 2 only, as
aoqi@0 8 * published by the Free Software Foundation.
aoqi@0 9 *
aoqi@0 10 * This code is distributed in the hope that it will be useful, but WITHOUT
aoqi@0 11 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
aoqi@0 12 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
aoqi@0 13 * version 2 for more details (a copy is included in the LICENSE file that
aoqi@0 14 * accompanied this code).
aoqi@0 15 *
aoqi@0 16 * You should have received a copy of the GNU General Public License version
aoqi@0 17 * 2 along with this work; if not, write to the Free Software Foundation,
aoqi@0 18 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
aoqi@0 19 *
aoqi@0 20 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
aoqi@0 21 * or visit www.oracle.com if you need additional information or have any
aoqi@0 22 * questions.
aoqi@0 23 *
aoqi@0 24 */
aoqi@0 25
aoqi@0 26 #include "precompiled.hpp"
aoqi@0 27 #include "asm/assembler.hpp"
aoqi@0 28 #include "interp_masm_zero.hpp"
aoqi@0 29 #include "interpreter/bytecodeInterpreter.hpp"
aoqi@0 30 #include "interpreter/bytecodeInterpreter.inline.hpp"
aoqi@0 31 #include "interpreter/interpreter.hpp"
aoqi@0 32 #include "interpreter/interpreterRuntime.hpp"
aoqi@0 33 #include "oops/methodData.hpp"
aoqi@0 34 #include "oops/method.hpp"
aoqi@0 35 #include "oops/oop.inline.hpp"
aoqi@0 36 #include "prims/jvmtiExport.hpp"
aoqi@0 37 #include "prims/jvmtiThreadState.hpp"
aoqi@0 38 #include "runtime/deoptimization.hpp"
aoqi@0 39 #include "runtime/frame.inline.hpp"
aoqi@0 40 #include "runtime/sharedRuntime.hpp"
aoqi@0 41 #include "runtime/stubRoutines.hpp"
aoqi@0 42 #include "runtime/synchronizer.hpp"
aoqi@0 43 #include "runtime/vframeArray.hpp"
aoqi@0 44 #include "utilities/debug.hpp"
aoqi@0 45
aoqi@0 46 #ifdef CC_INTERP
aoqi@0 47
aoqi@0 48 const char *BytecodeInterpreter::name_of_field_at_address(address addr) {
aoqi@0 49 #define DO(member) {if (addr == (address) &(member)) return XSTR(member);}
aoqi@0 50 DO(_thread);
aoqi@0 51 DO(_bcp);
aoqi@0 52 DO(_locals);
aoqi@0 53 DO(_constants);
aoqi@0 54 DO(_method);
aoqi@0 55 DO(_mdx);
aoqi@0 56 DO(_stack);
aoqi@0 57 DO(_msg);
aoqi@0 58 DO(_result);
aoqi@0 59 DO(_prev_link);
aoqi@0 60 DO(_oop_temp);
aoqi@0 61 DO(_stack_base);
aoqi@0 62 DO(_stack_limit);
aoqi@0 63 DO(_monitor_base);
aoqi@0 64 DO(_self_link);
aoqi@0 65 #undef DO
aoqi@0 66 if (addr > (address) &_result && addr < (address) (&_result + 1))
aoqi@0 67 return "_result)";
aoqi@0 68 return NULL;
aoqi@0 69 }
aoqi@0 70
aoqi@0 71 #endif // CC_INTERP

mercurial