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