diff options
author | 2016-01-14 18:29:57 +0000 | |
---|---|---|
committer | 2016-01-14 18:29:57 +0000 | |
commit | 15db4dcfcc17dfe6c41d3c7b26355ccfa2504f4e (patch) | |
tree | f3a03a66775378c0ea0e4d0dfeb64dacb42ae899 /compiler/optimizing/nodes.h | |
parent | be55805f72329732fefeca72c596452912ab6722 (diff) | |
parent | 780aeced2a8ef918901d8f450864de934f79c555 (diff) |
Merge "Update `ValidateInvokeRuntime()` and HDivZeroCheck."
Diffstat (limited to 'compiler/optimizing/nodes.h')
-rw-r--r-- | compiler/optimizing/nodes.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/compiler/optimizing/nodes.h b/compiler/optimizing/nodes.h index b65d0f5750..fdb14fcb07 100644 --- a/compiler/optimizing/nodes.h +++ b/compiler/optimizing/nodes.h @@ -4010,8 +4010,10 @@ class HRem : public HBinaryOperation { class HDivZeroCheck : public HExpression<1> { public: + // `HDivZeroCheck` can trigger GC, as it may call the `ArithmeticException` + // constructor. HDivZeroCheck(HInstruction* value, uint32_t dex_pc) - : HExpression(value->GetType(), SideEffects::None(), dex_pc) { + : HExpression(value->GetType(), SideEffects::CanTriggerGC(), dex_pc) { SetRawInputAt(0, value); } |