Reduce namespace pollution.
This leaves us with just the mspace stuff and three libdex functions to clean
up. We deliberately expose the JII API, and I don't think there's anything we
can really do about the art_..._from_code stuff (and at least that starts with
"art_").
Change-Id: I77e58e8330cd2afeb496642302dfe3311e68091a
diff --git a/src/compiler/Utility.cc b/src/compiler/Utility.cc
index d292494..8d70136 100644
--- a/src/compiler/Utility.cc
+++ b/src/compiler/Utility.cc
@@ -17,6 +17,8 @@
#include "Dalvik.h"
#include "CompilerInternals.h"
+namespace art {
+
static ArenaMemBlock *arenaHead, *currentArena;
static int numArenaBlocks;
@@ -163,7 +165,7 @@
"Catch Block"
};
- LOG(INFO) << "Compiling " << art::PrettyMethod(cUnit->method_idx, *cUnit->dex_file);
+ LOG(INFO) << "Compiling " << PrettyMethod(cUnit->method_idx, *cUnit->dex_file);
LOG(INFO) << cUnit->insns << " insns";
LOG(INFO) << cUnit->numBlocks << " blocks in total";
GrowableListIterator iterator;
@@ -530,6 +532,8 @@
const char* oatGetShortyFromTargetIdx(CompilationUnit *cUnit, int targetIdx)
{
- const art::DexFile::MethodId& methodId = cUnit->dex_file->GetMethodId(targetIdx);
+ const DexFile::MethodId& methodId = cUnit->dex_file->GetMethodId(targetIdx);
return cUnit->dex_file->GetShorty(methodId.proto_idx_);
}
+
+} // namespace art