diff options
| author | 2015-05-27 17:13:03 +0000 | |
|---|---|---|
| committer | 2015-05-27 17:13:03 +0000 | |
| commit | 13df71cea8c774d28e834497288f67cb2bbb16b0 (patch) | |
| tree | 155f1128c0dfa651b70360f311e3b581a8b28bdb /compiler/optimizing/nodes.h | |
| parent | 55bf5b4f1a570fb10d7ba8c91ac49c6bc16639ac (diff) | |
| parent | 81d804a51d4fc415e1544a5a09505db049f4eda6 (diff) | |
Merge "Bring Reference Type Propagation to NewArray"
Diffstat (limited to 'compiler/optimizing/nodes.h')
| -rw-r--r-- | compiler/optimizing/nodes.h | 4 | 
1 files changed, 4 insertions, 0 deletions
diff --git a/compiler/optimizing/nodes.h b/compiler/optimizing/nodes.h index 01870c36fa..a44d745c11 100644 --- a/compiler/optimizing/nodes.h +++ b/compiler/optimizing/nodes.h @@ -2656,16 +2656,19 @@ class HNewArray : public HExpression<1> {    HNewArray(HInstruction* length,              uint32_t dex_pc,              uint16_t type_index, +            const DexFile& dex_file,              QuickEntrypointEnum entrypoint)        : HExpression(Primitive::kPrimNot, SideEffects::None()),          dex_pc_(dex_pc),          type_index_(type_index), +        dex_file_(dex_file),          entrypoint_(entrypoint) {      SetRawInputAt(0, length);    }    uint32_t GetDexPc() const OVERRIDE { return dex_pc_; }    uint16_t GetTypeIndex() const { return type_index_; } +  const DexFile& GetDexFile() const { return dex_file_; }    // Calls runtime so needs an environment.    bool NeedsEnvironment() const OVERRIDE { return true; } @@ -2682,6 +2685,7 @@ class HNewArray : public HExpression<1> {   private:    const uint32_t dex_pc_;    const uint16_t type_index_; +  const DexFile& dex_file_;    const QuickEntrypointEnum entrypoint_;    DISALLOW_COPY_AND_ASSIGN(HNewArray);  |