Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(50)

Side by Side Diff: src/profiler/heap-snapshot-generator.cc

Issue 2337123003: [turbofan] Collect invocation counts and compute relative call frequencies. (Closed)
Patch Set: Address feedback. Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/heap/heap.cc ('k') | src/type-feedback-vector.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "src/profiler/heap-snapshot-generator.h" 5 #include "src/profiler/heap-snapshot-generator.h"
6 6
7 #include "src/code-stubs.h" 7 #include "src/code-stubs.h"
8 #include "src/conversions.h" 8 #include "src/conversions.h"
9 #include "src/debug/debug.h" 9 #include "src/debug/debug.h"
10 #include "src/objects-body-descriptors.h" 10 #include "src/objects-body-descriptors.h"
(...skipping 1812 matching lines...) Expand 10 before | Expand all | Expand 10 after
1823 } 1823 }
1824 return interrupted; 1824 return interrupted;
1825 } 1825 }
1826 1826
1827 1827
1828 bool V8HeapExplorer::IsEssentialObject(Object* object) { 1828 bool V8HeapExplorer::IsEssentialObject(Object* object) {
1829 return object->IsHeapObject() && !object->IsOddball() && 1829 return object->IsHeapObject() && !object->IsOddball() &&
1830 object != heap_->empty_byte_array() && 1830 object != heap_->empty_byte_array() &&
1831 object != heap_->empty_fixed_array() && 1831 object != heap_->empty_fixed_array() &&
1832 object != heap_->empty_descriptor_array() && 1832 object != heap_->empty_descriptor_array() &&
1833 object != heap_->empty_type_feedback_vector() &&
1833 object != heap_->fixed_array_map() && object != heap_->cell_map() && 1834 object != heap_->fixed_array_map() && object != heap_->cell_map() &&
1834 object != heap_->global_property_cell_map() && 1835 object != heap_->global_property_cell_map() &&
1835 object != heap_->shared_function_info_map() && 1836 object != heap_->shared_function_info_map() &&
1836 object != heap_->free_space_map() && 1837 object != heap_->free_space_map() &&
1837 object != heap_->one_pointer_filler_map() && 1838 object != heap_->one_pointer_filler_map() &&
1838 object != heap_->two_pointer_filler_map(); 1839 object != heap_->two_pointer_filler_map();
1839 } 1840 }
1840 1841
1841 bool V8HeapExplorer::IsEssentialHiddenReference(Object* parent, 1842 bool V8HeapExplorer::IsEssentialHiddenReference(Object* parent,
1842 int field_offset) { 1843 int field_offset) {
(...skipping 1278 matching lines...) Expand 10 before | Expand all | Expand 10 after
3121 for (int i = 1; i < sorted_strings.length(); ++i) { 3122 for (int i = 1; i < sorted_strings.length(); ++i) {
3122 writer_->AddCharacter(','); 3123 writer_->AddCharacter(',');
3123 SerializeString(sorted_strings[i]); 3124 SerializeString(sorted_strings[i]);
3124 if (writer_->aborted()) return; 3125 if (writer_->aborted()) return;
3125 } 3126 }
3126 } 3127 }
3127 3128
3128 3129
3129 } // namespace internal 3130 } // namespace internal
3130 } // namespace v8 3131 } // namespace v8
OLDNEW
« no previous file with comments | « src/heap/heap.cc ('k') | src/type-feedback-vector.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698