From bf99f77dda749e2b653e8c45259b1fb56e7bb012 Mon Sep 17 00:00:00 2001 From: Mathieu Chartier Date: Sat, 23 Aug 2014 16:37:27 -0700 Subject: 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 --- runtime/quick_exception_handler.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'runtime/quick_exception_handler.cc') 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 h_dex_cache(hs.NewHandle(declaring_class->GetDexCache())); Handle h_class_loader(hs.NewHandle(declaring_class->GetClassLoader())); Handle 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 kinds(verifier.DescribeVRegs(dex_pc)); for (uint16_t reg = 0; reg < num_regs; ++reg) { -- cgit v1.2.3-59-g8ed1b