Index: src/hydrogen.cc |
diff --git a/src/hydrogen.cc b/src/hydrogen.cc |
index 7a723c57dbb6a45cc4c1a14c0eac85ee62b20808..3acf0e99c2b43c59e8a554a795346068055ed549 100644 |
--- a/src/hydrogen.cc |
+++ b/src/hydrogen.cc |
@@ -3473,6 +3473,7 @@ HBasicBlock* HGraph::CreateBasicBlock() { |
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(); |