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 --- compiler/common_compiler_test.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'compiler/common_compiler_test.h') diff --git a/compiler/common_compiler_test.h b/compiler/common_compiler_test.h index df06b71c7d..4e74f0a521 100644 --- a/compiler/common_compiler_test.h +++ b/compiler/common_compiler_test.h @@ -63,11 +63,11 @@ class CommonCompilerTest : public CommonRuntimeTest { void CompileMethod(mirror::ArtMethod* method) SHARED_LOCKS_REQUIRED(Locks::mutator_lock_); - void CompileDirectMethod(Handle class_loader, const char* class_name, + void CompileDirectMethod(ConstHandle class_loader, const char* class_name, const char* method_name, const char* signature) SHARED_LOCKS_REQUIRED(Locks::mutator_lock_); - void CompileVirtualMethod(Handle class_loader, const char* class_name, + void CompileVirtualMethod(ConstHandle class_loader, const char* class_name, const char* method_name, const char* signature) SHARED_LOCKS_REQUIRED(Locks::mutator_lock_); -- cgit v1.2.3