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

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

Issue 23463047: Add field nested_sites to AllocationSite. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Comment responsio. Created 7 years, 3 months 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/hydrogen-instructions.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 1283 matching lines...) Expand 10 before | Expand all | Expand 10 after
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, "nested_site", site->nested_site(),
1305 AllocationSite::kNestedSiteOffset);
1304 SetInternalReference(site, entry, "dependent_code", site->dependent_code(), 1306 SetInternalReference(site, entry, "dependent_code", site->dependent_code(),
1305 AllocationSite::kDependentCodeOffset); 1307 AllocationSite::kDependentCodeOffset);
1306 } 1308 }
1307 1309
1308 1310
1309 void V8HeapExplorer::ExtractClosureReferences(JSObject* js_obj, int entry) { 1311 void V8HeapExplorer::ExtractClosureReferences(JSObject* js_obj, int entry) {
1310 if (!js_obj->IsJSFunction()) return; 1312 if (!js_obj->IsJSFunction()) return;
1311 1313
1312 JSFunction* func = JSFunction::cast(js_obj); 1314 JSFunction* func = JSFunction::cast(js_obj);
1313 if (func->shared()->bound()) { 1315 if (func->shared()->bound()) {
(...skipping 1392 matching lines...) Expand 10 before | Expand all | Expand 10 after
2706 writer_->AddString("\"<dummy>\""); 2708 writer_->AddString("\"<dummy>\"");
2707 for (int i = 1; i < sorted_strings.length(); ++i) { 2709 for (int i = 1; i < sorted_strings.length(); ++i) {
2708 writer_->AddCharacter(','); 2710 writer_->AddCharacter(',');
2709 SerializeString(sorted_strings[i]); 2711 SerializeString(sorted_strings[i]);
2710 if (writer_->aborted()) return; 2712 if (writer_->aborted()) return;
2711 } 2713 }
2712 } 2714 }
2713 2715
2714 2716
2715 } } // namespace v8::internal 2717 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/code-stubs-hydrogen.cc ('k') | src/hydrogen-instructions.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698