25 #include "precompiled.hpp" 26 #include "asm/assembler.hpp" 27 #include "asm/assembler.inline.hpp" 28 #include "ci/ciEnv.hpp" 29 #include "gc/shared/cardTableBarrierSet.hpp" 30 #include "gc/shared/collectedHeap.inline.hpp" 31 #include "interpreter/interpreter.hpp" 32 #include "interpreter/interpreterRuntime.hpp" 33 #include "interpreter/templateInterpreterGenerator.hpp" 34 #include "memory/resourceArea.hpp" 35 #include "prims/jvm_misc.hpp" 36 #include "prims/methodHandles.hpp" 37 #include "runtime/biasedLocking.hpp" 38 #include "runtime/interfaceSupport.inline.hpp" 39 #include "runtime/objectMonitor.hpp" 40 #include "runtime/os.hpp" 41 #include "runtime/sharedRuntime.hpp" 42 #include "runtime/stubRoutines.hpp" 43 #include "utilities/hashtable.hpp" 44 #include "utilities/macros.hpp" 45 #if INCLUDE_ALL_GCS 46 #include "gc/g1/g1BarrierSet.hpp" 47 #include "gc/g1/heapRegion.hpp" 48 #endif // INCLUDE_ALL_GCS 49 50 #ifdef COMPILER2 51 // Convert the raw encoding form into the form expected by the 52 // constructor for Address. 53 Address Address::make_raw(int base, int index, int scale, int disp, relocInfo::relocType disp_reloc) { 54 RelocationHolder rspec; 55 if (disp_reloc != relocInfo::none) { 56 rspec = Relocation::spec_simple(disp_reloc); 57 } 58 59 Register rindex = as_Register(index); 60 if (rindex != PC) { 61 assert(disp == 0, "unsupported"); 62 Address madr(as_Register(base), rindex, lsl, scale); 63 madr._rspec = rspec; 64 return madr; 65 } else { 66 assert(scale == 0, "not supported"); 67 Address madr(as_Register(base), disp); 68 madr._rspec = rspec; | 25 #include "precompiled.hpp" 26 #include "asm/assembler.hpp" 27 #include "asm/assembler.inline.hpp" 28 #include "ci/ciEnv.hpp" 29 #include "gc/shared/cardTableBarrierSet.hpp" 30 #include "gc/shared/collectedHeap.inline.hpp" 31 #include "interpreter/interpreter.hpp" 32 #include "interpreter/interpreterRuntime.hpp" 33 #include "interpreter/templateInterpreterGenerator.hpp" 34 #include "memory/resourceArea.hpp" 35 #include "prims/jvm_misc.hpp" 36 #include "prims/methodHandles.hpp" 37 #include "runtime/biasedLocking.hpp" 38 #include "runtime/interfaceSupport.inline.hpp" 39 #include "runtime/objectMonitor.hpp" 40 #include "runtime/os.hpp" 41 #include "runtime/sharedRuntime.hpp" 42 #include "runtime/stubRoutines.hpp" 43 #include "utilities/hashtable.hpp" 44 #include "utilities/macros.hpp" 45 46 #ifdef COMPILER2 47 // Convert the raw encoding form into the form expected by the 48 // constructor for Address. 49 Address Address::make_raw(int base, int index, int scale, int disp, relocInfo::relocType disp_reloc) { 50 RelocationHolder rspec; 51 if (disp_reloc != relocInfo::none) { 52 rspec = Relocation::spec_simple(disp_reloc); 53 } 54 55 Register rindex = as_Register(index); 56 if (rindex != PC) { 57 assert(disp == 0, "unsupported"); 58 Address madr(as_Register(base), rindex, lsl, scale); 59 madr._rspec = rspec; 60 return madr; 61 } else { 62 assert(scale == 0, "not supported"); 63 Address madr(as_Register(base), disp); 64 madr._rspec = rspec; |