| 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/profiler/allocation-tracker.h" | 10 #include "src/profiler/allocation-tracker.h" |
| (...skipping 2142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2153 STRUCT_LIST(STRUCT_MAP_NAME) | 2153 STRUCT_LIST(STRUCT_MAP_NAME) |
| 2154 #undef STRUCT_MAP_NAME | 2154 #undef STRUCT_MAP_NAME |
| 2155 #define STRING_NAME(name, str) NAME_ENTRY(name) | 2155 #define STRING_NAME(name, str) NAME_ENTRY(name) |
| 2156 INTERNALIZED_STRING_LIST(STRING_NAME) | 2156 INTERNALIZED_STRING_LIST(STRING_NAME) |
| 2157 #undef STRING_NAME | 2157 #undef STRING_NAME |
| 2158 #define SYMBOL_NAME(name) NAME_ENTRY(name) | 2158 #define SYMBOL_NAME(name) NAME_ENTRY(name) |
| 2159 PRIVATE_SYMBOL_LIST(SYMBOL_NAME) | 2159 PRIVATE_SYMBOL_LIST(SYMBOL_NAME) |
| 2160 #undef SYMBOL_NAME | 2160 #undef SYMBOL_NAME |
| 2161 #define SYMBOL_NAME(name, description) NAME_ENTRY(name) | 2161 #define SYMBOL_NAME(name, description) NAME_ENTRY(name) |
| 2162 PUBLIC_SYMBOL_LIST(SYMBOL_NAME) | 2162 PUBLIC_SYMBOL_LIST(SYMBOL_NAME) |
| 2163 WELL_KNOWN_SYMBOL_LIST(SYMBOL_NAME) |
| 2163 #undef SYMBOL_NAME | 2164 #undef SYMBOL_NAME |
| 2164 #undef NAME_ENTRY | 2165 #undef NAME_ENTRY |
| 2165 CHECK(!strong_gc_subroot_names_.is_empty()); | 2166 CHECK(!strong_gc_subroot_names_.is_empty()); |
| 2166 } | 2167 } |
| 2167 return strong_gc_subroot_names_.GetTag(object); | 2168 return strong_gc_subroot_names_.GetTag(object); |
| 2168 } | 2169 } |
| 2169 | 2170 |
| 2170 | 2171 |
| 2171 void V8HeapExplorer::TagObject(Object* obj, const char* tag) { | 2172 void V8HeapExplorer::TagObject(Object* obj, const char* tag) { |
| 2172 if (IsEssentialObject(obj)) { | 2173 if (IsEssentialObject(obj)) { |
| (...skipping 995 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3168 for (int i = 1; i < sorted_strings.length(); ++i) { | 3169 for (int i = 1; i < sorted_strings.length(); ++i) { |
| 3169 writer_->AddCharacter(','); | 3170 writer_->AddCharacter(','); |
| 3170 SerializeString(sorted_strings[i]); | 3171 SerializeString(sorted_strings[i]); |
| 3171 if (writer_->aborted()) return; | 3172 if (writer_->aborted()) return; |
| 3172 } | 3173 } |
| 3173 } | 3174 } |
| 3174 | 3175 |
| 3175 | 3176 |
| 3176 } // namespace internal | 3177 } // namespace internal |
| 3177 } // namespace v8 | 3178 } // namespace v8 |
| OLD | NEW |