| 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 1494 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1505 } | 1505 } |
| 1506 | 1506 |
| 1507 | 1507 |
| 1508 void V8HeapExplorer::ExtractCellReferences(int entry, Cell* cell) { | 1508 void V8HeapExplorer::ExtractCellReferences(int entry, Cell* cell) { |
| 1509 SetInternalReference(cell, entry, "value", cell->value(), Cell::kValueOffset); | 1509 SetInternalReference(cell, entry, "value", cell->value(), Cell::kValueOffset); |
| 1510 } | 1510 } |
| 1511 | 1511 |
| 1512 | 1512 |
| 1513 void V8HeapExplorer::ExtractPropertyCellReferences(int entry, | 1513 void V8HeapExplorer::ExtractPropertyCellReferences(int entry, |
| 1514 PropertyCell* cell) { | 1514 PropertyCell* cell) { |
| 1515 ExtractCellReferences(entry, cell); | 1515 SetInternalReference(cell, entry, "value", cell->value(), |
| 1516 PropertyCell::kValueOffset); |
| 1516 MarkAsWeakContainer(cell->dependent_code()); | 1517 MarkAsWeakContainer(cell->dependent_code()); |
| 1517 SetInternalReference(cell, entry, "dependent_code", cell->dependent_code(), | 1518 SetInternalReference(cell, entry, "dependent_code", cell->dependent_code(), |
| 1518 PropertyCell::kDependentCodeOffset); | 1519 PropertyCell::kDependentCodeOffset); |
| 1519 } | 1520 } |
| 1520 | 1521 |
| 1521 | 1522 |
| 1522 void V8HeapExplorer::ExtractAllocationSiteReferences(int entry, | 1523 void V8HeapExplorer::ExtractAllocationSiteReferences(int entry, |
| 1523 AllocationSite* site) { | 1524 AllocationSite* site) { |
| 1524 SetInternalReference(site, entry, "transition_info", site->transition_info(), | 1525 SetInternalReference(site, entry, "transition_info", site->transition_info(), |
| 1525 AllocationSite::kTransitionInfoOffset); | 1526 AllocationSite::kTransitionInfoOffset); |
| (...skipping 1592 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3118 writer_->AddString("\"<dummy>\""); | 3119 writer_->AddString("\"<dummy>\""); |
| 3119 for (int i = 1; i < sorted_strings.length(); ++i) { | 3120 for (int i = 1; i < sorted_strings.length(); ++i) { |
| 3120 writer_->AddCharacter(','); | 3121 writer_->AddCharacter(','); |
| 3121 SerializeString(sorted_strings[i]); | 3122 SerializeString(sorted_strings[i]); |
| 3122 if (writer_->aborted()) return; | 3123 if (writer_->aborted()) return; |
| 3123 } | 3124 } |
| 3124 } | 3125 } |
| 3125 | 3126 |
| 3126 | 3127 |
| 3127 } } // namespace v8::internal | 3128 } } // namespace v8::internal |
| OLD | NEW |