summaryrefslogtreecommitdiff
path: root/compiler/optimizing/nodes.h
diff options
context:
space:
mode:
author Roland Levillain <rpl@google.com> 2016-02-11 19:07:30 +0000
committer Roland Levillain <rpl@google.com> 2016-02-11 19:07:30 +0000
commit86503785cd6414b8692e5c83cadaa2972b6a099b (patch)
treea242e28bd3605dce65c9f5e94b5fc13f06f07d19 /compiler/optimizing/nodes.h
parentbe89a6f1d9e41b154be3fe1da97cedb6964fbd35 (diff)
Fix x86-64 Baker's read barrier fast path for CheckCast.
Use an art::x86_64::Label instead of an art::x86_64::NearLabel as end label when emitting code for a HCheckCast instruction, as the range of the latter may sometimes be too short when Baker's read barriers are enabled. Bug: 12687968 Change-Id: Ia9742dce65be7d4fb104688f3c4717b65df1fb54
Diffstat (limited to 'compiler/optimizing/nodes.h')
-rw-r--r--compiler/optimizing/nodes.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler/optimizing/nodes.h b/compiler/optimizing/nodes.h
index daec096f3e..7f463a36e9 100644
--- a/compiler/optimizing/nodes.h
+++ b/compiler/optimizing/nodes.h
@@ -5451,6 +5451,8 @@ enum class TypeCheckKind {
kArrayCheck // No optimization yet when checking against a generic array.
};
+std::ostream& operator<<(std::ostream& os, TypeCheckKind rhs);
+
class HInstanceOf : public HExpression<2> {
public:
HInstanceOf(HInstruction* object,