Index: src/arm/code-stubs-arm.cc |
diff --git a/src/arm/code-stubs-arm.cc b/src/arm/code-stubs-arm.cc |
index 02b945f1776ab33f1ee08c55724f58c2c3d6a9ef..a8a4b5f5ac5f24bf4e3f0b4d70c2cd2f2acd745a 100644 |
--- a/src/arm/code-stubs-arm.cc |
+++ b/src/arm/code-stubs-arm.cc |
@@ -974,21 +974,14 @@ |
// fp: frame pointer (restored after C call) |
// sp: stack pointer (restored as callee's sp after C call) |
// cp: current context (C callee-saved) |
- // |
- // If argv_in_register(): |
- // r2: pointer to the first argument |
+ |
ProfileEntryHookStub::MaybeCallEntryHook(masm); |
__ mov(r5, Operand(r1)); |
- if (!argv_in_register()) { |
- // Compute the argv pointer in a callee-saved register. |
- __ add(r1, sp, Operand(r0, LSL, kPointerSizeLog2)); |
- __ sub(r1, r1, Operand(kPointerSize)); |
- } else { |
- // Move argv into the correct register. |
- __ mov(r1, Operand(r2)); |
- } |
+ // Compute the argv pointer in a callee-saved register. |
+ __ add(r1, sp, Operand(r0, LSL, kPointerSizeLog2)); |
+ __ sub(r1, r1, Operand(kPointerSize)); |
// Enter the exit frame that transitions from JavaScript to C++. |
FrameScope scope(masm, StackFrame::MANUAL); |