Revision: 20108
Author:   [email protected]
Date:     Thu Mar 20 10:03:17 2014 UTC
Log: A64: In the Simulator, corrupt caller-saved registers after runtime printf call.

[email protected]

Review URL: https://codereview.chromium.org/203603002
http://code.google.com/p/v8/source/detail?r=20108

Modified:
 /branches/bleeding_edge/src/a64/simulator-a64.cc

=======================================
--- /branches/bleeding_edge/src/a64/simulator-a64.cc Thu Mar 20 09:51:19 2014 UTC +++ /branches/bleeding_edge/src/a64/simulator-a64.cc Thu Mar 20 10:03:17 2014 UTC
@@ -3623,10 +3623,13 @@
           result = fprintf(stream_, "%s", format);
         }
         fputs(clr_normal, stream_);
+
+#ifdef DEBUG
+        CorruptAllCallerSavedCPURegisters();
+#endif
+
         set_xreg(0, result);

- // TODO(jbramley): Consider clobbering all caller-saved registers here.
-
         // The printf parameters are inlined in the code, so skip them.
         set_pc(pc_->InstructionAtOffset(kPrintfLength));

--
--
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