equal
deleted
inserted
replaced
25 #ifndef SHARE_VM_OOPS_CPCACHEOOP_INLINE_HPP |
25 #ifndef SHARE_VM_OOPS_CPCACHEOOP_INLINE_HPP |
26 #define SHARE_VM_OOPS_CPCACHEOOP_INLINE_HPP |
26 #define SHARE_VM_OOPS_CPCACHEOOP_INLINE_HPP |
27 |
27 |
28 #include "oops/cpCache.hpp" |
28 #include "oops/cpCache.hpp" |
29 #include "oops/oopHandle.inline.hpp" |
29 #include "oops/oopHandle.inline.hpp" |
30 #include "runtime/orderAccess.inline.hpp" |
30 #include "runtime/orderAccess.hpp" |
31 |
31 |
32 inline int ConstantPoolCacheEntry::indices_ord() const { return OrderAccess::load_acquire(&_indices); } |
32 inline int ConstantPoolCacheEntry::indices_ord() const { return OrderAccess::load_acquire(&_indices); } |
33 |
33 |
34 inline Bytecodes::Code ConstantPoolCacheEntry::bytecode_1() const { |
34 inline Bytecodes::Code ConstantPoolCacheEntry::bytecode_1() const { |
35 return Bytecodes::cast((indices_ord() >> bytecode_1_shift) & bytecode_1_mask); |
35 return Bytecodes::cast((indices_ord() >> bytecode_1_shift) & bytecode_1_mask); |