OSDN Git Service

Merge "Rename ObjPtr::Decode to ObjPtr::Ptr"
authorMathieu Chartier <mathieuc@google.com>
Wed, 5 Oct 2016 00:39:07 +0000 (00:39 +0000)
committerGerrit Code Review <noreply-gerritcodereview@google.com>
Wed, 5 Oct 2016 00:39:08 +0000 (00:39 +0000)
1  2 
compiler/driver/compiler_driver-inl.h
compiler/oat_test.cc
dex2oat/dex2oat.cc
oatdump/oatdump.cc
runtime/runtime.cc

  
  namespace art {
  
 +inline mirror::DexCache* CompilerDriver::GetDexCache(const DexCompilationUnit* mUnit) {
 +  return mUnit->GetClassLinker()->FindDexCache(Thread::Current(), *mUnit->GetDexFile(), false);
 +}
 +
  inline mirror::ClassLoader* CompilerDriver::GetClassLoader(const ScopedObjectAccess& soa,
                                                             const DexCompilationUnit* mUnit) {
-   return soa.Decode<mirror::ClassLoader>(mUnit->GetClassLoader()).Decode();
+   return soa.Decode<mirror::ClassLoader>(mUnit->GetClassLoader()).Ptr();
  }
  
  inline mirror::Class* CompilerDriver::ResolveClass(
Simple merge
Simple merge
Simple merge
Simple merge