8343824: Remove unused InstructionFlags in C1
Reviewed-by: kvn, dlong
This commit is contained in:
parent
5b2f7f3b30
commit
ae6bb3cd29
@ -346,11 +346,8 @@ class Instruction: public CompilationResourceObj {
|
|||||||
NeedsNullCheckFlag = 0,
|
NeedsNullCheckFlag = 0,
|
||||||
CanTrapFlag,
|
CanTrapFlag,
|
||||||
DirectCompareFlag,
|
DirectCompareFlag,
|
||||||
IsEliminatedFlag,
|
|
||||||
IsSafepointFlag,
|
IsSafepointFlag,
|
||||||
IsStaticFlag,
|
IsStaticFlag,
|
||||||
NeedsStoreCheckFlag,
|
|
||||||
NeedsWriteBarrierFlag,
|
|
||||||
PreservesStateFlag,
|
PreservesStateFlag,
|
||||||
TargetIsFinalFlag,
|
TargetIsFinalFlag,
|
||||||
TargetIsLoadedFlag,
|
TargetIsLoadedFlag,
|
||||||
@ -361,7 +358,6 @@ class Instruction: public CompilationResourceObj {
|
|||||||
ProfileMDOFlag,
|
ProfileMDOFlag,
|
||||||
IsLinkedInBlockFlag,
|
IsLinkedInBlockFlag,
|
||||||
NeedsRangeCheckFlag,
|
NeedsRangeCheckFlag,
|
||||||
InWorkListFlag,
|
|
||||||
DeoptimizeOnException,
|
DeoptimizeOnException,
|
||||||
KillsMemoryFlag,
|
KillsMemoryFlag,
|
||||||
OmitChecksFlag,
|
OmitChecksFlag,
|
||||||
@ -840,14 +836,12 @@ LEAF(StoreField, AccessField)
|
|||||||
: AccessField(obj, offset, field, is_static, state_before, needs_patching)
|
: AccessField(obj, offset, field, is_static, state_before, needs_patching)
|
||||||
, _value(value)
|
, _value(value)
|
||||||
{
|
{
|
||||||
set_flag(NeedsWriteBarrierFlag, as_ValueType(field_type())->is_object());
|
|
||||||
ASSERT_VALUES
|
ASSERT_VALUES
|
||||||
pin();
|
pin();
|
||||||
}
|
}
|
||||||
|
|
||||||
// accessors
|
// accessors
|
||||||
Value value() const { return _value; }
|
Value value() const { return _value; }
|
||||||
bool needs_write_barrier() const { return check_flag(NeedsWriteBarrierFlag); }
|
|
||||||
|
|
||||||
// generic
|
// generic
|
||||||
virtual void input_values_do(ValueVisitor* f) { AccessField::input_values_do(f); f->visit(&_value); }
|
virtual void input_values_do(ValueVisitor* f) { AccessField::input_values_do(f); f->visit(&_value); }
|
||||||
@ -974,16 +968,12 @@ LEAF(StoreIndexed, AccessIndexed)
|
|||||||
: AccessIndexed(array, index, length, elt_type, state_before, mismatched)
|
: AccessIndexed(array, index, length, elt_type, state_before, mismatched)
|
||||||
, _value(value), _profiled_method(nullptr), _profiled_bci(0), _check_boolean(check_boolean)
|
, _value(value), _profiled_method(nullptr), _profiled_bci(0), _check_boolean(check_boolean)
|
||||||
{
|
{
|
||||||
set_flag(NeedsWriteBarrierFlag, (as_ValueType(elt_type)->is_object()));
|
|
||||||
set_flag(NeedsStoreCheckFlag, (as_ValueType(elt_type)->is_object()));
|
|
||||||
ASSERT_VALUES
|
ASSERT_VALUES
|
||||||
pin();
|
pin();
|
||||||
}
|
}
|
||||||
|
|
||||||
// accessors
|
// accessors
|
||||||
Value value() const { return _value; }
|
Value value() const { return _value; }
|
||||||
bool needs_write_barrier() const { return check_flag(NeedsWriteBarrierFlag); }
|
|
||||||
bool needs_store_check() const { return check_flag(NeedsStoreCheckFlag); }
|
|
||||||
bool check_boolean() const { return _check_boolean; }
|
bool check_boolean() const { return _check_boolean; }
|
||||||
// Helpers for MethodData* profiling
|
// Helpers for MethodData* profiling
|
||||||
void set_should_profile(bool value) { set_flag(ProfileMDOFlag, value); }
|
void set_should_profile(bool value) { set_flag(ProfileMDOFlag, value); }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user