summaryrefslogtreecommitdiff
path: root/src/compiler/codegen/arm/MethodCodegenDriver.cc
diff options
context:
space:
mode:
author buzbee <buzbee@google.com> 2011-10-10 09:35:02 -0700
committer buzbee <buzbee@google.com> 2011-10-10 09:35:02 -0700
commitfe2e17f424584ad6969c6fcf7cf6364c69355d53 (patch)
treead4b5837bcc7f2d346adbe5b8aff46833d0aa1a8 /src/compiler/codegen/arm/MethodCodegenDriver.cc
parentbf7dca57e51e85a647c63cec984048ca03c5f071 (diff)
Simplify compiler's suspend check mechanism.
Move to a single mechanism for suspend checks. Previously backwards branches only checked the suspend count when an internal counter reached zero, while returns always checked. Now all checks use the counter. Change-Id: Ibca2881e102babbd134bb9b41d798e9e4a3b522c
Diffstat (limited to 'src/compiler/codegen/arm/MethodCodegenDriver.cc')
-rw-r--r--src/compiler/codegen/arm/MethodCodegenDriver.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/compiler/codegen/arm/MethodCodegenDriver.cc b/src/compiler/codegen/arm/MethodCodegenDriver.cc
index fb665e68fa..633125443b 100644
--- a/src/compiler/codegen/arm/MethodCodegenDriver.cc
+++ b/src/compiler/codegen/arm/MethodCodegenDriver.cc
@@ -1169,17 +1169,17 @@ STATIC bool compileDalvikInstruction(CompilationUnit* cUnit, MIR* mir,
break;
case OP_RETURN_VOID:
- genSuspendPoll(cUnit, mir);
+ genSuspendTest(cUnit, mir);
break;
case OP_RETURN:
case OP_RETURN_OBJECT:
- genSuspendPoll(cUnit, mir);
+ genSuspendTest(cUnit, mir);
storeValue(cUnit, getRetLoc(cUnit), rlSrc[0]);
break;
case OP_RETURN_WIDE:
- genSuspendPoll(cUnit, mir);
+ genSuspendTest(cUnit, mir);
storeValueWide(cUnit, getRetLocWide(cUnit), rlSrc[0]);
break;