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

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

Issue 2672363002: Link type feedback vectors to the shared function info. (Closed)
Patch Set: rebase Created 3 years, 10 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/objects-inl.h ('k') | test/cctest/interpreter/interpreter-tester.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 <utility> 7 #include <utility>
8 8
9 #include "src/code-stubs.h" 9 #include "src/code-stubs.h"
10 #include "src/conversions.h" 10 #include "src/conversions.h"
(...skipping 1809 matching lines...) Expand 10 before | Expand all | Expand 10 after
1820 } 1820 }
1821 return interrupted; 1821 return interrupted;
1822 } 1822 }
1823 1823
1824 1824
1825 bool V8HeapExplorer::IsEssentialObject(Object* object) { 1825 bool V8HeapExplorer::IsEssentialObject(Object* object) {
1826 return object->IsHeapObject() && !object->IsOddball() && 1826 return object->IsHeapObject() && !object->IsOddball() &&
1827 object != heap_->empty_byte_array() && 1827 object != heap_->empty_byte_array() &&
1828 object != heap_->empty_fixed_array() && 1828 object != heap_->empty_fixed_array() &&
1829 object != heap_->empty_descriptor_array() && 1829 object != heap_->empty_descriptor_array() &&
1830 object != heap_->empty_feedback_vector() &&
1831 object != heap_->fixed_array_map() && object != heap_->cell_map() && 1830 object != heap_->fixed_array_map() && object != heap_->cell_map() &&
1832 object != heap_->global_property_cell_map() && 1831 object != heap_->global_property_cell_map() &&
1833 object != heap_->shared_function_info_map() && 1832 object != heap_->shared_function_info_map() &&
1834 object != heap_->free_space_map() && 1833 object != heap_->free_space_map() &&
1835 object != heap_->one_pointer_filler_map() && 1834 object != heap_->one_pointer_filler_map() &&
1836 object != heap_->two_pointer_filler_map(); 1835 object != heap_->two_pointer_filler_map();
1837 } 1836 }
1838 1837
1839 bool V8HeapExplorer::IsEssentialHiddenReference(Object* parent, 1838 bool V8HeapExplorer::IsEssentialHiddenReference(Object* parent,
1840 int field_offset) { 1839 int field_offset) {
(...skipping 1291 matching lines...) Expand 10 before | Expand all | Expand 10 after
3132 for (int i = 1; i < sorted_strings.length(); ++i) { 3131 for (int i = 1; i < sorted_strings.length(); ++i) {
3133 writer_->AddCharacter(','); 3132 writer_->AddCharacter(',');
3134 SerializeString(sorted_strings[i]); 3133 SerializeString(sorted_strings[i]);
3135 if (writer_->aborted()) return; 3134 if (writer_->aborted()) return;
3136 } 3135 }
3137 } 3136 }
3138 3137
3139 3138
3140 } // namespace internal 3139 } // namespace internal
3141 } // namespace v8 3140 } // namespace v8
OLDNEW
« no previous file with comments | « src/objects-inl.h ('k') | test/cctest/interpreter/interpreter-tester.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698