Index: src/compiler/node.cc |
diff --git a/src/compiler/node.cc b/src/compiler/node.cc |
index 89eae1d2bc9e4ad2235d5f8d6e423adaff1cd9cf..bac783d66c38de77a6bb8428c9a915564ba42ff7 100644 |
--- a/src/compiler/node.cc |
+++ b/src/compiler/node.cc |
@@ -56,6 +56,16 @@ Node* Node::New(Zone* zone, NodeId id, const Operator* op, int input_count, |
Node* node; |
bool is_inline; |
+#if DEBUG |
+ // Verify that none of the inputs are {nullptr}. |
+ for (int i = 0; i < input_count; i++) { |
+ if (inputs[i] == nullptr) { |
+ V8_Fatal(__FILE__, __LINE__, "Node::New() Error: #%d:%s[%d] is NULL", |
+ static_cast<int>(id), op->mnemonic(), i); |
+ } |
+ } |
+#endif |
+ |
if (input_count > kMaxInlineCapacity) { |
// Allocate out-of-line inputs. |
int capacity = |