diff options
author | 2017-01-12 06:19:22 +0000 | |
---|---|---|
committer | 2017-01-12 06:19:23 +0000 | |
commit | c8144cdad955b77988a48777cfbdc6fd2e8c1916 (patch) | |
tree | 354e00610ec25279a8c4b77e8b685e380815813f /compiler/optimizing/nodes.h | |
parent | d1a277954284c4dd4b5b14fd4e58f1854daed848 (diff) | |
parent | f7aaacd97881c6924b8212c7f8fe4a4c8721ef53 (diff) |
Merge "Revert "Make object allocation entrypoints only take a class.""
Diffstat (limited to 'compiler/optimizing/nodes.h')
-rw-r--r-- | compiler/optimizing/nodes.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/compiler/optimizing/nodes.h b/compiler/optimizing/nodes.h index ea9a94c420..7d6f6164ec 100644 --- a/compiler/optimizing/nodes.h +++ b/compiler/optimizing/nodes.h @@ -3774,9 +3774,10 @@ class HCompare FINAL : public HBinaryOperation { DISALLOW_COPY_AND_ASSIGN(HCompare); }; -class HNewInstance FINAL : public HExpression<1> { +class HNewInstance FINAL : public HExpression<2> { public: HNewInstance(HInstruction* cls, + HCurrentMethod* current_method, uint32_t dex_pc, dex::TypeIndex type_index, const DexFile& dex_file, @@ -3790,6 +3791,7 @@ class HNewInstance FINAL : public HExpression<1> { SetPackedFlag<kFlagNeedsAccessCheck>(needs_access_check); SetPackedFlag<kFlagFinalizable>(finalizable); SetRawInputAt(0, cls); + SetRawInputAt(1, current_method); } dex::TypeIndex GetTypeIndex() const { return type_index_; } |