Mercurial > hg > graal-compiler
comparison src/share/vm/compiler/oopMap.hpp @ 8151:b8f261ba79c6
Minimize diff to plain HotSpot version.
author | Thomas Wuerthinger <thomas.wuerthinger@oracle.com> |
---|---|
date | Thu, 07 Mar 2013 21:00:29 +0100 |
parents | 06f017f7daa7 |
children | 82ff6c8c8f6e |
comparison
equal
deleted
inserted
replaced
8150:b66f831ac5ab | 8151:b8f261ba79c6 |
---|---|
45 class DerivedPointerEntry; | 45 class DerivedPointerEntry; |
46 | 46 |
47 class OopMapValue: public StackObj { | 47 class OopMapValue: public StackObj { |
48 friend class VMStructs; | 48 friend class VMStructs; |
49 private: | 49 private: |
50 int _value; | 50 short _value; |
51 int value() const { return _value; } | 51 int value() const { return _value; } |
52 void set_value(int value) { _value = value; } | 52 void set_value(int value) { _value = value; } |
53 short _content_reg; | 53 short _content_reg; |
54 | 54 |
55 public: | 55 public: |
56 // Constants | 56 // Constants |
57 enum { type_bits = 5, | 57 enum { type_bits = 5, |
58 register_bits = BitsPerJavaInteger - type_bits }; | 58 register_bits = BitsPerShort - type_bits }; |
59 | 59 |
60 enum { type_shift = 0, | 60 enum { type_shift = 0, |
61 register_shift = type_bits }; | 61 register_shift = type_bits }; |
62 | 62 |
63 enum { type_mask = right_n_bits(type_bits), | 63 enum { type_mask = right_n_bits(type_bits), |