summaryrefslogtreecommitdiff
path: root/src/compiler/codegen/arm/ArmRallocUtil.cc
diff options
context:
space:
mode:
author Elliott Hughes <enh@google.com> 2012-01-23 16:57:47 -0800
committer Elliott Hughes <enh@google.com> 2012-01-23 17:26:10 -0800
commit11d1b0c31ddd710d26068da8e0e4621002205b4b (patch)
tree8d9c9c0dd5741214466775b86069032d609fd91c /src/compiler/codegen/arm/ArmRallocUtil.cc
parentbbdb1437f55948e5395b4dcb306e25605539a444 (diff)
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
Diffstat (limited to 'src/compiler/codegen/arm/ArmRallocUtil.cc')
-rw-r--r--src/compiler/codegen/arm/ArmRallocUtil.cc8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/compiler/codegen/arm/ArmRallocUtil.cc b/src/compiler/codegen/arm/ArmRallocUtil.cc
index 60a5f383b3..a193a7c7f9 100644
--- a/src/compiler/codegen/arm/ArmRallocUtil.cc
+++ b/src/compiler/codegen/arm/ArmRallocUtil.cc
@@ -15,7 +15,7 @@
*/
/*
- * This file contains Arm-specific register alloction support.
+ * This file contains Arm-specific register allocation support.
*/
#include "../../CompilerUtility.h"
@@ -25,6 +25,8 @@
#include "Codegen.h"
#include "../Ralloc.h"
+namespace art {
+
/*
* Placeholder routine until we do proper register allocation.
*/
@@ -263,7 +265,7 @@ extern int oatSRegOffset(CompilationUnit* cUnit, int sReg)
/* Return sp-relative offset in bytes using Method* */
-extern int oatVRegOffset(const art::DexFile::CodeItem* code_item,
+extern int oatVRegOffset(const DexFile::CodeItem* code_item,
uint32_t core_spills, uint32_t fp_spills,
size_t frame_size, int reg)
{
@@ -337,3 +339,5 @@ extern RegisterInfo* oatGetRegInfo(CompilationUnit* cUnit, int reg)
return FPREG(reg) ? &cUnit->regPool->FPRegs[reg & FP_REG_MASK]
: &cUnit->regPool->coreRegs[reg];
}
+
+} // namespace art