< prev index next >

src/hotspot/share/code/location.hpp

Print this page




  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_CODE_LOCATION_HPP
  26 #define SHARE_VM_CODE_LOCATION_HPP
  27 
  28 #include "asm/assembler.hpp"
  29 #include "code/vmreg.hpp"
  30 #include "memory/allocation.hpp"
  31 
  32 // A Location describes a concrete machine variable location
  33 // (such as integer or floating point register or a stack-held
  34 // variable). Used when generating debug-information for nmethods.
  35 //
  36 // Encoding:
  37 //
  38 // bits (use low bits for best compression):
  39 //  Type:   [3..0]
  40 //  Where:  [4]
  41 //  Offset: [31..5]
  42 
  43 class Location {
  44   friend class VMStructs;
  45  public:
  46   enum Where {
  47     on_stack,
  48     in_register
  49   };
  50 




  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_CODE_LOCATION_HPP
  26 #define SHARE_VM_CODE_LOCATION_HPP
  27 
  28 #include "asm/assembler.hpp"
  29 #include "code/vmreg.hpp"

  30 
  31 // A Location describes a concrete machine variable location
  32 // (such as integer or floating point register or a stack-held
  33 // variable). Used when generating debug-information for nmethods.
  34 //
  35 // Encoding:
  36 //
  37 // bits (use low bits for best compression):
  38 //  Type:   [3..0]
  39 //  Where:  [4]
  40 //  Offset: [31..5]
  41 
  42 class Location {
  43   friend class VMStructs;
  44  public:
  45   enum Where {
  46     on_stack,
  47     in_register
  48   };
  49 


< prev index next >