diff options
author | 2021-02-01 09:31:02 +0000 | |
---|---|---|
committer | 2021-02-05 10:48:17 +0000 | |
commit | ac27ac01490f53f9e2413dc9b66fbb2880904c96 (patch) | |
tree | 271018e1ef33667bee8d57c40ffa3f4d9f8cf930 /compiler/optimizing/nodes.h | |
parent | 26bf47a60064fcc42e1b5e7b4b41deb8312d7330 (diff) |
Implement Reference.refersTo() intrinsic.
Test: Added tests to 122-npe and 160-read-barrier-stress
Test: m test-art-host-gtest
Test: testrunner.py --host --optimizing
Test: run-gtests.sh
Test: testrunner.py --target --optimizing
Bug: 172573708
Change-Id: I8342510565289058df218d3249ffac1eb993ca4f
Diffstat (limited to 'compiler/optimizing/nodes.h')
-rw-r--r-- | compiler/optimizing/nodes.h | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/compiler/optimizing/nodes.h b/compiler/optimizing/nodes.h index 6381b2c356..c47ca3bbb5 100644 --- a/compiler/optimizing/nodes.h +++ b/compiler/optimizing/nodes.h @@ -5112,10 +5112,7 @@ class HInvokeVirtual final : public HInvoke { } } - bool CanDoImplicitNullCheckOn(HInstruction* obj) const override { - // TODO: Add implicit null checks in intrinsics. - return (obj == InputAt(0)) && !IsIntrinsic(); - } + bool CanDoImplicitNullCheckOn(HInstruction* obj) const override; uint32_t GetVTableIndex() const { return vtable_index_; } |