From aafb81baf15938a39f3d2db299bff02189862eb6 Mon Sep 17 00:00:00 2001 From: Nicolas Geoffray Date: Wed, 29 Jun 2022 09:36:23 +0100 Subject: Make LoadMethod{Handle,Type} instruction throwing. Bug: 235576668 Test: 979-const-method-handle Change-Id: Ia0077ea6c050adc33d109195177b3fc61236a876 --- compiler/optimizing/nodes.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'compiler/optimizing/nodes.h') 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: -- cgit v1.2.3-59-g8ed1b