Index: src/arm/builtins-arm.cc |
diff --git a/src/arm/builtins-arm.cc b/src/arm/builtins-arm.cc |
index bef4bc3c4657c751a85b899da22307ad4a6bdbb8..4b658458a28aa462d7444c225b2fbb7cb66b9c19 100644 |
--- a/src/arm/builtins-arm.cc |
+++ b/src/arm/builtins-arm.cc |
@@ -938,18 +938,9 @@ void Builtins::Generate_OnStackReplacement(MacroAssembler* masm) { |
__ ldr(r0, MemOperand(fp, JavaScriptFrameConstants::kFunctionOffset)); |
{ |
FrameScope scope(masm, StackFrame::INTERNAL); |
- // Lookup and calculate pc offset. |
- __ ldr(r1, MemOperand(fp, StandardFrameConstants::kCallerPCOffset)); |
- __ ldr(r2, FieldMemOperand(r0, JSFunction::kSharedFunctionInfoOffset)); |
- __ ldr(r2, FieldMemOperand(r2, SharedFunctionInfo::kCodeOffset)); |
- __ sub(r1, r1, Operand(Code::kHeaderSize - kHeapObjectTag)); |
- __ sub(r1, r1, r2); |
- __ SmiTag(r1); |
- |
- // Pass both function and pc offset as arguments. |
+ // Pass function as argument. |
__ push(r0); |
- __ push(r1); |
- __ CallRuntime(Runtime::kCompileForOnStackReplacement, 2); |
+ __ CallRuntime(Runtime::kCompileForOnStackReplacement, 1); |
} |
// If the code object is null, just return to the unoptimized code. |