summaryrefslogtreecommitdiff
path: root/src/compiler/codegen/arm/ArchUtility.cc
diff options
context:
space:
mode:
author Ian Rogers <irogers@google.com> 2011-08-26 03:29:44 -0700
committer Ian Rogers <irogers@google.com> 2011-09-02 14:48:01 -0700
commit0cfe1fb7060576d047f7f894fc0d8b87de84fcab (patch)
tree4255eae2034dcb0febe28411c50cba76189f39ae /src/compiler/codegen/arm/ArchUtility.cc
parenta09576416788b916095739e43a16917e7948f3a4 (diff)
Use accessor methods for Object fields.
Ensure that Object fields are modified via accessors so that it's easy to insert barriers (make all fields within Objects private). Add validity checks to Field and Method accessors to ensure they are accessed when a Class is in a suitable state. Add validity checks to all Object accessors to check heap isn't corrupted. Remove hacked in strings from Field and Method; make type fields used the dex cache that is lazily initialized. Clean up various other TODOs and lint issues. Change-Id: Iac0afc515c01f5419874d9cdcdb9a7b45443e3fb
Diffstat (limited to 'src/compiler/codegen/arm/ArchUtility.cc')
-rw-r--r--src/compiler/codegen/arm/ArchUtility.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/codegen/arm/ArchUtility.cc b/src/compiler/codegen/arm/ArchUtility.cc
index d643a9065f..dc8bdec806 100644
--- a/src/compiler/codegen/arm/ArchUtility.cc
+++ b/src/compiler/codegen/arm/ArchUtility.cc
@@ -407,7 +407,7 @@ void oatCodegenDump(CompilationUnit* cUnit)
" bytes, Dalvik size is " << insnsSize * 2;
LOG(INFO) << "expansion factor: " <<
(float)cUnit->totalSize / (float)(insnsSize * 2);
- for (int i = 0; i < method->num_registers_; i++) {
+ for (int i = 0; i < method->NumRegisters(); i++) {
RegLocation loc = cUnit->regLocation[i];
char buf[100];
if (loc.fpLocation == kLocPhysReg) {