Index: src/compiler/control-equivalence.h |
diff --git a/src/compiler/control-equivalence.h b/src/compiler/control-equivalence.h |
index 05777d7ed90a943459ffa2f7426e94f5db8e0e87..b76e04fe4354c85f5ffaee4aee22175125598991 100644 |
--- a/src/compiler/control-equivalence.h |
+++ b/src/compiler/control-equivalence.h |
@@ -124,7 +124,11 @@ class V8_EXPORT_PRIVATE ControlEquivalence final |
void DetermineParticipation(Node* exit); |
private: |
- NodeData* GetData(Node* node) { return &node_data_[node->id()]; } |
+ NodeData* GetData(Node* node) { |
+ size_t const index = node->id(); |
+ if (index >= node_data_.size()) node_data_.resize(index + 1, EmptyData()); |
+ return &node_data_[index]; |
+ } |
int NewClassNumber() { return class_number_++; } |
int NewDFSNumber() { return dfs_number_++; } |