Revision: 19329
Author:   [email protected]
Date:     Wed Feb 12 13:54:55 2014 UTC
Log:      Port of r19288 to a64: Fix for smi stores optimization.

[email protected]

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

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

=======================================
--- /branches/bleeding_edge/src/a64/lithium-codegen-a64.cc Wed Feb 12 12:44:01 2014 UTC +++ /branches/bleeding_edge/src/a64/lithium-codegen-a64.cc Wed Feb 12 13:54:55 2014 UTC
@@ -5103,6 +5103,10 @@
   if (representation.IsSmi() &&
       instr->hydrogen()->value()->representation().IsInteger32()) {
     ASSERT(instr->hydrogen()->store_mode() == STORE_TO_INITIALIZED_ENTRY);
+#ifdef DEBUG
+    __ Ldr(temp1, FieldMemOperand(destination, offset));
+    __ AssertSmi(temp1);
+#endif
     STATIC_ASSERT(kSmiValueSize == 32 && kSmiShift == 32 && kSmiTag == 0);
     __ Store(value, UntagSmiFieldMemOperand(destination, offset),
              Representation::Integer32());

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