OLD | NEW |
1 // Copyright 2006-2008 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2008 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 1147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1158 | 1158 |
1159 friend class Factory; | 1159 friend class Factory; |
1160 friend class DisallowAllocationFailure; | 1160 friend class DisallowAllocationFailure; |
1161 friend class AlwaysAllocateScope; | 1161 friend class AlwaysAllocateScope; |
1162 friend class LinearAllocationScope; | 1162 friend class LinearAllocationScope; |
1163 }; | 1163 }; |
1164 | 1164 |
1165 | 1165 |
1166 class HeapStats { | 1166 class HeapStats { |
1167 public: | 1167 public: |
1168 int *start_marker; | 1168 int* start_marker; |
1169 int *new_space_size; | 1169 int* new_space_size; |
1170 int *new_space_capacity; | 1170 int* new_space_capacity; |
1171 int *old_pointer_space_size; | 1171 int* old_pointer_space_size; |
1172 int *old_pointer_space_capacity; | 1172 int* old_pointer_space_capacity; |
1173 int *old_data_space_size; | 1173 int* old_data_space_size; |
1174 int *old_data_space_capacity; | 1174 int* old_data_space_capacity; |
1175 int *code_space_size; | 1175 int* code_space_size; |
1176 int *code_space_capacity; | 1176 int* code_space_capacity; |
1177 int *map_space_size; | 1177 int* map_space_size; |
1178 int *map_space_capacity; | 1178 int* map_space_capacity; |
1179 int *cell_space_size; | 1179 int* cell_space_size; |
1180 int *cell_space_capacity; | 1180 int* cell_space_capacity; |
1181 int *lo_space_size; | 1181 int* lo_space_size; |
1182 int *global_handle_count; | 1182 int* global_handle_count; |
1183 int *weak_global_handle_count; | 1183 int* weak_global_handle_count; |
1184 int *pending_global_handle_count; | 1184 int* pending_global_handle_count; |
1185 int *near_death_global_handle_count; | 1185 int* near_death_global_handle_count; |
1186 int *destroyed_global_handle_count; | 1186 int* destroyed_global_handle_count; |
1187 int *end_marker; | 1187 int* end_marker; |
1188 }; | 1188 }; |
1189 | 1189 |
1190 | 1190 |
1191 class AlwaysAllocateScope { | 1191 class AlwaysAllocateScope { |
1192 public: | 1192 public: |
1193 AlwaysAllocateScope() { | 1193 AlwaysAllocateScope() { |
1194 // We shouldn't hit any nested scopes, because that requires | 1194 // We shouldn't hit any nested scopes, because that requires |
1195 // non-handle code to call handle code. The code still works but | 1195 // non-handle code to call handle code. The code still works but |
1196 // performance will degrade, so we want to catch this situation | 1196 // performance will degrade, so we want to catch this situation |
1197 // in debug mode. | 1197 // in debug mode. |
(...skipping 560 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1758 | 1758 |
1759 // To speed up scavenge collections new space string are kept | 1759 // To speed up scavenge collections new space string are kept |
1760 // separate from old space strings. | 1760 // separate from old space strings. |
1761 static List<Object*> new_space_strings_; | 1761 static List<Object*> new_space_strings_; |
1762 static List<Object*> old_space_strings_; | 1762 static List<Object*> old_space_strings_; |
1763 }; | 1763 }; |
1764 | 1764 |
1765 } } // namespace v8::internal | 1765 } } // namespace v8::internal |
1766 | 1766 |
1767 #endif // V8_HEAP_H_ | 1767 #endif // V8_HEAP_H_ |
OLD | NEW |