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 1314 matching lines...) Loading... |
1325 NULL, | 1325 NULL, |
1326 js_obj->GetInObjectPropertyOffset(index)); | 1326 js_obj->GetInObjectPropertyOffset(index)); |
1327 } else { | 1327 } else { |
1328 TagObject(value, "(hidden properties)"); | 1328 TagObject(value, "(hidden properties)"); |
1329 SetInternalReference( | 1329 SetInternalReference( |
1330 js_obj, entry, | 1330 js_obj, entry, |
1331 "hidden_properties", value, | 1331 "hidden_properties", value, |
1332 js_obj->GetInObjectPropertyOffset(index)); | 1332 js_obj->GetInObjectPropertyOffset(index)); |
1333 } | 1333 } |
1334 } else { | 1334 } else { |
1335 Object* value = js_obj->FastPropertyAt(index); | 1335 Object* value = js_obj->RawFastPropertyAt(index); |
1336 if (k != heap_->hidden_string()) { | 1336 if (k != heap_->hidden_string()) { |
1337 SetPropertyReference(js_obj, entry, k, value); | 1337 SetPropertyReference(js_obj, entry, k, value); |
1338 } else { | 1338 } else { |
1339 TagObject(value, "(hidden properties)"); | 1339 TagObject(value, "(hidden properties)"); |
1340 SetInternalReference(js_obj, entry, "hidden_properties", value); | 1340 SetInternalReference(js_obj, entry, "hidden_properties", value); |
1341 } | 1341 } |
1342 } | 1342 } |
1343 break; | 1343 break; |
1344 } | 1344 } |
1345 case CONSTANT_FUNCTION: | 1345 case CONSTANT_FUNCTION: |
(...skipping 1313 matching lines...) Loading... |
2659 | 2659 |
2660 | 2660 |
2661 void HeapSnapshotJSONSerializer::SortHashMap( | 2661 void HeapSnapshotJSONSerializer::SortHashMap( |
2662 HashMap* map, List<HashMap::Entry*>* sorted_entries) { | 2662 HashMap* map, List<HashMap::Entry*>* sorted_entries) { |
2663 for (HashMap::Entry* p = map->Start(); p != NULL; p = map->Next(p)) | 2663 for (HashMap::Entry* p = map->Start(); p != NULL; p = map->Next(p)) |
2664 sorted_entries->Add(p); | 2664 sorted_entries->Add(p); |
2665 sorted_entries->Sort(SortUsingEntryValue); | 2665 sorted_entries->Sort(SortUsingEntryValue); |
2666 } | 2666 } |
2667 | 2667 |
2668 } } // namespace v8::internal | 2668 } } // namespace v8::internal |
OLD | NEW |