diff options
author | Andreas Gampe <agampe@google.com> | 2014-09-11 08:30:08 -0700 |
---|---|---|
committer | Andreas Gampe <agampe@google.com> | 2014-09-15 19:50:12 -0700 |
commit | 5a4b8a236030460651a3136397d23ca6744e7eb7 (patch) | |
tree | 0e43891398e416d3fa77c7de391bf4db4408e8ee /compiler | |
parent | 19f7c95491a053b818f914137fa73df0517b8792 (diff) | |
download | android_art-5a4b8a236030460651a3136397d23ca6744e7eb7.tar.gz android_art-5a4b8a236030460651a3136397d23ca6744e7eb7.tar.bz2 android_art-5a4b8a236030460651a3136397d23ca6744e7eb7.zip |
ART: Rename Handle hierarchy
Bring the names in line with normal OO principles: ConstHandle
becomes Handle, and Handle becomes MutableHandle.
Change-Id: I0f018eb7ba28bc422e3a23dd73a6cbe6fc2d2044
Diffstat (limited to 'compiler')
-rw-r--r-- | compiler/common_compiler_test.cc | 4 | ||||
-rw-r--r-- | compiler/common_compiler_test.h | 4 | ||||
-rw-r--r-- | compiler/driver/compiler_driver.cc | 6 |
3 files changed, 7 insertions, 7 deletions
diff --git a/compiler/common_compiler_test.cc b/compiler/common_compiler_test.cc index db9dcd4b4b..fbaed9ffab 100644 --- a/compiler/common_compiler_test.cc +++ b/compiler/common_compiler_test.cc @@ -367,7 +367,7 @@ void CommonCompilerTest::CompileMethod(mirror::ArtMethod* method) { MakeExecutable(method); } -void CommonCompilerTest::CompileDirectMethod(ConstHandle<mirror::ClassLoader> class_loader, +void CommonCompilerTest::CompileDirectMethod(Handle<mirror::ClassLoader> class_loader, const char* class_name, const char* method_name, const char* signature) { std::string class_descriptor(DotToDescriptor(class_name)); @@ -380,7 +380,7 @@ void CommonCompilerTest::CompileDirectMethod(ConstHandle<mirror::ClassLoader> cl CompileMethod(method); } -void CommonCompilerTest::CompileVirtualMethod(ConstHandle<mirror::ClassLoader> class_loader, +void CommonCompilerTest::CompileVirtualMethod(Handle<mirror::ClassLoader> class_loader, const char* class_name, const char* method_name, const char* signature) { std::string class_descriptor(DotToDescriptor(class_name)); diff --git a/compiler/common_compiler_test.h b/compiler/common_compiler_test.h index 4e74f0a521..df06b71c7d 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(ConstHandle<mirror::ClassLoader> class_loader, const char* class_name, + void CompileDirectMethod(Handle<mirror::ClassLoader> class_loader, const char* class_name, const char* method_name, const char* signature) SHARED_LOCKS_REQUIRED(Locks::mutator_lock_); - void CompileVirtualMethod(ConstHandle<mirror::ClassLoader> class_loader, const char* class_name, + void CompileVirtualMethod(Handle<mirror::ClassLoader> class_loader, const char* class_name, const char* method_name, const char* signature) SHARED_LOCKS_REQUIRED(Locks::mutator_lock_); diff --git a/compiler/driver/compiler_driver.cc b/compiler/driver/compiler_driver.cc index b99301566e..6910e04be1 100644 --- a/compiler/driver/compiler_driver.cc +++ b/compiler/driver/compiler_driver.cc @@ -627,7 +627,7 @@ bool CompilerDriver::IsImageClass(const char* descriptor) const { } } -static void ResolveExceptionsForMethod(MethodHelper* mh, +static void ResolveExceptionsForMethod(MutableMethodHelper* mh, std::set<std::pair<uint16_t, const DexFile*>>& exceptions_to_resolve) SHARED_LOCKS_REQUIRED(Locks::mutator_lock_) { const DexFile::CodeItem* code_item = mh->GetMethod()->GetCodeItem(); @@ -670,7 +670,7 @@ static bool ResolveCatchBlockExceptionsClassVisitor(mirror::Class* c, void* arg) std::set<std::pair<uint16_t, const DexFile*>>* exceptions_to_resolve = reinterpret_cast<std::set<std::pair<uint16_t, const DexFile*>>*>(arg); StackHandleScope<1> hs(Thread::Current()); - MethodHelper mh(hs.NewHandle<mirror::ArtMethod>(nullptr)); + MutableMethodHelper mh(hs.NewHandle<mirror::ArtMethod>(nullptr)); for (size_t i = 0; i < c->NumVirtualMethods(); ++i) { mh.ChangeMethod(c->GetVirtualMethod(i)); ResolveExceptionsForMethod(&mh, *exceptions_to_resolve); @@ -761,7 +761,7 @@ static void MaybeAddToImageClasses(Handle<mirror::Class> c, std::set<std::string Thread* self = Thread::Current(); StackHandleScope<1> hs(self); // Make a copy of the handle so that we don't clobber it doing Assign. - Handle<mirror::Class> klass(hs.NewHandle(c.Get())); + MutableHandle<mirror::Class> klass(hs.NewHandle(c.Get())); std::string temp; while (!klass->IsObjectClass()) { const char* descriptor = klass->GetDescriptor(&temp); |