Revision: 7087
Author: [email protected]
Date: Tue Mar 8 02:49:01 2011
Log: Fix assertion failure introduced by my previous change.
Review URL: http://codereview.chromium.org/6621068
http://code.google.com/p/v8/source/detail?r=7087
Modified:
/branches/bleeding_edge/src/hydrogen-instructions.cc
=======================================
--- /branches/bleeding_edge/src/hydrogen-instructions.cc Tue Mar 8
02:04:23 2011
+++ /branches/bleeding_edge/src/hydrogen-instructions.cc Tue Mar 8
02:49:01 2011
@@ -414,10 +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));
- old_value->uses_.RemoveElement(this);
- }
+ if (old_value != NULL) old_value->uses_.RemoveElement(this);
if (new_value != NULL) {
new_value->uses_.Add(this);
}
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev