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, "dependent_code", site->dependent_code(), |
| 1305 AllocationSite::kDependentCodeOffset); |
1304 } | 1306 } |
1305 | 1307 |
1306 | 1308 |
1307 void V8HeapExplorer::ExtractClosureReferences(JSObject* js_obj, int entry) { | 1309 void V8HeapExplorer::ExtractClosureReferences(JSObject* js_obj, int entry) { |
1308 if (!js_obj->IsJSFunction()) return; | 1310 if (!js_obj->IsJSFunction()) return; |
1309 | 1311 |
1310 JSFunction* func = JSFunction::cast(js_obj); | 1312 JSFunction* func = JSFunction::cast(js_obj); |
1311 if (func->shared()->bound()) { | 1313 if (func->shared()->bound()) { |
1312 FixedArray* bindings = func->function_bindings(); | 1314 FixedArray* bindings = func->function_bindings(); |
1313 SetNativeBindReference(js_obj, entry, "bound_this", | 1315 SetNativeBindReference(js_obj, entry, "bound_this", |
(...skipping 1390 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2704 writer_->AddString("\"<dummy>\""); | 2706 writer_->AddString("\"<dummy>\""); |
2705 for (int i = 1; i < sorted_strings.length(); ++i) { | 2707 for (int i = 1; i < sorted_strings.length(); ++i) { |
2706 writer_->AddCharacter(','); | 2708 writer_->AddCharacter(','); |
2707 SerializeString(sorted_strings[i]); | 2709 SerializeString(sorted_strings[i]); |
2708 if (writer_->aborted()) return; | 2710 if (writer_->aborted()) return; |
2709 } | 2711 } |
2710 } | 2712 } |
2711 | 2713 |
2712 | 2714 |
2713 } } // namespace v8::internal | 2715 } } // namespace v8::internal |
OLD | NEW |