diff options
author | Roland Levillain <rpl@google.com> | 2015-06-29 08:18:30 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2015-06-29 08:18:31 +0000 |
commit | d735c41e95a5d89cc9dad0c78d7d052579d8bd41 (patch) | |
tree | 150a469926f1a0beac5194cb1b072a10e1d57ef3 /compiler/optimizing/nodes.h | |
parent | a10c713ec3d5349cb907c184ebbd66e93b2dda99 (diff) | |
parent | a1935c4fa255b5c20f5e9b2abce6be2d0f7cb0a8 (diff) | |
download | art-d735c41e95a5d89cc9dad0c78d7d052579d8bd41.zip art-d735c41e95a5d89cc9dad0c78d7d052579d8bd41.tar.gz art-d735c41e95a5d89cc9dad0c78d7d052579d8bd41.tar.bz2 |
Merge "MIPS: Initial version of optimizing compiler for MIPS64R6." into mnc-dev
Diffstat (limited to 'compiler/optimizing/nodes.h')
-rw-r--r-- | compiler/optimizing/nodes.h | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/compiler/optimizing/nodes.h b/compiler/optimizing/nodes.h index b36d9b8..01ba110 100644 --- a/compiler/optimizing/nodes.h +++ b/compiler/optimizing/nodes.h @@ -2109,8 +2109,12 @@ class HCompare : public HBinaryOperation { kLtBias, // return -1 for NaN comparisons }; - HCompare(Primitive::Type type, HInstruction* first, HInstruction* second, Bias bias) - : HBinaryOperation(Primitive::kPrimInt, first, second), bias_(bias) { + HCompare(Primitive::Type type, + HInstruction* first, + HInstruction* second, + Bias bias, + uint32_t dex_pc) + : HBinaryOperation(Primitive::kPrimInt, first, second), bias_(bias), dex_pc_(dex_pc) { DCHECK_EQ(type, first->GetType()); DCHECK_EQ(type, second->GetType()); } @@ -2135,10 +2139,13 @@ class HCompare : public HBinaryOperation { bool IsGtBias() { return bias_ == kGtBias; } + uint32_t GetDexPc() const { return dex_pc_; } + DECLARE_INSTRUCTION(Compare); private: const Bias bias_; + const uint32_t dex_pc_; DISALLOW_COPY_AND_ASSIGN(HCompare); }; @@ -3862,6 +3869,8 @@ class MoveOperands : public ArenaObject<kArenaAllocMisc> { return source_.IsInvalid(); } + Primitive::Type GetType() const { return type_; } + bool Is64BitMove() const { return Primitive::Is64BitType(type_); } |