Reviewers: Rodolph Perfetta (ARM),

Message:
Committed patchset #1 manually as r18875 (presubmit successful).

Description:
A64: Port LGapResolver::Verify().

BUG=
[email protected]

Committed: https://code.google.com/p/v8/source/detail?r=18875

Please review this at https://codereview.chromium.org/135723010/

SVN Base: https://v8.googlecode.com/svn/branches/experimental/a64

Affected files (+9, -1 lines):
  M src/a64/lithium-gap-resolver-a64.cc


Index: src/a64/lithium-gap-resolver-a64.cc
diff --git a/src/a64/lithium-gap-resolver-a64.cc b/src/a64/lithium-gap-resolver-a64.cc index f924805d741c3a258cb31498e31afa7ad7631e9a..54378c5ba2d807efcc2831eb932978ebdac40f59 100644
--- a/src/a64/lithium-gap-resolver-a64.cc
+++ b/src/a64/lithium-gap-resolver-a64.cc
@@ -153,7 +153,15 @@ void LGapResolver::PerformMove(int index) {


 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