Index: src/hydrogen-gvn.cc |
diff --git a/src/hydrogen-gvn.cc b/src/hydrogen-gvn.cc |
index 5a9af5eb6c446a95a577ba2583de82ab9e4d3ee1..aa2dff765563977211ad473dd73b830a6ff5390b 100644 |
--- a/src/hydrogen-gvn.cc |
+++ b/src/hydrogen-gvn.cc |
@@ -368,10 +368,7 @@ HGlobalValueNumberer::HGlobalValueNumberer(HGraph* graph, CompilationInfo* info) |
block_side_effects_(graph->blocks()->length(), graph->zone()), |
loop_side_effects_(graph->blocks()->length(), graph->zone()), |
visited_on_paths_(graph->zone(), graph->blocks()->length()) { |
-#ifdef DEBUG |
- ASSERT(info->isolate()->optimizing_compiler_thread()->IsOptimizerThread() || |
- !info->isolate()->heap()->IsAllocationAllowed()); |
-#endif |
+ ASSERT(!AllowHandleAllocation::IsAllowed()); |
block_side_effects_.AddBlock(GVNFlagSet(), graph_->blocks()->length(), |
graph_->zone()); |
loop_side_effects_.AddBlock(GVNFlagSet(), graph_->blocks()->length(), |