diff options
author | 2015-05-29 12:43:13 +0000 | |
---|---|---|
committer | 2015-05-29 12:43:13 +0000 | |
commit | a15c78d3cc28f514a482ffd792a767e97fe53c95 (patch) | |
tree | 86fbff6f4f64628a7f46bccd997a348e81d91edc /compiler/optimizing/nodes.h | |
parent | 5adb8b6b3c7e97b94a2b28258847b947895faeea (diff) | |
parent | fbdaa30a448029d75422c76f29087a4e39630f4a (diff) |
Merge "Use the new HCurrentMethod in HLoadString."
Diffstat (limited to 'compiler/optimizing/nodes.h')
-rw-r--r-- | compiler/optimizing/nodes.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/compiler/optimizing/nodes.h b/compiler/optimizing/nodes.h index 869809d69f..3144c5c193 100644 --- a/compiler/optimizing/nodes.h +++ b/compiler/optimizing/nodes.h @@ -3544,12 +3544,14 @@ class HLoadClass : public HExpression<1> { DISALLOW_COPY_AND_ASSIGN(HLoadClass); }; -class HLoadString : public HExpression<0> { +class HLoadString : public HExpression<1> { public: - HLoadString(uint32_t string_index, uint32_t dex_pc) + HLoadString(HCurrentMethod* current_method, uint32_t string_index, uint32_t dex_pc) : HExpression(Primitive::kPrimNot, SideEffects::None()), string_index_(string_index), - dex_pc_(dex_pc) {} + dex_pc_(dex_pc) { + SetRawInputAt(0, current_method); + } bool CanBeMoved() const OVERRIDE { return true; } |