OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |