|
35 | 35 | #include "compiler/disassembler.hpp" |
36 | 36 | #include "memory/resourceArea.hpp" |
37 | 37 | #include "nativeInst_aarch64.hpp" |
| 38 | +#include "oops/compressedOops.inline.hpp" |
38 | 39 | #include "oops/klass.inline.hpp" |
39 | | -#include "oops/oop.inline.hpp" |
| 40 | +#include "oops/oop.hpp" |
40 | 41 | #include "opto/compile.hpp" |
41 | 42 | #include "opto/intrinsicnode.hpp" |
42 | 43 | #include "opto/node.hpp" |
|
46 | 47 | #include "runtime/jniHandles.inline.hpp" |
47 | 48 | #include "runtime/sharedRuntime.hpp" |
48 | 49 | #include "runtime/thread.hpp" |
49 | | - |
50 | 50 | #if INCLUDE_ALL_GCS |
51 | 51 | #include "gc/g1/g1BarrierSet.hpp" |
52 | 52 | #include "gc/g1/g1CardTable.hpp" |
@@ -173,7 +173,7 @@ int MacroAssembler::patch_oop(address insn_addr, address o) { |
173 | 173 | // instruction. |
174 | 174 | if (Instruction_aarch64::extract(insn, 31, 21) == 0b11010010101) { |
175 | 175 | // Move narrow OOP |
176 | | - narrowOop n = oopDesc::encode_heap_oop((oop)o); |
| 176 | + narrowOop n = CompressedOops::encode((oop)o); |
177 | 177 | Instruction_aarch64::patch(insn_addr, 20, 5, n >> 16); |
178 | 178 | Instruction_aarch64::patch(insn_addr+4, 20, 5, n & 0xffff); |
179 | 179 | instructions = 2; |
@@ -3712,7 +3712,7 @@ void MacroAssembler::store_klass_gap(Register dst, Register src) { |
3712 | 3712 | } |
3713 | 3713 | } |
3714 | 3714 |
|
3715 | | -// Algorithm must match oop.inline.hpp encode_heap_oop. |
| 3715 | +// Algorithm must match CompressedOops::encode. |
3716 | 3716 | void MacroAssembler::encode_heap_oop(Register d, Register s) { |
3717 | 3717 | #ifdef ASSERT |
3718 | 3718 | verify_heapbase("MacroAssembler::encode_heap_oop: heap base corrupted?"); |
|
0 commit comments