< prev index next >

src/share/vm/runtime/registerMap.hpp

Print this page
rev 11647 : 8161258: Simplify including platform files.
Summary: Include patform files with macros cpu_header() etc. Do various cleanups of macro usages. Remove _64/_32 from adlc generated files and platform .hpp files. Merge stubRoutines_x86*.hpp. Remove empty mutex_<os>* files.
Reviewed-by: dholmes, coleenp, kbarrett
   1 /*
   2  * Copyright (c) 2002, 2014, 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 
  25 #ifndef SHARE_VM_RUNTIME_REGISTERMAP_HPP
  26 #define SHARE_VM_RUNTIME_REGISTERMAP_HPP
  27 
  28 #include "code/vmreg.hpp"
  29 #include "utilities/globalDefinitions.hpp"

  30 
  31 class JavaThread;
  32 
  33 //
  34 // RegisterMap
  35 //
  36 // A companion structure used for stack traversal. The RegisterMap contains
  37 // misc. information needed in order to do correct stack traversal of stack
  38 // frames.  Hence, it must always be passed in as an argument to
  39 // frame::sender(RegisterMap*).
  40 //
  41 // In particular,
  42 //   1) It provides access to the thread for which the stack belongs.  The
  43 //      thread object is needed in order to get sender of a deoptimized frame.
  44 //
  45 //   2) It is used to pass information from a callee frame to its caller
  46 //      frame about how the frame should be traversed.  This is used to let
  47 //      the caller frame take care of calling oops-do of out-going
  48 //      arguments, when the callee frame is not instantiated yet.  This
  49 //      happens, e.g., when a compiled frame calls into


 103     assert(0 <= index && index < location_valid_size, "range check");
 104     assert(_update_map, "updating map that does not need updating");
 105     _location[reg->value()] = (intptr_t*) loc;
 106     _location_valid[index] |= ((LocationValidType)1 << (reg->value() % location_valid_type_size));
 107     check_location_valid();
 108   }
 109 
 110   // Called by an entry frame.
 111   void clear();
 112 
 113   bool include_argument_oops() const      { return _include_argument_oops; }
 114   void set_include_argument_oops(bool f)  { _include_argument_oops = f; }
 115 
 116   JavaThread *thread() const { return _thread; }
 117   bool update_map()    const { return _update_map; }
 118 
 119   void print_on(outputStream* st) const;
 120   void print() const;
 121 
 122   // the following contains the definition of pd_xxx methods
 123 #ifdef TARGET_ARCH_x86
 124 # include "registerMap_x86.hpp"
 125 #endif
 126 #ifdef TARGET_ARCH_sparc
 127 # include "registerMap_sparc.hpp"
 128 #endif
 129 #ifdef TARGET_ARCH_zero
 130 # include "registerMap_zero.hpp"
 131 #endif
 132 #ifdef TARGET_ARCH_arm
 133 # include "registerMap_arm.hpp"
 134 #endif
 135 #ifdef TARGET_ARCH_ppc
 136 # include "registerMap_ppc.hpp"
 137 #endif
 138 #ifdef TARGET_ARCH_aarch64
 139 # include "registerMap_aarch64.hpp"
 140 #endif
 141 
 142 };
 143 
 144 #endif // SHARE_VM_RUNTIME_REGISTERMAP_HPP
   1 /*
   2  * Copyright (c) 2002, 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 
  25 #ifndef SHARE_VM_RUNTIME_REGISTERMAP_HPP
  26 #define SHARE_VM_RUNTIME_REGISTERMAP_HPP
  27 
  28 #include "code/vmreg.hpp"
  29 #include "utilities/globalDefinitions.hpp"
  30 #include "utilities/macros.hpp"
  31 
  32 class JavaThread;
  33 
  34 //
  35 // RegisterMap
  36 //
  37 // A companion structure used for stack traversal. The RegisterMap contains
  38 // misc. information needed in order to do correct stack traversal of stack
  39 // frames.  Hence, it must always be passed in as an argument to
  40 // frame::sender(RegisterMap*).
  41 //
  42 // In particular,
  43 //   1) It provides access to the thread for which the stack belongs.  The
  44 //      thread object is needed in order to get sender of a deoptimized frame.
  45 //
  46 //   2) It is used to pass information from a callee frame to its caller
  47 //      frame about how the frame should be traversed.  This is used to let
  48 //      the caller frame take care of calling oops-do of out-going
  49 //      arguments, when the callee frame is not instantiated yet.  This
  50 //      happens, e.g., when a compiled frame calls into


 104     assert(0 <= index && index < location_valid_size, "range check");
 105     assert(_update_map, "updating map that does not need updating");
 106     _location[reg->value()] = (intptr_t*) loc;
 107     _location_valid[index] |= ((LocationValidType)1 << (reg->value() % location_valid_type_size));
 108     check_location_valid();
 109   }
 110 
 111   // Called by an entry frame.
 112   void clear();
 113 
 114   bool include_argument_oops() const      { return _include_argument_oops; }
 115   void set_include_argument_oops(bool f)  { _include_argument_oops = f; }
 116 
 117   JavaThread *thread() const { return _thread; }
 118   bool update_map()    const { return _update_map; }
 119 
 120   void print_on(outputStream* st) const;
 121   void print() const;
 122 
 123   // the following contains the definition of pd_xxx methods
 124 #include CPU_HEADER(registerMap)

















 125 
 126 };
 127 
 128 #endif // SHARE_VM_RUNTIME_REGISTERMAP_HPP
< prev index next >