summaryrefslogtreecommitdiff
path: root/compiler/compiler.cc
diff options
context:
space:
mode:
author Mathieu Chartier <mathieuc@google.com> 2018-01-05 11:00:42 -0800
committer Mathieu Chartier <mathieuc@google.com> 2018-01-08 09:11:49 -0800
commit698ebbca3c54d17c696e87b9e5838df6a5ac9b08 (patch)
tree7887b2cd4662410114f205bbe1896ff094d51407 /compiler/compiler.cc
parent4b9a11f1d43df69c50e93ba1793fce1c2216682b (diff)
Clean up CodeItemAccessors and Compact/StandardDexFile
Change constructor to use a reference to a dex file. Remove duplicated logic for GetCodeItemSize. Bug: 63756964 Test: test-art-host Change-Id: I69af8b93abdf6bdfa4454e16db8f4e75883bca46
Diffstat (limited to 'compiler/compiler.cc')
-rw-r--r--compiler/compiler.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/compiler.cc b/compiler/compiler.cc
index 60977b6bd5..7c7ae71d77 100644
--- a/compiler/compiler.cc
+++ b/compiler/compiler.cc
@@ -47,7 +47,7 @@ bool Compiler::IsPathologicalCase(const DexFile::CodeItem& code_item,
* Dalvik uses 16-bit uints for instruction and register counts. We'll limit to a quarter
* of that, which also guarantees we cannot overflow our 16-bit internal Quick SSA name space.
*/
- CodeItemDataAccessor accessor(&dex_file, &code_item);
+ CodeItemDataAccessor accessor(dex_file, &code_item);
if (accessor.InsnsSizeInCodeUnits() >= UINT16_MAX / 4) {
LOG(INFO) << "Method exceeds compiler instruction limit: "
<< accessor.InsnsSizeInCodeUnits()