Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(106)

Unified Diff: src/compiler/control-equivalence.h

Issue 2611603002: [turbofan] Tentative fix for ControlEquivalence crasher. (Closed)
Patch Set: Created 3 years, 12 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_++; }
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698