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

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

Issue 1667693002: [interpreter] do not serialize bytecode for snapshot. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: turn flag off Created 4 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/heap/heap.cc ('k') | src/runtime/runtime-compiler.cc » ('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 1850 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « src/heap/heap.cc ('k') | src/runtime/runtime-compiler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698