| 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 2144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2155 #undef ROOT_NAME | 2155 #undef ROOT_NAME |
| 2156 #define STRUCT_MAP_NAME(NAME, Name, name) NAME_ENTRY(name##_map) | 2156 #define STRUCT_MAP_NAME(NAME, Name, name) NAME_ENTRY(name##_map) |
| 2157 STRUCT_LIST(STRUCT_MAP_NAME) | 2157 STRUCT_LIST(STRUCT_MAP_NAME) |
| 2158 #undef STRUCT_MAP_NAME | 2158 #undef STRUCT_MAP_NAME |
| 2159 #define STRING_NAME(name, str) NAME_ENTRY(name) | 2159 #define STRING_NAME(name, str) NAME_ENTRY(name) |
| 2160 INTERNALIZED_STRING_LIST(STRING_NAME) | 2160 INTERNALIZED_STRING_LIST(STRING_NAME) |
| 2161 #undef STRING_NAME | 2161 #undef STRING_NAME |
| 2162 #define SYMBOL_NAME(name) NAME_ENTRY(name) | 2162 #define SYMBOL_NAME(name) NAME_ENTRY(name) |
| 2163 PRIVATE_SYMBOL_LIST(SYMBOL_NAME) | 2163 PRIVATE_SYMBOL_LIST(SYMBOL_NAME) |
| 2164 #undef SYMBOL_NAME | 2164 #undef SYMBOL_NAME |
| 2165 #define SYMBOL_NAME(name, varname, description) NAME_ENTRY(name) |
| 2166 PUBLIC_SYMBOL_LIST(SYMBOL_NAME) |
| 2167 #undef SYMBOL_NAME |
| 2165 #undef NAME_ENTRY | 2168 #undef NAME_ENTRY |
| 2166 CHECK(!strong_gc_subroot_names_.is_empty()); | 2169 CHECK(!strong_gc_subroot_names_.is_empty()); |
| 2167 } | 2170 } |
| 2168 return strong_gc_subroot_names_.GetTag(object); | 2171 return strong_gc_subroot_names_.GetTag(object); |
| 2169 } | 2172 } |
| 2170 | 2173 |
| 2171 | 2174 |
| 2172 void V8HeapExplorer::TagObject(Object* obj, const char* tag) { | 2175 void V8HeapExplorer::TagObject(Object* obj, const char* tag) { |
| 2173 if (IsEssentialObject(obj)) { | 2176 if (IsEssentialObject(obj)) { |
| 2174 HeapEntry* entry = GetEntry(obj); | 2177 HeapEntry* entry = GetEntry(obj); |
| (...skipping 959 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3134 writer_->AddString("\"<dummy>\""); | 3137 writer_->AddString("\"<dummy>\""); |
| 3135 for (int i = 1; i < sorted_strings.length(); ++i) { | 3138 for (int i = 1; i < sorted_strings.length(); ++i) { |
| 3136 writer_->AddCharacter(','); | 3139 writer_->AddCharacter(','); |
| 3137 SerializeString(sorted_strings[i]); | 3140 SerializeString(sorted_strings[i]); |
| 3138 if (writer_->aborted()) return; | 3141 if (writer_->aborted()) return; |
| 3139 } | 3142 } |
| 3140 } | 3143 } |
| 3141 | 3144 |
| 3142 | 3145 |
| 3143 } } // namespace v8::internal | 3146 } } // namespace v8::internal |
| OLD | NEW |