Make JIT inliner work under single-stepping mode.
Bug: 2936661
(cherry-picked from dalvik-dev)
Change-Id: I35a012bd4dba2a2f9541b96a2e787687bbc7cd19
diff --git a/vm/compiler/InlineTransformation.c b/vm/compiler/InlineTransformation.c
index 790cc5d..9559f5d 100644
--- a/vm/compiler/InlineTransformation.c
+++ b/vm/compiler/InlineTransformation.c
@@ -301,6 +301,13 @@
if (opCode == OP_INVOKE_DIRECT_EMPTY)
continue;
+ /*
+ * If the invoke itself is selected for single stepping, don't bother
+ * to inline it.
+ */
+ if (SINGLE_STEP_OP(opCode))
+ continue;
+
const Method *calleeMethod;
switch (opCode) {