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" |
11 #include "src/profiler/allocation-tracker.h" | 11 #include "src/profiler/allocation-tracker.h" |
12 #include "src/profiler/heap-profiler.h" | 12 #include "src/profiler/heap-profiler.h" |
13 #include "src/profiler/heap-snapshot-generator-inl.h" | 13 #include "src/profiler/heap-snapshot-generator-inl.h" |
14 #include "src/types.h" | |
15 | 14 |
16 namespace v8 { | 15 namespace v8 { |
17 namespace internal { | 16 namespace internal { |
18 | 17 |
19 | 18 |
20 HeapGraphEdge::HeapGraphEdge(Type type, const char* name, int from, int to) | 19 HeapGraphEdge::HeapGraphEdge(Type type, const char* name, int from, int to) |
21 : bit_field_(TypeField::encode(type) | FromIndexField::encode(from)), | 20 : bit_field_(TypeField::encode(type) | FromIndexField::encode(from)), |
22 to_index_(to), | 21 to_index_(to), |
23 name_(name) { | 22 name_(name) { |
24 DCHECK(type == kContextVariable | 23 DCHECK(type == kContextVariable |
(...skipping 3130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3155 for (int i = 1; i < sorted_strings.length(); ++i) { | 3154 for (int i = 1; i < sorted_strings.length(); ++i) { |
3156 writer_->AddCharacter(','); | 3155 writer_->AddCharacter(','); |
3157 SerializeString(sorted_strings[i]); | 3156 SerializeString(sorted_strings[i]); |
3158 if (writer_->aborted()) return; | 3157 if (writer_->aborted()) return; |
3159 } | 3158 } |
3160 } | 3159 } |
3161 | 3160 |
3162 | 3161 |
3163 } // namespace internal | 3162 } // namespace internal |
3164 } // namespace v8 | 3163 } // namespace v8 |
OLD | NEW |