summaryrefslogtreecommitdiff
path: root/compiler/optimizing/nodes.h
diff options
context:
space:
mode:
author Mythri Alle <mythria@google.com> 2021-12-02 15:26:31 +0000
committer Mythri Alle <mythria@google.com> 2021-12-03 08:13:15 +0000
commit9c970b906a0971ea286a2df349c4d157fc349639 (patch)
tree1be342f13a7225592f88c6edfaeb8c9f3095278c /compiler/optimizing/nodes.h
parentfa123f81f64cef8d865ed5ec95b2f44f80ec0d2d (diff)
Mark HMethodEntry/ExitHook as CanThrow
MethodEntry / Exit can throw so mark them as such. They already marked as causing side-effects and that they could trigger a GC so this may not be a correctness issue. Test: art/test.py Bug: 208587492 Change-Id: Ic741d9fd3c794da77c46104e859629d1afa48336
Diffstat (limited to 'compiler/optimizing/nodes.h')
-rw-r--r--compiler/optimizing/nodes.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/compiler/optimizing/nodes.h b/compiler/optimizing/nodes.h
index c50e04791d..c00ac4e5d9 100644
--- a/compiler/optimizing/nodes.h
+++ b/compiler/optimizing/nodes.h
@@ -3012,6 +3012,8 @@ class HMethodEntryHook : public HExpression<0> {
return true;
}
+ bool CanThrow() const override { return true; }
+
DECLARE_INSTRUCTION(MethodEntryHook);
protected:
@@ -3029,6 +3031,8 @@ class HMethodExitHook : public HExpression<1> {
return true;
}
+ bool CanThrow() const override { return true; }
+
DECLARE_INSTRUCTION(MethodExitHook);
protected: