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

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

Issue 2204893002: Add Map::weak_cell_cache internal link to heap snapshot. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 4 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 | « no previous file | test/cctest/test-heap-profiler.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 1302 matching lines...) Expand 10 before | Expand all | Expand 10 after
1313 if (constructor_or_backpointer->IsMap()) { 1313 if (constructor_or_backpointer->IsMap()) {
1314 TagObject(constructor_or_backpointer, "(back pointer)"); 1314 TagObject(constructor_or_backpointer, "(back pointer)");
1315 SetInternalReference(map, entry, "back_pointer", constructor_or_backpointer, 1315 SetInternalReference(map, entry, "back_pointer", constructor_or_backpointer,
1316 Map::kConstructorOrBackPointerOffset); 1316 Map::kConstructorOrBackPointerOffset);
1317 } else { 1317 } else {
1318 SetInternalReference(map, entry, "constructor", constructor_or_backpointer, 1318 SetInternalReference(map, entry, "constructor", constructor_or_backpointer,
1319 Map::kConstructorOrBackPointerOffset); 1319 Map::kConstructorOrBackPointerOffset);
1320 } 1320 }
1321 TagObject(map->dependent_code(), "(dependent code)"); 1321 TagObject(map->dependent_code(), "(dependent code)");
1322 MarkAsWeakContainer(map->dependent_code()); 1322 MarkAsWeakContainer(map->dependent_code());
1323 SetInternalReference(map, entry, 1323 SetInternalReference(map, entry, "dependent_code", map->dependent_code(),
1324 "dependent_code", map->dependent_code(),
1325 Map::kDependentCodeOffset); 1324 Map::kDependentCodeOffset);
1325 TagObject(map->weak_cell_cache(), "(weak cell)");
1326 SetInternalReference(map, entry, "weak_cell_cache", map->weak_cell_cache(),
1327 Map::kWeakCellCacheOffset);
1326 } 1328 }
1327 1329
1328 1330
1329 void V8HeapExplorer::ExtractSharedFunctionInfoReferences( 1331 void V8HeapExplorer::ExtractSharedFunctionInfoReferences(
1330 int entry, SharedFunctionInfo* shared) { 1332 int entry, SharedFunctionInfo* shared) {
1331 HeapObject* obj = shared; 1333 HeapObject* obj = shared;
1332 String* shared_name = shared->DebugName(); 1334 String* shared_name = shared->DebugName();
1333 const char* name = NULL; 1335 const char* name = NULL;
1334 if (shared_name != *heap_->isolate()->factory()->empty_string()) { 1336 if (shared_name != *heap_->isolate()->factory()->empty_string()) {
1335 name = names_->GetName(shared_name); 1337 name = names_->GetName(shared_name);
(...skipping 1789 matching lines...) Expand 10 before | Expand all | Expand 10 after
3125 for (int i = 1; i < sorted_strings.length(); ++i) { 3127 for (int i = 1; i < sorted_strings.length(); ++i) {
3126 writer_->AddCharacter(','); 3128 writer_->AddCharacter(',');
3127 SerializeString(sorted_strings[i]); 3129 SerializeString(sorted_strings[i]);
3128 if (writer_->aborted()) return; 3130 if (writer_->aborted()) return;
3129 } 3131 }
3130 } 3132 }
3131 3133
3132 3134
3133 } // namespace internal 3135 } // namespace internal
3134 } // namespace v8 3136 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | test/cctest/test-heap-profiler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698