Index: src/hydrogen.cc |
diff --git a/src/hydrogen.cc b/src/hydrogen.cc |
index 91cd61217df5bc120d06fe10ff26ddc2ff193d7c..b9e032487defd50f182da1aaf35f90a80bcb7f3b 100644 |
--- a/src/hydrogen.cc |
+++ b/src/hydrogen.cc |
@@ -3473,6 +3473,7 @@ |
void HGraph::FinalizeUniqueness() { |
DisallowHeapAllocation no_gc; |
+ DCHECK(!OptimizingCompilerThread::IsOptimizerThread(isolate())); |
for (int i = 0; i < blocks()->length(); ++i) { |
for (HInstructionIterator it(blocks()->at(i)); !it.Done(); it.Advance()) { |
it.Current()->FinalizeUniqueness(); |