Index: src/hydrogen.cc |
diff --git a/src/hydrogen.cc b/src/hydrogen.cc |
index 9997f1311b4db0151d93ffafb875bd8e888a72af..0ea38a402568bf427d712e87a3cbad2bf7a80fac 100644 |
--- a/src/hydrogen.cc |
+++ b/src/hydrogen.cc |
@@ -4531,7 +4531,8 @@ HInstruction* HOptimizedGraphBuilder::BuildStoreNamedField( |
NoObservableSideEffectsScope no_side_effects(this); |
HInstruction* heap_number_size = Add<HConstant>(HeapNumber::kSize); |
HInstruction* heap_number = Add<HAllocate>(heap_number_size, |
- HType::HeapNumber(), NOT_TENURED, HEAP_NUMBER_TYPE); |
+ HType::HeapNumber(), isolate()->heap()->GetPretenureMode(), |
+ HEAP_NUMBER_TYPE); |
AddStoreMapConstant(heap_number, isolate()->factory()->heap_number_map()); |
Add<HStoreNamedField>(heap_number, HObjectAccess::ForHeapNumberValue(), |
value); |