Index: src/interpreter/bytecode-register-optimizer.cc |
diff --git a/src/interpreter/bytecode-register-optimizer.cc b/src/interpreter/bytecode-register-optimizer.cc |
index ba45b1218efbd4748c2a24a00f0c430414bbd097..c7578b4b101f7d76a60144300d378683e495e4c0 100644 |
--- a/src/interpreter/bytecode-register-optimizer.cc |
+++ b/src/interpreter/bytecode-register-optimizer.cc |
@@ -8,6 +8,8 @@ namespace v8 { |
namespace internal { |
namespace interpreter { |
+const uint32_t BytecodeRegisterOptimizer::kInvalidEquivalenceId; |
+ |
// A class for tracking the state of a register. This class tracks |
// which equivalence set a register is a member of and also whether a |
// register is materialized in the bytecode stream. |
@@ -68,6 +70,7 @@ class BytecodeRegisterOptimizer::RegisterInfo final : public ZoneObject { |
void BytecodeRegisterOptimizer::RegisterInfo::AddToEquivalenceSetOf( |
RegisterInfo* info) { |
+ DCHECK_NE(kInvalidEquivalenceId, info->equivalence_id()); |
// Fix old list |
next_->prev_ = prev_; |
prev_->next_ = next_; |