Revision: 25226
Author:   [email protected]
Date:     Mon Nov 10 04:47:19 2014 UTC
Log:      X87: fix one GC issue.

 The incorrect parameter number is set when recording safepoint.

BUG=
[email protected]

Review URL: https://codereview.chromium.org/716463003

Patch from Chunyang Dai <[email protected]>.
https://code.google.com/p/v8/source/detail?r=25226

Modified:
 /branches/bleeding_edge/src/x87/lithium-codegen-x87.cc

=======================================
--- /branches/bleeding_edge/src/x87/lithium-codegen-x87.cc Wed Nov 5 06:20:36 2014 UTC +++ /branches/bleeding_edge/src/x87/lithium-codegen-x87.cc Mon Nov 10 04:47:19 2014 UTC
@@ -4063,8 +4063,8 @@
     __ mov(esi, Operand(ebp, StandardFrameConstants::kContextOffset));
     __ push(temp_result);
     __ CallRuntimeSaveDoubles(Runtime::kMathSqrtRT);
-    RecordSafepointWithRegisters(
-        instr->pointer_map(), 0, Safepoint::kNoLazyDeopt);
+    RecordSafepointWithRegisters(instr->pointer_map(), 1,
+                                 Safepoint::kNoLazyDeopt);
     __ StoreToSafepointRegisterSlot(temp_result, eax);
   }
   X87PrepareToWrite(result_reg);
@@ -4278,7 +4278,7 @@
     __ mov(esi, Operand(ebp, StandardFrameConstants::kContextOffset));
     __ push(temp_result);
     __ CallRuntimeSaveDoubles(Runtime::kMathExpRT);
-    RecordSafepointWithRegisters(instr->pointer_map(), 0,
+    RecordSafepointWithRegisters(instr->pointer_map(), 1,
                                  Safepoint::kNoLazyDeopt);
     __ StoreToSafepointRegisterSlot(temp_result, eax);
   }

--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to