| 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 1385 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1396 PropertyCell::kDependentCodeOffset); | 1396 PropertyCell::kDependentCodeOffset); |
| 1397 } | 1397 } |
| 1398 | 1398 |
| 1399 | 1399 |
| 1400 void V8HeapExplorer::ExtractAllocationSiteReferences(int entry, | 1400 void V8HeapExplorer::ExtractAllocationSiteReferences(int entry, |
| 1401 AllocationSite* site) { | 1401 AllocationSite* site) { |
| 1402 SetInternalReference(site, entry, "transition_info", site->transition_info(), | 1402 SetInternalReference(site, entry, "transition_info", site->transition_info(), |
| 1403 AllocationSite::kTransitionInfoOffset); | 1403 AllocationSite::kTransitionInfoOffset); |
| 1404 SetInternalReference(site, entry, "nested_site", site->nested_site(), | 1404 SetInternalReference(site, entry, "nested_site", site->nested_site(), |
| 1405 AllocationSite::kNestedSiteOffset); | 1405 AllocationSite::kNestedSiteOffset); |
| 1406 SetInternalReference(site, entry, "memento_found_count", | 1406 SetInternalReference(site, entry, "pretenure_data", |
| 1407 site->memento_found_count(), | 1407 site->pretenure_data(), |
| 1408 AllocationSite::kMementoFoundCountOffset); | 1408 AllocationSite::kPretenureDataOffset); |
| 1409 SetInternalReference(site, entry, "memento_create_count", | 1409 SetInternalReference(site, entry, "pretenure_create_count", |
| 1410 site->memento_create_count(), | 1410 site->pretenure_create_count(), |
| 1411 AllocationSite::kMementoCreateCountOffset); | 1411 AllocationSite::kPretenureCreateCountOffset); |
| 1412 SetInternalReference(site, entry, "pretenure_decision", | |
| 1413 site->pretenure_decision(), | |
| 1414 AllocationSite::kPretenureDecisionOffset); | |
| 1415 SetInternalReference(site, entry, "dependent_code", site->dependent_code(), | 1412 SetInternalReference(site, entry, "dependent_code", site->dependent_code(), |
| 1416 AllocationSite::kDependentCodeOffset); | 1413 AllocationSite::kDependentCodeOffset); |
| 1417 } | 1414 } |
| 1418 | 1415 |
| 1419 | 1416 |
| 1420 void V8HeapExplorer::ExtractClosureReferences(JSObject* js_obj, int entry) { | 1417 void V8HeapExplorer::ExtractClosureReferences(JSObject* js_obj, int entry) { |
| 1421 if (!js_obj->IsJSFunction()) return; | 1418 if (!js_obj->IsJSFunction()) return; |
| 1422 | 1419 |
| 1423 JSFunction* func = JSFunction::cast(js_obj); | 1420 JSFunction* func = JSFunction::cast(js_obj); |
| 1424 if (func->shared()->bound()) { | 1421 if (func->shared()->bound()) { |
| (...skipping 1532 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2957 writer_->AddString("\"<dummy>\""); | 2954 writer_->AddString("\"<dummy>\""); |
| 2958 for (int i = 1; i < sorted_strings.length(); ++i) { | 2955 for (int i = 1; i < sorted_strings.length(); ++i) { |
| 2959 writer_->AddCharacter(','); | 2956 writer_->AddCharacter(','); |
| 2960 SerializeString(sorted_strings[i]); | 2957 SerializeString(sorted_strings[i]); |
| 2961 if (writer_->aborted()) return; | 2958 if (writer_->aborted()) return; |
| 2962 } | 2959 } |
| 2963 } | 2960 } |
| 2964 | 2961 |
| 2965 | 2962 |
| 2966 } } // namespace v8::internal | 2963 } } // namespace v8::internal |
| OLD | NEW |