| OLD | NEW | 
|---|
| 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 1995 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 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     SetInternalReference(map, entry, | 2012     SetInternalReference(map, entry, | 
| 2013                          "descriptors", map->instance_descriptors(), | 2013                          "descriptors", map->instance_descriptors(), | 
| 2014                          Map::kInstanceDescriptorsOrBitField3Offset); | 2014                          Map::kInstanceDescriptorsOrBitField3Offset); | 
| 2015   } | 2015   } | 
| 2016   if (map->unchecked_prototype_transitions()->IsFixedArray()) { |  | 
| 2017     TagObject(map->prototype_transitions(), "(prototype transitions)"); |  | 
| 2018     SetInternalReference(map, entry, |  | 
| 2019                          "prototype_transitions", map->prototype_transitions(), |  | 
| 2020                          Map::kPrototypeTransitionsOrBackPointerOffset); |  | 
| 2021   } else { |  | 
| 2022     SetInternalReference(map, entry, |  | 
| 2023                          "back_pointer", map->GetBackPointer(), |  | 
| 2024                          Map::kPrototypeTransitionsOrBackPointerOffset); |  | 
| 2025   } |  | 
| 2026   SetInternalReference(map, entry, | 2016   SetInternalReference(map, entry, | 
| 2027                        "code_cache", map->code_cache(), | 2017                        "code_cache", map->code_cache(), | 
| 2028                        Map::kCodeCacheOffset); | 2018                        Map::kCodeCacheOffset); | 
| 2029 } | 2019 } | 
| 2030 | 2020 | 
| 2031 | 2021 | 
| 2032 void V8HeapExplorer::ExtractSharedFunctionInfoReferences( | 2022 void V8HeapExplorer::ExtractSharedFunctionInfoReferences( | 
| 2033     int entry, SharedFunctionInfo* shared) { | 2023     int entry, SharedFunctionInfo* shared) { | 
| 2034   HeapObject* obj = shared; | 2024   HeapObject* obj = shared; | 
| 2035   SetInternalReference(obj, entry, | 2025   SetInternalReference(obj, entry, | 
| (...skipping 1541 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 3577 | 3567 | 
| 3578 | 3568 | 
| 3579 void HeapSnapshotJSONSerializer::SortHashMap( | 3569 void HeapSnapshotJSONSerializer::SortHashMap( | 
| 3580     HashMap* map, List<HashMap::Entry*>* sorted_entries) { | 3570     HashMap* map, List<HashMap::Entry*>* sorted_entries) { | 
| 3581   for (HashMap::Entry* p = map->Start(); p != NULL; p = map->Next(p)) | 3571   for (HashMap::Entry* p = map->Start(); p != NULL; p = map->Next(p)) | 
| 3582     sorted_entries->Add(p); | 3572     sorted_entries->Add(p); | 
| 3583   sorted_entries->Sort(SortUsingEntryValue); | 3573   sorted_entries->Sort(SortUsingEntryValue); | 
| 3584 } | 3574 } | 
| 3585 | 3575 | 
| 3586 } }  // namespace v8::internal | 3576 } }  // namespace v8::internal | 
| OLD | NEW | 
|---|