Index: src/lithium.cc |
diff --git a/src/lithium.cc b/src/lithium.cc |
index f19ba006fa852fd9b681686d018930b7f662873c..eb2198d85480242d08f166f5c673046dcd156b69 100644 |
--- a/src/lithium.cc |
+++ b/src/lithium.cc |
@@ -395,21 +395,18 @@ LChunk* LChunk::NewChunk(HGraph* graph) { |
AssertNoAllocation no_gc; |
int values = graph->GetMaximumValueID(); |
+ CompilationInfo* info = graph->info(); |
if (values > LUnallocated::kMaxVirtualRegisters) { |
- if (FLAG_trace_bailout) { |
- PrintF("Not enough virtual registers for (values).\n"); |
- } |
+ info->set_bailout_reason("not enough virtual registers for values"); |
return NULL; |
} |
LAllocator allocator(values, graph); |
- LChunkBuilder builder(graph->info(), graph, &allocator); |
+ LChunkBuilder builder(info, graph, &allocator); |
LChunk* chunk = builder.Build(); |
if (chunk == NULL) return NULL; |
if (!allocator.Allocate(chunk)) { |
- if (FLAG_trace_bailout) { |
- PrintF("Not enough virtual registers (regalloc).\n"); |
- } |
+ info->set_bailout_reason("not enough virtual registers (regalloc)"); |
return NULL; |
} |