Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2010 the V8 project authors. All rights reserved. | 1 // Copyright 2010 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 1138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1149 static inline bool ShouldBePromoted(Address old_address, int object_size); | 1149 static inline bool ShouldBePromoted(Address old_address, int object_size); |
| 1150 | 1150 |
| 1151 static int MaxObjectSizeInNewSpace() { return kMaxObjectSizeInNewSpace; } | 1151 static int MaxObjectSizeInNewSpace() { return kMaxObjectSizeInNewSpace; } |
| 1152 | 1152 |
| 1153 static void ClearJSFunctionResultCaches(); | 1153 static void ClearJSFunctionResultCaches(); |
| 1154 | 1154 |
| 1155 static void ClearNormalizedMapCaches(); | 1155 static void ClearNormalizedMapCaches(); |
| 1156 | 1156 |
| 1157 static GCTracer* tracer() { return tracer_; } | 1157 static GCTracer* tracer() { return tracer_; } |
| 1158 | 1158 |
| 1159 // Returns the size of object residing in non new spaces. | |
|
Erik Corry
2011/03/02 12:34:06
object -> the objects
Vyacheslav Egorov (Chromium)
2011/03/02 15:11:32
Done.
| |
| 1160 static intptr_t PromotedSpaceSize(); | |
| 1161 | |
| 1159 private: | 1162 private: |
| 1160 static int reserved_semispace_size_; | 1163 static int reserved_semispace_size_; |
| 1161 static int max_semispace_size_; | 1164 static int max_semispace_size_; |
| 1162 static int initial_semispace_size_; | 1165 static int initial_semispace_size_; |
| 1163 static intptr_t max_old_generation_size_; | 1166 static intptr_t max_old_generation_size_; |
| 1164 static intptr_t max_executable_size_; | 1167 static intptr_t max_executable_size_; |
| 1165 static intptr_t code_range_size_; | 1168 static intptr_t code_range_size_; |
| 1166 | 1169 |
| 1167 // For keeping track of how much data has survived | 1170 // For keeping track of how much data has survived |
| 1168 // scavenge since last new space expansion. | 1171 // scavenge since last new space expansion. |
| (...skipping 13 matching lines...) Expand all Loading... | |
| 1182 | 1185 |
| 1183 static NewSpace new_space_; | 1186 static NewSpace new_space_; |
| 1184 static OldSpace* old_pointer_space_; | 1187 static OldSpace* old_pointer_space_; |
| 1185 static OldSpace* old_data_space_; | 1188 static OldSpace* old_data_space_; |
| 1186 static OldSpace* code_space_; | 1189 static OldSpace* code_space_; |
| 1187 static MapSpace* map_space_; | 1190 static MapSpace* map_space_; |
| 1188 static CellSpace* cell_space_; | 1191 static CellSpace* cell_space_; |
| 1189 static LargeObjectSpace* lo_space_; | 1192 static LargeObjectSpace* lo_space_; |
| 1190 static HeapState gc_state_; | 1193 static HeapState gc_state_; |
| 1191 | 1194 |
| 1192 // Returns the size of object residing in non new spaces. | |
| 1193 static intptr_t PromotedSpaceSize(); | |
| 1194 | |
| 1195 // Returns the amount of external memory registered since last global gc. | 1195 // Returns the amount of external memory registered since last global gc. |
| 1196 static int PromotedExternalMemorySize(); | 1196 static int PromotedExternalMemorySize(); |
| 1197 | 1197 |
| 1198 static int mc_count_; // how many mark-compact collections happened | 1198 static int mc_count_; // how many mark-compact collections happened |
| 1199 static int ms_count_; // how many mark-sweep collections happened | 1199 static int ms_count_; // how many mark-sweep collections happened |
| 1200 static int gc_count_; // how many gc happened | 1200 static int gc_count_; // how many gc happened |
| 1201 | 1201 |
| 1202 // Total length of the strings we failed to flatten since the last GC. | 1202 // Total length of the strings we failed to flatten since the last GC. |
| 1203 static int unflattened_strings_length_; | 1203 static int unflattened_strings_length_; |
| 1204 | 1204 |
| (...skipping 968 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 2173 | 2173 |
| 2174 private: | 2174 private: |
| 2175 static const uintptr_t kNotMarkedBit = 0x1; | 2175 static const uintptr_t kNotMarkedBit = 0x1; |
| 2176 STATIC_ASSERT((kHeapObjectTag & kNotMarkedBit) != 0); | 2176 STATIC_ASSERT((kHeapObjectTag & kNotMarkedBit) != 0); |
| 2177 }; | 2177 }; |
| 2178 | 2178 |
| 2179 | 2179 |
| 2180 } } // namespace v8::internal | 2180 } } // namespace v8::internal |
| 2181 | 2181 |
| 2182 #endif // V8_HEAP_H_ | 2182 #endif // V8_HEAP_H_ |
| OLD | NEW |