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/codegen/arm/ArchUtility.cc b/src/compiler/codegen/arm/ArchUtility.cc
index 5e8fa20..c9a30fd 100644
--- a/src/compiler/codegen/arm/ArchUtility.cc
+++ b/src/compiler/codegen/arm/ArchUtility.cc
@@ -20,6 +20,8 @@
#include <string>
+namespace art {
+
static const char* coreRegNames[16] = {
"r0",
"r1",
@@ -309,7 +311,7 @@
switch(lir->opcode) {
case kArmPseudoMethodEntry:
LOG(INFO) << "-------- method entry " <<
- art::PrettyMethod(cUnit->method_idx, *cUnit->dex_file);
+ PrettyMethod(cUnit->method_idx, *cUnit->dex_file);
break;
case kArmPseudoMethodExit:
LOG(INFO) << "-------- Method_Exit";
@@ -413,7 +415,7 @@
{
LOG(INFO) << "/*";
LOG(INFO) << "Dumping LIR insns for "
- << art::PrettyMethod(cUnit->method_idx, *cUnit->dex_file);
+ << PrettyMethod(cUnit->method_idx, *cUnit->dex_file);
LIR* lirInsn;
ArmLIR* armLIR;
int insnsSize = cUnit->insnsSize;
@@ -447,7 +449,7 @@
armLIR->generic.offset, armLIR->generic.offset, armLIR->operands[0]);
}
- const art::DexFile::MethodId& method_id =
+ const DexFile::MethodId& method_id =
cUnit->dex_file->GetMethodId(cUnit->method_idx);
std::string signature(cUnit->dex_file->GetMethodSignature(method_id));
std::string name(cUnit->dex_file->GetMethodName(method_id));
@@ -467,3 +469,5 @@
LOG(INFO) <<" };\n\n";
}
}
+
+} // namespace art