OLD | NEW |
1 // Copyright 2011 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 |
11 // with the distribution. | 11 // with the distribution. |
(...skipping 2598 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2610 child_obj, child_entry); | 2610 child_obj, child_entry); |
2611 } | 2611 } |
2612 } | 2612 } |
2613 | 2613 |
2614 | 2614 |
2615 void V8HeapExplorer::TagObject(Object* obj, const char* tag) { | 2615 void V8HeapExplorer::TagObject(Object* obj, const char* tag) { |
2616 if (obj->IsHeapObject() && | 2616 if (obj->IsHeapObject() && |
2617 !obj->IsOddball() && | 2617 !obj->IsOddball() && |
2618 obj != heap_->raw_unchecked_empty_byte_array() && | 2618 obj != heap_->raw_unchecked_empty_byte_array() && |
2619 obj != heap_->raw_unchecked_empty_fixed_array() && | 2619 obj != heap_->raw_unchecked_empty_fixed_array() && |
2620 obj != heap_->raw_unchecked_empty_fixed_double_array() && | |
2621 obj != heap_->raw_unchecked_empty_descriptor_array()) { | 2620 obj != heap_->raw_unchecked_empty_descriptor_array()) { |
2622 objects_tags_.SetTag(obj, tag); | 2621 objects_tags_.SetTag(obj, tag); |
2623 } | 2622 } |
2624 } | 2623 } |
2625 | 2624 |
2626 | 2625 |
2627 class GlobalObjectsEnumerator : public ObjectVisitor { | 2626 class GlobalObjectsEnumerator : public ObjectVisitor { |
2628 public: | 2627 public: |
2629 virtual void VisitPointers(Object** start, Object** end) { | 2628 virtual void VisitPointers(Object** start, Object** end) { |
2630 for (Object** p = start; p < end; p++) { | 2629 for (Object** p = start; p < end; p++) { |
(...skipping 1096 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3727 | 3726 |
3728 | 3727 |
3729 void HeapSnapshotJSONSerializer::SortHashMap( | 3728 void HeapSnapshotJSONSerializer::SortHashMap( |
3730 HashMap* map, List<HashMap::Entry*>* sorted_entries) { | 3729 HashMap* map, List<HashMap::Entry*>* sorted_entries) { |
3731 for (HashMap::Entry* p = map->Start(); p != NULL; p = map->Next(p)) | 3730 for (HashMap::Entry* p = map->Start(); p != NULL; p = map->Next(p)) |
3732 sorted_entries->Add(p); | 3731 sorted_entries->Add(p); |
3733 sorted_entries->Sort(SortUsingEntryValue); | 3732 sorted_entries->Sort(SortUsingEntryValue); |
3734 } | 3733 } |
3735 | 3734 |
3736 } } // namespace v8::internal | 3735 } } // namespace v8::internal |
OLD | NEW |