Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(290)

Side by Side Diff: src/heap-snapshot-generator.cc

Issue 43603002: Pretenuring calculation fields in AllocationSite. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: REBASE Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/code-stubs-hydrogen.cc ('k') | src/objects.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 1508 matching lines...) Expand 10 before | Expand all | Expand 10 after
1519 PropertyCell::kDependentCodeOffset); 1519 PropertyCell::kDependentCodeOffset);
1520 } 1520 }
1521 1521
1522 1522
1523 void V8HeapExplorer::ExtractAllocationSiteReferences(int entry, 1523 void V8HeapExplorer::ExtractAllocationSiteReferences(int entry,
1524 AllocationSite* site) { 1524 AllocationSite* site) {
1525 SetInternalReference(site, entry, "transition_info", site->transition_info(), 1525 SetInternalReference(site, entry, "transition_info", site->transition_info(),
1526 AllocationSite::kTransitionInfoOffset); 1526 AllocationSite::kTransitionInfoOffset);
1527 SetInternalReference(site, entry, "nested_site", site->nested_site(), 1527 SetInternalReference(site, entry, "nested_site", site->nested_site(),
1528 AllocationSite::kNestedSiteOffset); 1528 AllocationSite::kNestedSiteOffset);
1529 SetInternalReference(site, entry, "memento_found_count",
1530 site->memento_found_count(),
1531 AllocationSite::kMementoFoundCountOffset);
1532 SetInternalReference(site, entry, "memento_create_count",
1533 site->memento_create_count(),
1534 AllocationSite::kMementoCreateCountOffset);
1535 SetInternalReference(site, entry, "pretenure_decision",
1536 site->pretenure_decision(),
1537 AllocationSite::kPretenureDecisionOffset);
1529 SetInternalReference(site, entry, "dependent_code", site->dependent_code(), 1538 SetInternalReference(site, entry, "dependent_code", site->dependent_code(),
1530 AllocationSite::kDependentCodeOffset); 1539 AllocationSite::kDependentCodeOffset);
1531 } 1540 }
1532 1541
1533 1542
1534 void V8HeapExplorer::ExtractClosureReferences(JSObject* js_obj, int entry) { 1543 void V8HeapExplorer::ExtractClosureReferences(JSObject* js_obj, int entry) {
1535 if (!js_obj->IsJSFunction()) return; 1544 if (!js_obj->IsJSFunction()) return;
1536 1545
1537 JSFunction* func = JSFunction::cast(js_obj); 1546 JSFunction* func = JSFunction::cast(js_obj);
1538 if (func->shared()->bound()) { 1547 if (func->shared()->bound()) {
(...skipping 1530 matching lines...) Expand 10 before | Expand all | Expand 10 after
3069 writer_->AddString("\"<dummy>\""); 3078 writer_->AddString("\"<dummy>\"");
3070 for (int i = 1; i < sorted_strings.length(); ++i) { 3079 for (int i = 1; i < sorted_strings.length(); ++i) {
3071 writer_->AddCharacter(','); 3080 writer_->AddCharacter(',');
3072 SerializeString(sorted_strings[i]); 3081 SerializeString(sorted_strings[i]);
3073 if (writer_->aborted()) return; 3082 if (writer_->aborted()) return;
3074 } 3083 }
3075 } 3084 }
3076 3085
3077 3086
3078 } } // namespace v8::internal 3087 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/code-stubs-hydrogen.cc ('k') | src/objects.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698