summaryrefslogtreecommitdiff
path: root/compiler/optimizing/nodes.h
diff options
context:
space:
mode:
author Nicolas Geoffray <ngeoffray@google.com> 2022-06-29 09:36:23 +0100
committer Nicolas Geoffray <ngeoffray@google.com> 2022-06-29 17:03:01 +0000
commitaafb81baf15938a39f3d2db299bff02189862eb6 (patch)
tree1218641d074c28326459e507131c73f12a8b2355 /compiler/optimizing/nodes.h
parentb2edcace3ce887b1a53c486cf68cc69d9c930e89 (diff)
Make LoadMethod{Handle,Type} instruction throwing.
Bug: 235576668 Test: 979-const-method-handle Change-Id: Ia0077ea6c050adc33d109195177b3fc61236a876
Diffstat (limited to 'compiler/optimizing/nodes.h')
-rw-r--r--compiler/optimizing/nodes.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/compiler/optimizing/nodes.h b/compiler/optimizing/nodes.h
index 0767bf5580..a923123e9f 100644
--- a/compiler/optimizing/nodes.h
+++ b/compiler/optimizing/nodes.h
@@ -7243,6 +7243,10 @@ class HLoadMethodHandle final : public HInstruction {
return SideEffects::CanTriggerGC();
}
+ bool CanThrow() const override { return true; }
+
+ bool NeedsEnvironment() const override { return true; }
+
DECLARE_INSTRUCTION(LoadMethodHandle);
protected:
@@ -7287,6 +7291,10 @@ class HLoadMethodType final : public HInstruction {
return SideEffects::CanTriggerGC();
}
+ bool CanThrow() const override { return true; }
+
+ bool NeedsEnvironment() const override { return true; }
+
DECLARE_INSTRUCTION(LoadMethodType);
protected: