Version 3.24.14

ES6: Add Object.getOwnPropertySymbols (issue 3049).

Performance and stability improvements on all platforms.

git-svn-id: http://v8.googlecode.com/svn/trunk@18540 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
diff --git a/src/heap-inl.h b/src/heap-inl.h
index 3dce348..5e6fb2b 100644
--- a/src/heap-inl.h
+++ b/src/heap-inl.h
@@ -484,15 +484,16 @@
 
 
 void Heap::UpdateAllocationSiteFeedback(HeapObject* object) {
+  Heap* heap = object->GetHeap();
   if (FLAG_allocation_site_pretenuring &&
+      heap->new_space_high_promotion_mode_active_ &&
       AllocationSite::CanTrack(object->map()->instance_type())) {
     AllocationMemento* memento = AllocationMemento::FindForHeapObject(
-        object, true);
+        object, heap, true);
     if (memento != NULL) {
       ASSERT(memento->IsValid());
       bool add_to_scratchpad =
           memento->GetAllocationSite()->IncrementMementoFoundCount();
-      Heap* heap = object->GetIsolate()->heap();
       if (add_to_scratchpad && heap->allocation_sites_scratchpad_length <
               kAllocationSiteScratchpadSize) {
         heap->allocation_sites_scratchpad[