Reviewers: Kevin Millikin,

Description:
Fix assertion failure introduced by my previous change.


Please review this at http://codereview.chromium.org/6621068/

SVN Base: http://v8.googlecode.com/svn/branches/bleeding_edge/

Affected files:
  M     src/hydrogen-instructions.cc


Index: src/hydrogen-instructions.cc
===================================================================
--- src/hydrogen-instructions.cc        (revision 7085)
+++ src/hydrogen-instructions.cc        (working copy)
@@ -414,8 +414,7 @@
 void HValue::RegisterUse(int index, HValue* new_value) {
   HValue* old_value = OperandAt(index);
   if (old_value == new_value) return;
-  if (old_value != NULL) {
-    ASSERT(old_value->uses_.Contains(this));
+  if (old_value != NULL && old_value->uses_.Contains(this)) {
     old_value->uses_.RemoveElement(this);
   }
   if (new_value != NULL) {


--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev

Reply via email to