summaryrefslogtreecommitdiff
path: root/compiler/dex/verified_method.cc
diff options
context:
space:
mode:
author Andreas Gampe <agampe@google.com> 2019-06-06 20:16:07 -0700
committer Treehugger Robot <treehugger-gerrit@google.com> 2019-06-07 23:05:24 +0000
commit93adcb53c77f4f04dfebd30b94e8ea9936aa8abb (patch)
treebdf638b78c045eed106ace99fbdc64506712d8ea /compiler/dex/verified_method.cc
parent01f2e3a488fa06d98e2efbaf3ea8066d8457f216 (diff)
ART: Remove some compile-time info points
Remove no longer needed compile-time info points in the verifier. Only check-casts are still reliant on support for elision. This reduces the number of pre-populated register lines in a large app by 70%, and the number of instructions executed during verification by about 2%. Bug: 110852609 Test: m test-art-host Change-Id: Iefa8253749b1a2750f57360e08ddfb502d0478b1
Diffstat (limited to 'compiler/dex/verified_method.cc')
-rw-r--r--compiler/dex/verified_method.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/dex/verified_method.cc b/compiler/dex/verified_method.cc
index 54f216a64d..172ec6b102 100644
--- a/compiler/dex/verified_method.cc
+++ b/compiler/dex/verified_method.cc
@@ -76,6 +76,7 @@ void VerifiedMethod::GenerateSafeCastSet(verifier::MethodVerifier* method_verifi
continue;
}
const verifier::RegisterLine* line = method_verifier->GetRegLine(dex_pc);
+ DCHECK(line != nullptr) << "Did not have line for dex pc 0x" << std::hex << dex_pc;
const verifier::RegType& reg_type(line->GetRegisterType(method_verifier,
inst.VRegA_21c()));
const verifier::RegType& cast_type =