summaryrefslogtreecommitdiffstats
path: root/runtime/quick_exception_handler.cc
diff options
context:
space:
mode:
authorMathieu Chartier <mathieuc@google.com>2014-08-23 16:37:27 -0700
committerMathieu Chartier <mathieuc@google.com>2014-08-23 16:54:24 -0700
commitbf99f77dda749e2b653e8c45259b1fb56e7bb012 (patch)
tree98addbb3533c745781bc26e4a55cbbdd6d6e97e7 /runtime/quick_exception_handler.cc
parent762f0a5bdd238458bbb463a9565388f2047a98d4 (diff)
downloadart-bf99f77dda749e2b653e8c45259b1fb56e7bb012.tar.gz
art-bf99f77dda749e2b653e8c45259b1fb56e7bb012.tar.bz2
art-bf99f77dda749e2b653e8c45259b1fb56e7bb012.zip
Clean up Handle usage.
Prefer using ConstHandle instead of Handle as function arguments since you can't assign new references to ConstHandle which helps prevent bugs. Changed NullHandle to be a ConstHandle so that you can never modify it to be a non null reference. Change-Id: I81cb979f6f8d5b49e5614966a2caf28c3701dd4f
Diffstat (limited to 'runtime/quick_exception_handler.cc')
-rw-r--r--runtime/quick_exception_handler.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/runtime/quick_exception_handler.cc b/runtime/quick_exception_handler.cc
index 1e933a2b8c..1ec488ef51 100644
--- a/runtime/quick_exception_handler.cc
+++ b/runtime/quick_exception_handler.cc
@@ -211,9 +211,9 @@ class DeoptimizeStackVisitor FINAL : public StackVisitor {
Handle<mirror::DexCache> h_dex_cache(hs.NewHandle(declaring_class->GetDexCache()));
Handle<mirror::ClassLoader> h_class_loader(hs.NewHandle(declaring_class->GetClassLoader()));
Handle<mirror::ArtMethod> h_method(hs.NewHandle(m));
- verifier::MethodVerifier verifier(h_dex_cache->GetDexFile(), &h_dex_cache, &h_class_loader,
- &m->GetClassDef(), code_item, m->GetDexMethodIndex(), h_method,
- m->GetAccessFlags(), false, true, true);
+ verifier::MethodVerifier verifier(h_dex_cache->GetDexFile(), h_dex_cache, h_class_loader,
+ &m->GetClassDef(), code_item, m->GetDexMethodIndex(),
+ h_method, m->GetAccessFlags(), false, true, true);
verifier.Verify();
const std::vector<int32_t> kinds(verifier.DescribeVRegs(dex_pc));
for (uint16_t reg = 0; reg < num_regs; ++reg) {