33 #include "runtime/biasedLocking.hpp" 34 #include "runtime/interfaceSupport.hpp" 35 #include "runtime/objectMonitor.hpp" 36 #include "runtime/os.hpp" 37 #include "runtime/sharedRuntime.hpp" 38 #include "runtime/stubRoutines.hpp" 39 #include "utilities/macros.hpp" 40 #if INCLUDE_ALL_GCS 41 #include "gc_implementation/g1/g1CollectedHeap.inline.hpp" 42 #include "gc_implementation/g1/g1SATBCardTableModRefBS.hpp" 43 #include "gc_implementation/g1/heapRegion.hpp" 44 #endif // INCLUDE_ALL_GCS 45 46 int AbstractAssembler::code_fill_byte() { 47 return 0; 48 } 49 50 #ifdef ASSERT 51 bool AbstractAssembler::pd_check_instruction_mark() { 52 ShouldNotCallThis(); 53 } 54 #endif 55 56 void Assembler::pd_patch_instruction(address branch, address target) { 57 ShouldNotCallThis(); 58 } 59 60 void MacroAssembler::align(int modulus) { 61 while (offset() % modulus != 0) 62 emit_int8(AbstractAssembler::code_fill_byte()); 63 } 64 65 void MacroAssembler::bang_stack_with_offset(int offset) { 66 ShouldNotCallThis(); 67 } 68 69 void MacroAssembler::advance(int bytes) { 70 code_section()->set_end(code_section()->end() + bytes); 71 } 72 73 RegisterOrConstant MacroAssembler::delayed_value_impl( 74 intptr_t* delayed_value_addr, Register tmpl, int offset) { 75 ShouldNotCallThis(); 76 } 77 78 void MacroAssembler::store_oop(jobject obj) { 79 code_section()->relocate(pc(), oop_Relocation::spec_for_immediate()); 80 emit_address((address) obj); 81 } 82 83 void MacroAssembler::store_Metadata(Metadata* md) { 84 code_section()->relocate(pc(), metadata_Relocation::spec_for_immediate()); 85 emit_address((address) md); 86 } 87 88 static void should_not_call() { 89 report_should_not_call(__FILE__, __LINE__); 90 } 91 92 address ShouldNotCallThisStub() { 93 return (address) should_not_call; 94 } 95 | 33 #include "runtime/biasedLocking.hpp" 34 #include "runtime/interfaceSupport.hpp" 35 #include "runtime/objectMonitor.hpp" 36 #include "runtime/os.hpp" 37 #include "runtime/sharedRuntime.hpp" 38 #include "runtime/stubRoutines.hpp" 39 #include "utilities/macros.hpp" 40 #if INCLUDE_ALL_GCS 41 #include "gc_implementation/g1/g1CollectedHeap.inline.hpp" 42 #include "gc_implementation/g1/g1SATBCardTableModRefBS.hpp" 43 #include "gc_implementation/g1/heapRegion.hpp" 44 #endif // INCLUDE_ALL_GCS 45 46 int AbstractAssembler::code_fill_byte() { 47 return 0; 48 } 49 50 #ifdef ASSERT 51 bool AbstractAssembler::pd_check_instruction_mark() { 52 ShouldNotCallThis(); 53 return false; 54 } 55 #endif 56 57 void Assembler::pd_patch_instruction(address branch, address target) { 58 ShouldNotCallThis(); 59 } 60 61 void MacroAssembler::align(int modulus) { 62 while (offset() % modulus != 0) 63 emit_int8(AbstractAssembler::code_fill_byte()); 64 } 65 66 void MacroAssembler::bang_stack_with_offset(int offset) { 67 ShouldNotCallThis(); 68 } 69 70 void MacroAssembler::advance(int bytes) { 71 code_section()->set_end(code_section()->end() + bytes); 72 } 73 74 RegisterOrConstant MacroAssembler::delayed_value_impl( 75 intptr_t* delayed_value_addr, Register tmpl, int offset) { 76 ShouldNotCallThis(); 77 return RegisterOrConstant(); 78 } 79 80 void MacroAssembler::store_oop(jobject obj) { 81 code_section()->relocate(pc(), oop_Relocation::spec_for_immediate()); 82 emit_address((address) obj); 83 } 84 85 void MacroAssembler::store_Metadata(Metadata* md) { 86 code_section()->relocate(pc(), metadata_Relocation::spec_for_immediate()); 87 emit_address((address) md); 88 } 89 90 static void should_not_call() { 91 report_should_not_call(__FILE__, __LINE__); 92 } 93 94 address ShouldNotCallThisStub() { 95 return (address) should_not_call; 96 } 97 |