Revision: 19260
Author:   [email protected]
Date:     Tue Feb 11 09:23:10 2014 UTC
Log:      A64: Store/restore flags in deopt-every-n-times check

BUG=none
[email protected], [email protected]
LOG=n

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

Modified:
 /branches/experimental/a64/src/a64/lithium-codegen-a64.cc

=======================================
--- /branches/experimental/a64/src/a64/lithium-codegen-a64.cc Mon Feb 10 19:48:20 2014 UTC +++ /branches/experimental/a64/src/a64/lithium-codegen-a64.cc Tue Feb 11 09:23:10 2014 UTC
@@ -981,21 +981,23 @@
     Label not_zero;
ExternalReference count = ExternalReference::stress_deopt_count(isolate());

-    __ Push(x0, x1);
+    __ Push(x0, x1, x2);
+    __ Mrs(x2, NZCV);
     __ Mov(x0, Operand(count));
     __ Ldr(w1, MemOperand(x0));
     __ Subs(x1, x1, 1);
     __ B(gt, &not_zero);
     __ Mov(w1, FLAG_deopt_every_n_times);
     __ Str(w1, MemOperand(x0));
-    __ Pop(x0, x1);
+    __ Pop(x0, x1, x2);
     ASSERT(frame_is_built_);
     __ Call(entry, RelocInfo::RUNTIME_ENTRY);
     __ Unreachable();

     __ Bind(&not_zero);
     __ Str(w1, MemOperand(x0));
-    __ Pop(x0, x1);
+    __ Msr(NZCV, x2);
+    __ Pop(x0, x1, x2);
   }

   return bailout_type;

--
--
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/groups/opt_out.

Reply via email to