| 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/v8.h" | 5 #include "src/v8.h" |
| 6 | 6 |
| 7 #include "src/heap-snapshot-generator-inl.h" | 7 #include "src/heap-snapshot-generator-inl.h" |
| 8 | 8 |
| 9 #include "src/allocation-tracker.h" | 9 #include "src/allocation-tracker.h" |
| 10 #include "src/code-stubs.h" | 10 #include "src/code-stubs.h" |
| (...skipping 2282 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2293 0); | 2293 0); |
| 2294 } | 2294 } |
| 2295 | 2295 |
| 2296 | 2296 |
| 2297 NativeObjectsExplorer::NativeObjectsExplorer( | 2297 NativeObjectsExplorer::NativeObjectsExplorer( |
| 2298 HeapSnapshot* snapshot, | 2298 HeapSnapshot* snapshot, |
| 2299 SnapshottingProgressReportingInterface* progress) | 2299 SnapshottingProgressReportingInterface* progress) |
| 2300 : isolate_(snapshot->profiler()->heap_object_map()->heap()->isolate()), | 2300 : isolate_(snapshot->profiler()->heap_object_map()->heap()->isolate()), |
| 2301 snapshot_(snapshot), | 2301 snapshot_(snapshot), |
| 2302 names_(snapshot_->profiler()->names()), | 2302 names_(snapshot_->profiler()->names()), |
| 2303 progress_(progress), | |
| 2304 embedder_queried_(false), | 2303 embedder_queried_(false), |
| 2305 objects_by_info_(RetainedInfosMatch), | 2304 objects_by_info_(RetainedInfosMatch), |
| 2306 native_groups_(StringsMatch), | 2305 native_groups_(StringsMatch), |
| 2307 filler_(NULL) { | 2306 filler_(NULL) { |
| 2308 synthetic_entries_allocator_ = | 2307 synthetic_entries_allocator_ = |
| 2309 new BasicHeapEntriesAllocator(snapshot, HeapEntry::kSynthetic); | 2308 new BasicHeapEntriesAllocator(snapshot, HeapEntry::kSynthetic); |
| 2310 native_entries_allocator_ = | 2309 native_entries_allocator_ = |
| 2311 new BasicHeapEntriesAllocator(snapshot, HeapEntry::kNative); | 2310 new BasicHeapEntriesAllocator(snapshot, HeapEntry::kNative); |
| 2312 } | 2311 } |
| 2313 | 2312 |
| (...skipping 826 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3140 writer_->AddString("\"<dummy>\""); | 3139 writer_->AddString("\"<dummy>\""); |
| 3141 for (int i = 1; i < sorted_strings.length(); ++i) { | 3140 for (int i = 1; i < sorted_strings.length(); ++i) { |
| 3142 writer_->AddCharacter(','); | 3141 writer_->AddCharacter(','); |
| 3143 SerializeString(sorted_strings[i]); | 3142 SerializeString(sorted_strings[i]); |
| 3144 if (writer_->aborted()) return; | 3143 if (writer_->aborted()) return; |
| 3145 } | 3144 } |
| 3146 } | 3145 } |
| 3147 | 3146 |
| 3148 | 3147 |
| 3149 } } // namespace v8::internal | 3148 } } // namespace v8::internal |
| OLD | NEW |