Index: src/compiler/pipeline.cc |
diff --git a/src/compiler/pipeline.cc b/src/compiler/pipeline.cc |
index 31d53e44ee327680c41de747d84fadfc4f65e150..9889b6a030263faa6f63b393f5fed994319ad269 100644 |
--- a/src/compiler/pipeline.cc |
+++ b/src/compiler/pipeline.cc |
@@ -386,12 +386,12 @@ Handle<Code> Pipeline::GenerateCode(Linkage* linkage, Graph* graph, |
{ |
int node_count = graph->NodeCount(); |
if (node_count > UnallocatedOperand::kMaxVirtualRegisters) { |
- linkage->info()->set_bailout_reason(kNotEnoughVirtualRegistersForValues); |
+ linkage->info()->AbortOptimization(kNotEnoughVirtualRegistersForValues); |
return Handle<Code>::null(); |
} |
RegisterAllocator allocator(&sequence); |
if (!allocator.Allocate()) { |
- linkage->info()->set_bailout_reason(kNotEnoughVirtualRegistersRegalloc); |
+ linkage->info()->AbortOptimization(kNotEnoughVirtualRegistersRegalloc); |
return Handle<Code>::null(); |
} |
} |