• Home
  • Raw
  • Download

Lines Matching refs:SideEffects

1708 class SideEffects : public ValueObject {
1710 SideEffects() : flags_(0) {} in SideEffects() function
1712 static SideEffects None() { in None()
1713 return SideEffects(0); in None()
1716 static SideEffects All() { in All()
1717 return SideEffects(kAllChangeBits | kAllDependOnBits); in All()
1720 static SideEffects AllChanges() { in AllChanges()
1721 return SideEffects(kAllChangeBits); in AllChanges()
1724 static SideEffects AllDependencies() { in AllDependencies()
1725 return SideEffects(kAllDependOnBits); in AllDependencies()
1728 static SideEffects AllExceptGCDependency() { in AllExceptGCDependency()
1729 return AllWritesAndReads().Union(SideEffects::CanTriggerGC()); in AllExceptGCDependency()
1732 static SideEffects AllWritesAndReads() { in AllWritesAndReads()
1733 return SideEffects(kAllWrites | kAllReads); in AllWritesAndReads()
1736 static SideEffects AllWrites() { in AllWrites()
1737 return SideEffects(kAllWrites); in AllWrites()
1740 static SideEffects AllReads() { in AllReads()
1741 return SideEffects(kAllReads); in AllReads()
1744 static SideEffects FieldWriteOfType(DataType::Type type, bool is_volatile) { in FieldWriteOfType()
1747 : SideEffects(TypeFlag(type, kFieldWriteOffset)); in FieldWriteOfType()
1750 static SideEffects ArrayWriteOfType(DataType::Type type) { in ArrayWriteOfType()
1751 return SideEffects(TypeFlag(type, kArrayWriteOffset)); in ArrayWriteOfType()
1754 static SideEffects FieldReadOfType(DataType::Type type, bool is_volatile) { in FieldReadOfType()
1757 : SideEffects(TypeFlag(type, kFieldReadOffset)); in FieldReadOfType()
1760 static SideEffects ArrayReadOfType(DataType::Type type) { in ArrayReadOfType()
1761 return SideEffects(TypeFlag(type, kArrayReadOffset)); in ArrayReadOfType()
1768 static SideEffects CanTriggerGC() { in CanTriggerGC()
1769 return SideEffects(1ULL << kCanTriggerGCBit); in CanTriggerGC()
1775 static SideEffects DependsOnGC() { in DependsOnGC()
1776 return SideEffects(1ULL << kDependsOnGCBit); in DependsOnGC()
1780 SideEffects Union(SideEffects other) const { in Union()
1781 return SideEffects(flags_ | other.flags_); in Union()
1784 SideEffects Exclusion(SideEffects other) const { in Exclusion()
1785 return SideEffects(flags_ & ~other.flags_); in Exclusion()
1788 void Add(SideEffects other) { in Add()
1792 bool Includes(SideEffects other) const { in Includes()
1830 bool MayDependOn(SideEffects other) const { in MayDependOn()
1863 bool Equals(const SideEffects& other) const { return flags_ == other.flags_; } in Equals()
1918 explicit SideEffects(uint64_t flags) : flags_(flags) {} in SideEffects() function
2041 HInstruction(InstructionKind kind, SideEffects side_effects, uint32_t dex_pc) in HInstruction()
2044 HInstruction(InstructionKind kind, DataType::Type type, SideEffects side_effects, uint32_t dex_pc) in HInstruction()
2384 SideEffects GetSideEffects() const { return side_effects_; } in GetSideEffects()
2385 void SetSideEffects(SideEffects other) { side_effects_ = other; } in SetSideEffects()
2386 void AddSideEffects(SideEffects other) { side_effects_.Add(other); } in AddSideEffects()
2580 SideEffects side_effects_;
2680 SideEffects side_effects, in HVariableInputSizeInstruction()
2689 SideEffects side_effects, in HVariableInputSizeInstruction()
2705 HExpression<N>(InstructionKind kind, SideEffects side_effects, uint32_t dex_pc)
2709 SideEffects side_effects,
2753 : HExpression(kReturnVoid, SideEffects::None(), dex_pc) { in HExpression()
2769 : HExpression(kReturn, SideEffects::None(), dex_pc) { in HExpression()
2791 SideEffects::None(), in HVariableInputSizeInstruction()
2886 : HExpression(kExit, SideEffects::None(), dex_pc) { in HExpression()
2901 : HExpression(kGoto, SideEffects::None(), dex_pc) { in HExpression()
2920 : HExpression(kind, type, SideEffects::None(), dex_pc) { in HExpression()
3171 : HExpression(kIf, SideEffects::None(), dex_pc) { in HExpression()
3212 (kind == BoundaryKind::kExit) ? SideEffects::CanTriggerGC()
3213 : SideEffects::None(),
3274 SideEffects::All(), in HDeoptimize()
3299 SideEffects::CanTriggerGC(), in HDeoptimize()
3365 SideEffects::None(), in HShouldDeoptimizeFlag()
3390 : HExpression(kCurrentMethod, type, SideEffects::None(), dex_pc) { in HExpression()
3413 : HExpression(kClassTableGet, type, SideEffects::None(), dex_pc), in HClassTableGet()
3456 : HExpression(kPackedSwitch, SideEffects::None(), dex_pc), in HExpression()
3490 : HExpression(kind, result_type, SideEffects::None(), dex_pc) { in HExpression()
3528 SideEffects side_effects = SideEffects::None(),
3637 SideEffects::None(), in HBinaryOperation()
4198 static SideEffects SideEffectsForArchRuntimeCalls(DataType::Type type ATTRIBUTE_UNUSED) { in SideEffectsForArchRuntimeCalls()
4200 return SideEffects::None(); in SideEffectsForArchRuntimeCalls()
4234 SideEffects::CanTriggerGC(), in HNewInstance()
4396 SideEffects::AllExceptGCDependency(), // Assume write/read on all fields/arrays. in HInvoke()
4904 : HExpression(kNewArray, DataType::Type::kReference, SideEffects::CanTriggerGC(), dex_pc) { in HNewArray()
4954 : HBinaryOperation(kAdd, result_type, left, right, SideEffects::None(), dex_pc) { in HBinaryOperation()
4990 : HBinaryOperation(kSub, result_type, left, right, SideEffects::None(), dex_pc) { in HBinaryOperation()
5024 : HBinaryOperation(kMul, result_type, left, right, SideEffects::None(), dex_pc) { in HBinaryOperation()
5060 : HBinaryOperation(kDiv, result_type, left, right, SideEffects::None(), dex_pc) { in HDiv()
5108 : HBinaryOperation(kRem, result_type, left, right, SideEffects::None(), dex_pc) { in HRem()
5156 : HBinaryOperation(kMin, result_type, left, right, SideEffects::None(), dex_pc) {} in HMin()
5191 : HBinaryOperation(kMax, result_type, left, right, SideEffects::None(), dex_pc) {} in HMax()
5267 : HExpression(kDivZeroCheck, value->GetType(), SideEffects::None(), dex_pc) { in HDivZeroCheck()
5293 : HBinaryOperation(kShl, result_type, value, distance, SideEffects::None(), dex_pc) { in HBinaryOperation()
5339 : HBinaryOperation(kShr, result_type, value, distance, SideEffects::None(), dex_pc) { in HBinaryOperation()
5385 : HBinaryOperation(kUShr, result_type, value, distance, SideEffects::None(), dex_pc) { in HBinaryOperation()
5433 : HBinaryOperation(kAnd, result_type, left, right, SideEffects::None(), dex_pc) { in HBinaryOperation()
5471 : HBinaryOperation(kOr, result_type, left, right, SideEffects::None(), dex_pc) { in HBinaryOperation()
5509 : HBinaryOperation(kXor, result_type, left, right, SideEffects::None(), dex_pc) { in HBinaryOperation()
5601 : HExpression(kParameterValue, parameter_type, SideEffects::None(), kNoDexPc), in HExpression()
5713 : HExpression(kTypeConversion, result_type, SideEffects::None(), dex_pc) { in HExpression()
5751 : HExpression(kNullCheck, value->GetType(), SideEffects::None(), dex_pc) { in HNullCheck()
5823 SideEffects::FieldReadOfType(field_type, is_volatile), in HInstanceFieldGet()
5885 SideEffects::FieldWriteOfType(field_type, is_volatile), in HInstanceFieldSet()
5936 SideEffects::ArrayReadOfType(type), in HArrayGet()
5944 SideEffects side_effects, in HArrayGet()
6038 SideEffects side_effects, in HArraySet()
6106 static SideEffects ComputeSideEffects(DataType::Type type) { in ComputeSideEffects()
6107 return SideEffects::ArrayWriteOfType(type).Union(SideEffectsForArchRuntimeCalls(type)); in ComputeSideEffects()
6110 static SideEffects SideEffectsForArchRuntimeCalls(DataType::Type value_type) { in SideEffectsForArchRuntimeCalls()
6111 return (value_type == DataType::Type::kReference) ? SideEffects::CanTriggerGC() in SideEffectsForArchRuntimeCalls()
6112 : SideEffects::None(); in SideEffectsForArchRuntimeCalls()
6140 : HExpression(kArrayLength, DataType::Type::kInt32, SideEffects::None(), dex_pc) { in HExpression()
6184 : HExpression(kBoundsCheck, index->GetType(), SideEffects::None(), dex_pc) {
6220 : HExpression(kSuspendCheck, SideEffects::CanTriggerGC(), dex_pc), in HExpression()
6249 : HExpression<0>(kNativeDebugInfo, SideEffects::None(), dex_pc) { in HNativeDebugInfo()
6399 static SideEffects SideEffectsForArchRuntimeCalls() { in SideEffectsForArchRuntimeCalls()
6400 return SideEffects::CanTriggerGC(); in SideEffectsForArchRuntimeCalls()
6486 SetSideEffects(SideEffects::None()); in SetLoadKind()
6603 static SideEffects SideEffectsForArchRuntimeCalls() { in SideEffectsForArchRuntimeCalls()
6604 return SideEffects::CanTriggerGC(); in SideEffectsForArchRuntimeCalls()
6653 SetSideEffects(SideEffects::None()); in SetLoadKind()
6699 static SideEffects SideEffectsForArchRuntimeCalls() { in SideEffectsForArchRuntimeCalls()
6700 return SideEffects::CanTriggerGC(); in SideEffectsForArchRuntimeCalls()
6743 static SideEffects SideEffectsForArchRuntimeCalls() { in SideEffectsForArchRuntimeCalls()
6744 return SideEffects::CanTriggerGC(); in SideEffectsForArchRuntimeCalls()
6769 SideEffects::AllExceptGCDependency(), // Assume write/read on all fields/arrays. in HClinitCheck()
6811 SideEffects::FieldReadOfType(field_type, is_volatile), in HStaticFieldGet()
6870 SideEffects::FieldWriteOfType(field_type, is_volatile), in HStaticFieldSet()
6919 SideEffects::AllReads().Union(SideEffects::CanTriggerGC()), in HStringBuilderAppend()
6967 SideEffects::AllExceptGCDependency(), in HUnresolvedInstanceFieldGet()
6996 : HExpression(kUnresolvedInstanceFieldSet, SideEffects::AllExceptGCDependency(), dex_pc), in HUnresolvedInstanceFieldSet()
7036 SideEffects::AllExceptGCDependency(), in HUnresolvedStaticFieldGet()
7063 : HExpression(kUnresolvedStaticFieldSet, SideEffects::AllExceptGCDependency(), dex_pc), in HUnresolvedStaticFieldSet()
7099 : HExpression(kLoadException, DataType::Type::kReference, SideEffects::None(), dex_pc) { in HExpression()
7115 : HExpression(kClearException, SideEffects::AllWrites(), dex_pc) { in HExpression()
7127 : HExpression(kThrow, SideEffects::CanTriggerGC(), dex_pc) { in HThrow()
7177 SideEffects side_effects) in HTypeCheckInstruction()
7305 static SideEffects SideEffectsForArchRuntimeCalls(TypeCheckKind check_kind) { in SideEffectsForArchRuntimeCalls()
7306 return CanCallRuntime(check_kind) ? SideEffects::CanTriggerGC() : SideEffects::None(); in SideEffectsForArchRuntimeCalls()
7318 : HExpression(kBoundType, DataType::Type::kReference, SideEffects::None(), dex_pc), in HExpression()
7383 SideEffects::CanTriggerGC()) {} in HCheckCast()
7429 SideEffects::AllWritesAndReads(), // Assume write/read on all fields/arrays. in HExpression()
7550 SideEffects::AllReads(), in HConstructorFence()
7617 SideEffects::AllExceptGCDependency(), // Assume write/read on all fields/arrays. in HMonitorOperation()
7658 : HExpression(kSelect, HPhi::ToPhiType(true_value->GetType()), SideEffects::None(), dex_pc) { in HSelect()
7771 : HExpression(kParallelMove, SideEffects::None(), dex_pc), in HExpression()
7835 SideEffects::DependsOnGC(), in HIntermediateAddress()