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 1270 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1281 PropertyCell::kTypeOffset); | 1281 PropertyCell::kTypeOffset); |
1282 SetInternalReference(cell, entry, "dependent_code", cell->dependent_code(), | 1282 SetInternalReference(cell, entry, "dependent_code", cell->dependent_code(), |
1283 PropertyCell::kDependentCodeOffset); | 1283 PropertyCell::kDependentCodeOffset); |
1284 } | 1284 } |
1285 | 1285 |
1286 | 1286 |
1287 void V8HeapExplorer::ExtractAllocationSiteReferences(int entry, | 1287 void V8HeapExplorer::ExtractAllocationSiteReferences(int entry, |
1288 AllocationSite* site) { | 1288 AllocationSite* site) { |
1289 SetInternalReference(site, entry, "transition_info", site->transition_info(), | 1289 SetInternalReference(site, entry, "transition_info", site->transition_info(), |
1290 AllocationSite::kTransitionInfoOffset); | 1290 AllocationSite::kTransitionInfoOffset); |
| 1291 SetInternalReference(site, entry, "dependent_code", site->dependent_code(), |
| 1292 AllocationSite::kDependentCodeOffset); |
1291 } | 1293 } |
1292 | 1294 |
1293 | 1295 |
1294 void V8HeapExplorer::ExtractClosureReferences(JSObject* js_obj, int entry) { | 1296 void V8HeapExplorer::ExtractClosureReferences(JSObject* js_obj, int entry) { |
1295 if (!js_obj->IsJSFunction()) return; | 1297 if (!js_obj->IsJSFunction()) return; |
1296 | 1298 |
1297 JSFunction* func = JSFunction::cast(js_obj); | 1299 JSFunction* func = JSFunction::cast(js_obj); |
1298 if (func->shared()->bound()) { | 1300 if (func->shared()->bound()) { |
1299 FixedArray* bindings = func->function_bindings(); | 1301 FixedArray* bindings = func->function_bindings(); |
1300 SetNativeBindReference(js_obj, entry, "bound_this", | 1302 SetNativeBindReference(js_obj, entry, "bound_this", |
(...skipping 1402 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2703 | 2705 |
2704 | 2706 |
2705 void HeapSnapshotJSONSerializer::SortHashMap( | 2707 void HeapSnapshotJSONSerializer::SortHashMap( |
2706 HashMap* map, List<HashMap::Entry*>* sorted_entries) { | 2708 HashMap* map, List<HashMap::Entry*>* sorted_entries) { |
2707 for (HashMap::Entry* p = map->Start(); p != NULL; p = map->Next(p)) | 2709 for (HashMap::Entry* p = map->Start(); p != NULL; p = map->Next(p)) |
2708 sorted_entries->Add(p); | 2710 sorted_entries->Add(p); |
2709 sorted_entries->Sort(SortUsingEntryValue); | 2711 sorted_entries->Sort(SortUsingEntryValue); |
2710 } | 2712 } |
2711 | 2713 |
2712 } } // namespace v8::internal | 2714 } } // namespace v8::internal |
OLD | NEW |