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 1305 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1316 | 1316 |
1317 friend class Factory; | 1317 friend class Factory; |
1318 friend class DisallowAllocationFailure; | 1318 friend class DisallowAllocationFailure; |
1319 friend class AlwaysAllocateScope; | 1319 friend class AlwaysAllocateScope; |
1320 friend class LinearAllocationScope; | 1320 friend class LinearAllocationScope; |
1321 }; | 1321 }; |
1322 | 1322 |
1323 | 1323 |
1324 class HeapStats { | 1324 class HeapStats { |
1325 public: | 1325 public: |
| 1326 static const int kStartMarker = 0xDECADE00; |
| 1327 static const int kEndMarker = 0xDECADE01; |
| 1328 |
1326 int* start_marker; // 0 | 1329 int* start_marker; // 0 |
1327 int* new_space_size; // 1 | 1330 int* new_space_size; // 1 |
1328 int* new_space_capacity; // 2 | 1331 int* new_space_capacity; // 2 |
1329 int* old_pointer_space_size; // 3 | 1332 int* old_pointer_space_size; // 3 |
1330 int* old_pointer_space_capacity; // 4 | 1333 int* old_pointer_space_capacity; // 4 |
1331 int* old_data_space_size; // 5 | 1334 int* old_data_space_size; // 5 |
1332 int* old_data_space_capacity; // 6 | 1335 int* old_data_space_capacity; // 6 |
1333 int* code_space_size; // 7 | 1336 int* code_space_size; // 7 |
1334 int* code_space_capacity; // 8 | 1337 int* code_space_capacity; // 8 |
1335 int* map_space_size; // 9 | 1338 int* map_space_size; // 9 |
(...skipping 644 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1980 | 1983 |
1981 // To speed up scavenge collections new space string are kept | 1984 // To speed up scavenge collections new space string are kept |
1982 // separate from old space strings. | 1985 // separate from old space strings. |
1983 static List<Object*> new_space_strings_; | 1986 static List<Object*> new_space_strings_; |
1984 static List<Object*> old_space_strings_; | 1987 static List<Object*> old_space_strings_; |
1985 }; | 1988 }; |
1986 | 1989 |
1987 } } // namespace v8::internal | 1990 } } // namespace v8::internal |
1988 | 1991 |
1989 #endif // V8_HEAP_H_ | 1992 #endif // V8_HEAP_H_ |
OLD | NEW |