diff options
author | 2020-08-27 12:44:25 +0000 | |
---|---|---|
committer | 2020-08-28 11:18:16 +0000 | |
commit | 49a19f38c35605e675eee271691ed465802859bf (patch) | |
tree | cc65dba30611c13bd3c6a6a7e1331541015ad013 /compiler/optimizing/instruction_builder.h | |
parent | 0280e5d21e387812b7a1719d75ef2e3a94280c60 (diff) |
X86: Replace VarHandle.get() return type check with CheckCast node
This commit removes the varType check against the callsite return type.
The check is done after by an added HCheckCast node.
Test: art/test.py --host --32 -r -t 712-varhandle-invocations
Bug: 65872996
Change-Id: If4d966e0087da28349390474188e10dfb6f63832
Diffstat (limited to 'compiler/optimizing/instruction_builder.h')
-rw-r--r-- | compiler/optimizing/instruction_builder.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/compiler/optimizing/instruction_builder.h b/compiler/optimizing/instruction_builder.h index 04f2a22301..e75fa5234c 100644 --- a/compiler/optimizing/instruction_builder.h +++ b/compiler/optimizing/instruction_builder.h @@ -203,6 +203,10 @@ class HInstructionBuilder : public ValueObject { uint32_t dex_pc); // Builds a `HInstanceOf`, or a `HCheckCast` instruction. + void BuildTypeCheck(bool is_instance_of, + HInstruction* object, + dex::TypeIndex type_index, + uint32_t dex_pc); void BuildTypeCheck(const Instruction& instruction, uint8_t destination, uint8_t reference, |