From 3e7e3f70a63c22cb3321f1d2c2fc6c84881c93f1 Mon Sep 17 00:00:00 2001 From: "hpayer@chromium.org" Date: Thu, 1 Aug 2013 08:49:27 +0000 Subject: [PATCH] Pretenure heap number in high promotino mode if a store requires a mutable heap number to be allocated. BUG= R=mstarzinger@chromium.org Review URL: https://codereview.chromium.org/21501002 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@16004 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- src/hydrogen.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/hydrogen.cc b/src/hydrogen.cc index 34ecfa34b..6875f99bd 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(HeapNumber::kSize); HInstruction* heap_number = Add(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(heap_number, HObjectAccess::ForHeapNumberValue(), value); -- 2.34.1