mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-18 01:54:47 +02:00
8266504: Remove leftovers from BarrierSetAssemblerC1
Reviewed-by: thartmann
This commit is contained in:
parent
6018336fc5
commit
1885c83aca
7 changed files with 4 additions and 42 deletions
|
@ -1793,15 +1793,6 @@ LIR_Opr LIRGenerator::access_atomic_add_at(DecoratorSet decorators, BasicType ty
|
|||
}
|
||||
}
|
||||
|
||||
LIR_Opr LIRGenerator::access_resolve(DecoratorSet decorators, LIR_Opr obj) {
|
||||
// Use stronger ACCESS_WRITE|ACCESS_READ by default.
|
||||
if ((decorators & (ACCESS_READ | ACCESS_WRITE)) == 0) {
|
||||
decorators |= ACCESS_READ | ACCESS_WRITE;
|
||||
}
|
||||
|
||||
return _barrier_set->resolve(this, decorators, obj);
|
||||
}
|
||||
|
||||
void LIRGenerator::do_LoadField(LoadField* x) {
|
||||
bool needs_patching = x->needs_patching();
|
||||
bool is_volatile = x->field()->is_volatile();
|
||||
|
@ -1879,12 +1870,11 @@ void LIRGenerator::do_NIOCheckIndex(Intrinsic* x) {
|
|||
if (GenerateRangeChecks) {
|
||||
CodeEmitInfo* info = state_for(x);
|
||||
CodeStub* stub = new RangeCheckStub(info, index.result());
|
||||
LIR_Opr buf_obj = access_resolve(IS_NOT_NULL | ACCESS_READ, buf.result());
|
||||
if (index.result()->is_constant()) {
|
||||
cmp_mem_int(lir_cond_belowEqual, buf_obj, java_nio_Buffer::limit_offset(), index.result()->as_jint(), info);
|
||||
cmp_mem_int(lir_cond_belowEqual, buf.result(), java_nio_Buffer::limit_offset(), index.result()->as_jint(), info);
|
||||
__ branch(lir_cond_belowEqual, stub);
|
||||
} else {
|
||||
cmp_reg_mem(lir_cond_aboveEqual, index.result(), buf_obj,
|
||||
cmp_reg_mem(lir_cond_aboveEqual, index.result(), buf.result(),
|
||||
java_nio_Buffer::limit_offset(), T_INT, info);
|
||||
__ branch(lir_cond_aboveEqual, stub);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue