< prev index next >
src/cpu/x86/vm/c1_CodeStubs_x86.cpp
Print this page
rev 12906 : [mq]: gc_interface
@@ -30,14 +30,10 @@
#include "c1/c1_Runtime1.hpp"
#include "nativeInst_x86.hpp"
#include "runtime/sharedRuntime.hpp"
#include "utilities/macros.hpp"
#include "vmreg_x86.inline.hpp"
-#if INCLUDE_ALL_GCS
-#include "gc/g1/g1SATBCardTableModRefBS.hpp"
-#endif // INCLUDE_ALL_GCS
-
#define __ ce->masm()->
float ConversionStub::float_zero = 0.0;
double ConversionStub::double_zero = 0.0;
@@ -518,47 +514,6 @@
#endif
__ jmp(_continuation);
}
-/////////////////////////////////////////////////////////////////////////////
-#if INCLUDE_ALL_GCS
-
-void G1PreBarrierStub::emit_code(LIR_Assembler* ce) {
- // At this point we know that marking is in progress.
- // If do_load() is true then we have to emit the
- // load of the previous value; otherwise it has already
- // been loaded into _pre_val.
-
- __ bind(_entry);
- assert(pre_val()->is_register(), "Precondition.");
-
- Register pre_val_reg = pre_val()->as_register();
-
- if (do_load()) {
- ce->mem2reg(addr(), pre_val(), T_OBJECT, patch_code(), info(), false /*wide*/, false /*unaligned*/);
- }
-
- __ cmpptr(pre_val_reg, (int32_t) NULL_WORD);
- __ jcc(Assembler::equal, _continuation);
- ce->store_parameter(pre_val()->as_register(), 0);
- __ call(RuntimeAddress(Runtime1::entry_for(Runtime1::g1_pre_barrier_slow_id)));
- __ jmp(_continuation);
-
-}
-
-void G1PostBarrierStub::emit_code(LIR_Assembler* ce) {
- __ bind(_entry);
- assert(addr()->is_register(), "Precondition.");
- assert(new_val()->is_register(), "Precondition.");
- Register new_val_reg = new_val()->as_register();
- __ cmpptr(new_val_reg, (int32_t) NULL_WORD);
- __ jcc(Assembler::equal, _continuation);
- ce->store_parameter(addr()->as_pointer_register(), 0);
- __ call(RuntimeAddress(Runtime1::entry_for(Runtime1::g1_post_barrier_slow_id)));
- __ jmp(_continuation);
-}
-
-#endif // INCLUDE_ALL_GCS
-/////////////////////////////////////////////////////////////////////////////
-
#undef __
< prev index next >