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 1850 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1861 | 1861 |
1862 if (!progress_->ProgressReport(false)) interrupted = true; | 1862 if (!progress_->ProgressReport(false)) interrupted = true; |
1863 } | 1863 } |
1864 return interrupted; | 1864 return interrupted; |
1865 } | 1865 } |
1866 | 1866 |
1867 | 1867 |
1868 bool V8HeapExplorer::IsEssentialObject(Object* object) { | 1868 bool V8HeapExplorer::IsEssentialObject(Object* object) { |
1869 return object->IsHeapObject() && !object->IsOddball() && | 1869 return object->IsHeapObject() && !object->IsOddball() && |
1870 object != heap_->empty_byte_array() && | 1870 object != heap_->empty_byte_array() && |
1871 object != heap_->empty_bytecode_array() && | |
1872 object != heap_->empty_fixed_array() && | 1871 object != heap_->empty_fixed_array() && |
1873 object != heap_->empty_descriptor_array() && | 1872 object != heap_->empty_descriptor_array() && |
1874 object != heap_->fixed_array_map() && object != heap_->cell_map() && | 1873 object != heap_->fixed_array_map() && object != heap_->cell_map() && |
1875 object != heap_->global_property_cell_map() && | 1874 object != heap_->global_property_cell_map() && |
1876 object != heap_->shared_function_info_map() && | 1875 object != heap_->shared_function_info_map() && |
1877 object != heap_->free_space_map() && | 1876 object != heap_->free_space_map() && |
1878 object != heap_->one_pointer_filler_map() && | 1877 object != heap_->one_pointer_filler_map() && |
1879 object != heap_->two_pointer_filler_map(); | 1878 object != heap_->two_pointer_filler_map(); |
1880 } | 1879 } |
1881 | 1880 |
(...skipping 1274 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3156 for (int i = 1; i < sorted_strings.length(); ++i) { | 3155 for (int i = 1; i < sorted_strings.length(); ++i) { |
3157 writer_->AddCharacter(','); | 3156 writer_->AddCharacter(','); |
3158 SerializeString(sorted_strings[i]); | 3157 SerializeString(sorted_strings[i]); |
3159 if (writer_->aborted()) return; | 3158 if (writer_->aborted()) return; |
3160 } | 3159 } |
3161 } | 3160 } |
3162 | 3161 |
3163 | 3162 |
3164 } // namespace internal | 3163 } // namespace internal |
3165 } // namespace v8 | 3164 } // namespace v8 |
OLD | NEW |