Chromium Code Reviews| Index: src/lithium.cc |
| diff --git a/src/lithium.cc b/src/lithium.cc |
| index 1be4b0654bbba424980c629f611d33c212ee99f4..7b902e2492a6ebe4f7e11d1014d630e1d9bee62f 100644 |
| --- a/src/lithium.cc |
| +++ b/src/lithium.cc |
| @@ -423,6 +423,7 @@ LChunk* LChunk::NewChunk(HGraph* graph) { |
| DisallowHandleAllocation no_handles; |
| DisallowHeapAllocation no_gc; |
| int values = graph->GetMaximumValueID(); |
| + graph->DisallowAddingNewValues(); |
|
Toon Verwaest
2013/11/08 13:32:21
I'd swap the 2 lines above, just in the case someo
|
| CompilationInfo* info = graph->info(); |
| if (values > LUnallocated::kMaxVirtualRegisters) { |
| info->set_bailout_reason(kNotEnoughVirtualRegistersForValues); |