Index: src/lithium.cc |
diff --git a/src/lithium.cc b/src/lithium.cc |
index e2cadf3ec4d8027aed20261baa85efed07e86397..95310bffd3fdbd4d89735c44192daa0bce54a17b 100644 |
--- a/src/lithium.cc |
+++ b/src/lithium.cc |
@@ -392,6 +392,7 @@ Representation LChunk::LookupLiteralRepresentation( |
LChunk* LChunk::NewChunk(HGraph* graph) { |
DisallowHandleAllocation no_handles; |
DisallowHeapAllocation no_gc; |
+ graph->DisallowAddingNewValues(); |
int values = graph->GetMaximumValueID(); |
CompilationInfo* info = graph->info(); |
if (values > LUnallocated::kMaxVirtualRegisters) { |