Revision: 18875
Author:   [email protected]
Date:     Tue Jan 28 11:10:47 2014 UTC
Log:      A64: Port LGapResolver::Verify().

BUG=
[email protected]

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

Modified:
 /branches/experimental/a64/src/a64/lithium-gap-resolver-a64.cc

=======================================
--- /branches/experimental/a64/src/a64/lithium-gap-resolver-a64.cc Mon Jan 27 19:23:17 2014 UTC +++ /branches/experimental/a64/src/a64/lithium-gap-resolver-a64.cc Tue Jan 28 11:10:47 2014 UTC
@@ -153,7 +153,15 @@


 void LGapResolver::Verify() {
-  TODO_UNIMPLEMENTED("LGapResolver::Verify");
+#ifdef ENABLE_SLOW_ASSERTS
+  // No operand should be the destination for more than one move.
+  for (int i = 0; i < moves_.length(); ++i) {
+    LOperand* destination = moves_[i].destination();
+    for (int j = i + 1; j < moves_.length(); ++j) {
+      SLOW_ASSERT(!destination->Equals(moves_[j].destination()));
+    }
+  }
+#endif
 }


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