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/stack.cc b/src/stack.cc
index 0232572..7da20b0 100644
--- a/src/stack.cc
+++ b/src/stack.cc
@@ -21,12 +21,12 @@
#include "object_utils.h"
#include "thread_list.h"
-int oatVRegOffset(const art::DexFile::CodeItem* code_item,
+namespace art {
+
+int oatVRegOffset(const DexFile::CodeItem* code_item,
uint32_t core_spills, uint32_t fp_spills,
size_t frame_size, int reg);
-namespace art {
-
bool Frame::HasMethod() const {
return GetMethod() != NULL && (!GetMethod()->IsCalleeSaveMethod());
}
@@ -62,7 +62,7 @@
uint32_t Frame::GetVReg(Method* m, int vreg) const {
DCHECK(m == GetMethod());
- const art::DexFile::CodeItem* code_item = MethodHelper(m).GetCodeItem();
+ const DexFile::CodeItem* code_item = MethodHelper(m).GetCodeItem();
DCHECK(code_item != NULL); // can't be NULL or how would we compile its instructions?
uint32_t core_spills = m->GetCoreSpillMask();
uint32_t fp_spills = m->GetFpSpillMask();
@@ -72,7 +72,7 @@
void Frame::SetVReg(Method* m, int vreg, uint32_t new_value) {
DCHECK(m == GetMethod());
- const art::DexFile::CodeItem* code_item = MethodHelper(m).GetCodeItem();
+ const DexFile::CodeItem* code_item = MethodHelper(m).GetCodeItem();
DCHECK(code_item != NULL); // can't be NULL or how would we compile its instructions?
uint32_t core_spills = m->GetCoreSpillMask();
uint32_t fp_spills = m->GetFpSpillMask();