| 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 1136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1147 // The hidden_symbol is special because it is the empty string, but does | 1147 // The hidden_symbol is special because it is the empty string, but does |
| 1148 // not match the empty string. | 1148 // not match the empty string. |
| 1149 String* hidden_symbol() { return hidden_symbol_; } | 1149 String* hidden_symbol() { return hidden_symbol_; } |
| 1150 | 1150 |
| 1151 void set_global_contexts_list(Object* object) { | 1151 void set_global_contexts_list(Object* object) { |
| 1152 global_contexts_list_ = object; | 1152 global_contexts_list_ = object; |
| 1153 } | 1153 } |
| 1154 Object* global_contexts_list() { return global_contexts_list_; } | 1154 Object* global_contexts_list() { return global_contexts_list_; } |
| 1155 | 1155 |
| 1156 // Number of mark-sweeps. | 1156 // Number of mark-sweeps. |
| 1157 int ms_count() { return ms_count_; } | 1157 unsigned int ms_count() { return ms_count_; } |
| 1158 | 1158 |
| 1159 // Iterates over all roots in the heap. | 1159 // Iterates over all roots in the heap. |
| 1160 void IterateRoots(ObjectVisitor* v, VisitMode mode); | 1160 void IterateRoots(ObjectVisitor* v, VisitMode mode); |
| 1161 // Iterates over all strong roots in the heap. | 1161 // Iterates over all strong roots in the heap. |
| 1162 void IterateStrongRoots(ObjectVisitor* v, VisitMode mode); | 1162 void IterateStrongRoots(ObjectVisitor* v, VisitMode mode); |
| 1163 // Iterates over all the other roots in the heap. | 1163 // Iterates over all the other roots in the heap. |
| 1164 void IterateWeakRoots(ObjectVisitor* v, VisitMode mode); | 1164 void IterateWeakRoots(ObjectVisitor* v, VisitMode mode); |
| 1165 | 1165 |
| 1166 // Iterate pointers to from semispace of new space found in memory interval | 1166 // Iterate pointers to from semispace of new space found in memory interval |
| 1167 // from start to end. | 1167 // from start to end. |
| (...skipping 523 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1691 OldSpace* code_space_; | 1691 OldSpace* code_space_; |
| 1692 MapSpace* map_space_; | 1692 MapSpace* map_space_; |
| 1693 CellSpace* cell_space_; | 1693 CellSpace* cell_space_; |
| 1694 LargeObjectSpace* lo_space_; | 1694 LargeObjectSpace* lo_space_; |
| 1695 HeapState gc_state_; | 1695 HeapState gc_state_; |
| 1696 int gc_post_processing_depth_; | 1696 int gc_post_processing_depth_; |
| 1697 | 1697 |
| 1698 // Returns the amount of external memory registered since last global gc. | 1698 // Returns the amount of external memory registered since last global gc. |
| 1699 intptr_t PromotedExternalMemorySize(); | 1699 intptr_t PromotedExternalMemorySize(); |
| 1700 | 1700 |
| 1701 int ms_count_; // how many mark-sweep collections happened | 1701 unsigned int ms_count_; // how many mark-sweep collections happened |
| 1702 unsigned int gc_count_; // how many gc happened | 1702 unsigned int gc_count_; // how many gc happened |
| 1703 | 1703 |
| 1704 // For post mortem debugging. | 1704 // For post mortem debugging. |
| 1705 static const int kRememberedUnmappedPages = 128; | 1705 static const int kRememberedUnmappedPages = 128; |
| 1706 int remembered_unmapped_pages_index_; | 1706 int remembered_unmapped_pages_index_; |
| 1707 Address remembered_unmapped_pages_[kRememberedUnmappedPages]; | 1707 Address remembered_unmapped_pages_[kRememberedUnmappedPages]; |
| 1708 | 1708 |
| 1709 // Total length of the strings we failed to flatten since the last GC. | 1709 // Total length of the strings we failed to flatten since the last GC. |
| 1710 int unflattened_strings_length_; | 1710 int unflattened_strings_length_; |
| 1711 | 1711 |
| (...skipping 1046 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2758 AssertNoAllocation no_alloc; // i.e. no gc allowed. | 2758 AssertNoAllocation no_alloc; // i.e. no gc allowed. |
| 2759 | 2759 |
| 2760 private: | 2760 private: |
| 2761 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); | 2761 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); |
| 2762 }; | 2762 }; |
| 2763 #endif // DEBUG || LIVE_OBJECT_LIST | 2763 #endif // DEBUG || LIVE_OBJECT_LIST |
| 2764 | 2764 |
| 2765 } } // namespace v8::internal | 2765 } } // namespace v8::internal |
| 2766 | 2766 |
| 2767 #endif // V8_HEAP_H_ | 2767 #endif // V8_HEAP_H_ |
| OLD | NEW |