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

Side by Side Diff: src/profile-generator.cc

Issue 10816005: Swapped transition array and descriptor array. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressed comments, and updated additional code comments. Created 8 years, 4 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
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 1991 matching lines...) Expand 10 before | Expand all | Expand 10 after
2002 2002
2003 2003
2004 void V8HeapExplorer::ExtractMapReferences(int entry, Map* map) { 2004 void V8HeapExplorer::ExtractMapReferences(int entry, Map* map) {
2005 SetInternalReference(map, entry, 2005 SetInternalReference(map, entry,
2006 "prototype", map->prototype(), Map::kPrototypeOffset); 2006 "prototype", map->prototype(), Map::kPrototypeOffset);
2007 SetInternalReference(map, entry, 2007 SetInternalReference(map, entry,
2008 "constructor", map->constructor(), 2008 "constructor", map->constructor(),
2009 Map::kConstructorOffset); 2009 Map::kConstructorOffset);
2010 if (!map->instance_descriptors()->IsEmpty()) { 2010 if (!map->instance_descriptors()->IsEmpty()) {
2011 TagObject(map->instance_descriptors(), "(map descriptors)"); 2011 TagObject(map->instance_descriptors(), "(map descriptors)");
2012 // TODO(verwaest): Check what to do here.
2012 SetInternalReference(map, entry, 2013 SetInternalReference(map, entry,
2013 "descriptors", map->instance_descriptors(), 2014 "descriptors", map->instance_descriptors(),
2014 Map::kInstanceDescriptorsOrBackPointerOffset); 2015 Map::kTransitionsOrBackPointerOffset);
2015 } 2016 }
2016 SetInternalReference(map, entry, 2017 SetInternalReference(map, entry,
2017 "code_cache", map->code_cache(), 2018 "code_cache", map->code_cache(),
2018 Map::kCodeCacheOffset); 2019 Map::kCodeCacheOffset);
2019 } 2020 }
2020 2021
2021 2022
2022 void V8HeapExplorer::ExtractSharedFunctionInfoReferences( 2023 void V8HeapExplorer::ExtractSharedFunctionInfoReferences(
2023 int entry, SharedFunctionInfo* shared) { 2024 int entry, SharedFunctionInfo* shared) {
2024 HeapObject* obj = shared; 2025 HeapObject* obj = shared;
(...skipping 1543 matching lines...) Expand 10 before | Expand all | Expand 10 after
3568 3569
3569 3570
3570 void HeapSnapshotJSONSerializer::SortHashMap( 3571 void HeapSnapshotJSONSerializer::SortHashMap(
3571 HashMap* map, List<HashMap::Entry*>* sorted_entries) { 3572 HashMap* map, List<HashMap::Entry*>* sorted_entries) {
3572 for (HashMap::Entry* p = map->Start(); p != NULL; p = map->Next(p)) 3573 for (HashMap::Entry* p = map->Start(); p != NULL; p = map->Next(p))
3573 sorted_entries->Add(p); 3574 sorted_entries->Add(p);
3574 sorted_entries->Sort(SortUsingEntryValue); 3575 sorted_entries->Sort(SortUsingEntryValue);
3575 } 3576 }
3576 3577
3577 } } // namespace v8::internal 3578 } } // namespace v8::internal
OLDNEW
« src/bootstrapper.cc ('K') | « src/objects-inl.h ('k') | src/runtime.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698