OLD | NEW |
1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 1283 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1294 PropertyCell::kTypeOffset); | 1294 PropertyCell::kTypeOffset); |
1295 SetInternalReference(cell, entry, "dependent_code", cell->dependent_code(), | 1295 SetInternalReference(cell, entry, "dependent_code", cell->dependent_code(), |
1296 PropertyCell::kDependentCodeOffset); | 1296 PropertyCell::kDependentCodeOffset); |
1297 } | 1297 } |
1298 | 1298 |
1299 | 1299 |
1300 void V8HeapExplorer::ExtractAllocationSiteReferences(int entry, | 1300 void V8HeapExplorer::ExtractAllocationSiteReferences(int entry, |
1301 AllocationSite* site) { | 1301 AllocationSite* site) { |
1302 SetInternalReference(site, entry, "transition_info", site->transition_info(), | 1302 SetInternalReference(site, entry, "transition_info", site->transition_info(), |
1303 AllocationSite::kTransitionInfoOffset); | 1303 AllocationSite::kTransitionInfoOffset); |
| 1304 SetInternalReference(site, entry, "nested_site", site->nested_site(), |
| 1305 AllocationSite::kNestedSiteOffset); |
1304 SetInternalReference(site, entry, "dependent_code", site->dependent_code(), | 1306 SetInternalReference(site, entry, "dependent_code", site->dependent_code(), |
1305 AllocationSite::kDependentCodeOffset); | 1307 AllocationSite::kDependentCodeOffset); |
1306 } | 1308 } |
1307 | 1309 |
1308 | 1310 |
1309 void V8HeapExplorer::ExtractClosureReferences(JSObject* js_obj, int entry) { | 1311 void V8HeapExplorer::ExtractClosureReferences(JSObject* js_obj, int entry) { |
1310 if (!js_obj->IsJSFunction()) return; | 1312 if (!js_obj->IsJSFunction()) return; |
1311 | 1313 |
1312 JSFunction* func = JSFunction::cast(js_obj); | 1314 JSFunction* func = JSFunction::cast(js_obj); |
1313 if (func->shared()->bound()) { | 1315 if (func->shared()->bound()) { |
(...skipping 1392 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2706 writer_->AddString("\"<dummy>\""); | 2708 writer_->AddString("\"<dummy>\""); |
2707 for (int i = 1; i < sorted_strings.length(); ++i) { | 2709 for (int i = 1; i < sorted_strings.length(); ++i) { |
2708 writer_->AddCharacter(','); | 2710 writer_->AddCharacter(','); |
2709 SerializeString(sorted_strings[i]); | 2711 SerializeString(sorted_strings[i]); |
2710 if (writer_->aborted()) return; | 2712 if (writer_->aborted()) return; |
2711 } | 2713 } |
2712 } | 2714 } |
2713 | 2715 |
2714 | 2716 |
2715 } } // namespace v8::internal | 2717 } } // namespace v8::internal |
OLD | NEW |