From 5cd2180225421d7b94f6d978bc5c1a4d9ef34f1e Mon Sep 17 00:00:00 2001 From: buzbee Date: Fri, 26 Aug 2011 10:40:14 -0700 Subject: Fix invoke sequence and enable recursive Fibonacci I was previously generating the wrong starting offset for the resolved methods array. Change-Id: Ia77800323df2872681b30f2869ef4b1131766f39 --- src/compiler/codegen/arm/MethodCodegenDriver.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/compiler/codegen/arm/MethodCodegenDriver.cc') diff --git a/src/compiler/codegen/arm/MethodCodegenDriver.cc b/src/compiler/codegen/arm/MethodCodegenDriver.cc index 49529e1174..6e2f285d39 100644 --- a/src/compiler/codegen/arm/MethodCodegenDriver.cc +++ b/src/compiler/codegen/arm/MethodCodegenDriver.cc @@ -350,8 +350,9 @@ static int nextSDCallInsnSP(CompilationUnit* cUnit, MIR* mir, INVALID_SREG); break; case 3: // Method->DeclaringClass()->GetDexCache()->methodsObjectArr - loadBaseDisp(cUnit, mir, r0, art::DexCache::MethodsOffset(), - r0, kWord, INVALID_SREG); + loadBaseDisp(cUnit, mir, r0, + art::DexCache::MethodsOffset().Int32Value(), r0, + kWord, INVALID_SREG); break; case 4: // Skip past the object header opRegImm(cUnit, kOpAdd, r0, art::Array::DataOffset().Int32Value()); -- cgit v1.2.3-59-g8ed1b