src/cpu/zero/vm/bytecodeInterpreter_zero.cpp

Tue, 20 Aug 2013 10:57:50 -0700

author
twisti
date
Tue, 20 Aug 2013 10:57:50 -0700
changeset 5545
e16282db4946
parent 4037
da91efe96a93
child 6876
710a3c8b516e
permissions
-rw-r--r--

8022956: Clang: enable return type warnings on BSD
Reviewed-by: coleenp, sla

     1 /*
     2  * Copyright (c) 2003, 2012, Oracle and/or its affiliates. All rights reserved.
     3  * Copyright 2008 Red Hat, Inc.
     4  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     5  *
     6  * This code is free software; you can redistribute it and/or modify it
     7  * under the terms of the GNU General Public License version 2 only, as
     8  * published by the Free Software Foundation.
     9  *
    10  * This code is distributed in the hope that it will be useful, but WITHOUT
    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  */
    26 #include "precompiled.hpp"
    27 #include "asm/assembler.hpp"
    28 #include "interp_masm_zero.hpp"
    29 #include "interpreter/bytecodeInterpreter.hpp"
    30 #include "interpreter/bytecodeInterpreter.inline.hpp"
    31 #include "interpreter/interpreter.hpp"
    32 #include "interpreter/interpreterRuntime.hpp"
    33 #include "oops/methodData.hpp"
    34 #include "oops/method.hpp"
    35 #include "oops/oop.inline.hpp"
    36 #include "prims/jvmtiExport.hpp"
    37 #include "prims/jvmtiThreadState.hpp"
    38 #include "runtime/deoptimization.hpp"
    39 #include "runtime/frame.inline.hpp"
    40 #include "runtime/sharedRuntime.hpp"
    41 #include "runtime/stubRoutines.hpp"
    42 #include "runtime/synchronizer.hpp"
    43 #include "runtime/vframeArray.hpp"
    44 #include "utilities/debug.hpp"
    46 #ifdef CC_INTERP
    48 const char *BytecodeInterpreter::name_of_field_at_address(address addr) {
    49 #define DO(member) {if (addr == (address) &(member)) return XSTR(member);}
    50   DO(_thread);
    51   DO(_bcp);
    52   DO(_locals);
    53   DO(_constants);
    54   DO(_method);
    55   DO(_mdx);
    56   DO(_stack);
    57   DO(_msg);
    58   DO(_result);
    59   DO(_prev_link);
    60   DO(_oop_temp);
    61   DO(_stack_base);
    62   DO(_stack_limit);
    63   DO(_monitor_base);
    64   DO(_self_link);
    65 #undef DO
    66   if (addr > (address) &_result && addr < (address) (&_result + 1))
    67     return "_result)";
    68   return NULL;
    69 }
    71 #endif // CC_INTERP

mercurial