Index: src/arm/builtins-arm.cc |
diff --git a/src/arm/builtins-arm.cc b/src/arm/builtins-arm.cc |
index 8d95694038ed57605741674b15b5eff43f7ed737..5ebfe192f8ace959ab37e48b3fb2e5be83fad515 100644 |
--- a/src/arm/builtins-arm.cc |
+++ b/src/arm/builtins-arm.cc |
@@ -1003,8 +1003,11 @@ void Builtins::Generate_InterpreterExitTrampoline(MacroAssembler* masm) { |
// Leave the frame (also dropping the register file). |
__ LeaveFrame(StackFrame::JAVA_SCRIPT); |
- // Drop receiver + arguments. |
- __ Drop(1); // TODO(rmcilroy): Get number of arguments from BytecodeArray. |
+ |
+ // Drop receiver + arguments and return. |
+ __ ldr(ip, FieldMemOperand(kInterpreterBytecodeArrayRegister, |
+ BytecodeArray::kParameterSizeOffset)); |
+ __ add(sp, sp, ip, LeaveCC); |
__ Jump(lr); |
} |