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 1475 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1486 PropertyCell::kDependentCodeOffset); | 1486 PropertyCell::kDependentCodeOffset); |
1487 } | 1487 } |
1488 | 1488 |
1489 | 1489 |
1490 void V8HeapExplorer::ExtractAllocationSiteReferences(int entry, | 1490 void V8HeapExplorer::ExtractAllocationSiteReferences(int entry, |
1491 AllocationSite* site) { | 1491 AllocationSite* site) { |
1492 SetInternalReference(site, entry, "transition_info", site->transition_info(), | 1492 SetInternalReference(site, entry, "transition_info", site->transition_info(), |
1493 AllocationSite::kTransitionInfoOffset); | 1493 AllocationSite::kTransitionInfoOffset); |
1494 SetInternalReference(site, entry, "nested_site", site->nested_site(), | 1494 SetInternalReference(site, entry, "nested_site", site->nested_site(), |
1495 AllocationSite::kNestedSiteOffset); | 1495 AllocationSite::kNestedSiteOffset); |
| 1496 SetInternalReference(site, entry, "memento_found_count", |
| 1497 site->memento_found_count(), |
| 1498 AllocationSite::kMementoFoundCountOffset); |
| 1499 SetInternalReference(site, entry, "memento_create_count", |
| 1500 site->memento_create_count(), |
| 1501 AllocationSite::kMementoCreateCountOffset); |
| 1502 SetInternalReference(site, entry, "pretenure_decision", |
| 1503 site->pretenure_decision(), |
| 1504 AllocationSite::kPretenureDecisionOffset); |
1496 SetInternalReference(site, entry, "dependent_code", site->dependent_code(), | 1505 SetInternalReference(site, entry, "dependent_code", site->dependent_code(), |
1497 AllocationSite::kDependentCodeOffset); | 1506 AllocationSite::kDependentCodeOffset); |
1498 } | 1507 } |
1499 | 1508 |
1500 | 1509 |
1501 void V8HeapExplorer::ExtractClosureReferences(JSObject* js_obj, int entry) { | 1510 void V8HeapExplorer::ExtractClosureReferences(JSObject* js_obj, int entry) { |
1502 if (!js_obj->IsJSFunction()) return; | 1511 if (!js_obj->IsJSFunction()) return; |
1503 | 1512 |
1504 JSFunction* func = JSFunction::cast(js_obj); | 1513 JSFunction* func = JSFunction::cast(js_obj); |
1505 if (func->shared()->bound()) { | 1514 if (func->shared()->bound()) { |
(...skipping 1520 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3026 writer_->AddString("\"<dummy>\""); | 3035 writer_->AddString("\"<dummy>\""); |
3027 for (int i = 1; i < sorted_strings.length(); ++i) { | 3036 for (int i = 1; i < sorted_strings.length(); ++i) { |
3028 writer_->AddCharacter(','); | 3037 writer_->AddCharacter(','); |
3029 SerializeString(sorted_strings[i]); | 3038 SerializeString(sorted_strings[i]); |
3030 if (writer_->aborted()) return; | 3039 if (writer_->aborted()) return; |
3031 } | 3040 } |
3032 } | 3041 } |
3033 | 3042 |
3034 | 3043 |
3035 } } // namespace v8::internal | 3044 } } // namespace v8::internal |
OLD | NEW |