Index: src/ia32/builtins-ia32.cc |
diff --git a/src/ia32/builtins-ia32.cc b/src/ia32/builtins-ia32.cc |
index 32c3397dc77b35ef8261b04a86a3f86253ceeae1..7b44bc0d34d51cf8db2719fdfb7c201a9a2a76a1 100644 |
--- a/src/ia32/builtins-ia32.cc |
+++ b/src/ia32/builtins-ia32.cc |
@@ -1316,17 +1316,9 @@ void Builtins::Generate_OnStackReplacement(MacroAssembler* masm) { |
__ mov(eax, Operand(ebp, JavaScriptFrameConstants::kFunctionOffset)); |
{ |
FrameScope scope(masm, StackFrame::INTERNAL); |
- // Lookup and calculate pc offset. |
- __ mov(edx, Operand(ebp, StandardFrameConstants::kCallerPCOffset)); |
- __ mov(ebx, FieldOperand(eax, JSFunction::kSharedFunctionInfoOffset)); |
- __ sub(edx, Immediate(Code::kHeaderSize - kHeapObjectTag)); |
- __ sub(edx, FieldOperand(ebx, SharedFunctionInfo::kCodeOffset)); |
- __ SmiTag(edx); |
- |
- // Pass both function and pc offset as arguments. |
+ // Pass function as argument. |
__ push(eax); |
- __ push(edx); |
- __ CallRuntime(Runtime::kCompileForOnStackReplacement, 2); |
+ __ CallRuntime(Runtime::kCompileForOnStackReplacement, 1); |
} |
Label skip; |