| 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 1327 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1338 int* lo_space_size; // 13 | 1338 int* lo_space_size; // 13 |
| 1339 int* global_handle_count; // 14 | 1339 int* global_handle_count; // 14 |
| 1340 int* weak_global_handle_count; // 15 | 1340 int* weak_global_handle_count; // 15 |
| 1341 int* pending_global_handle_count; // 16 | 1341 int* pending_global_handle_count; // 16 |
| 1342 int* near_death_global_handle_count; // 17 | 1342 int* near_death_global_handle_count; // 17 |
| 1343 int* destroyed_global_handle_count; // 18 | 1343 int* destroyed_global_handle_count; // 18 |
| 1344 int* memory_allocator_size; // 19 | 1344 int* memory_allocator_size; // 19 |
| 1345 int* memory_allocator_capacity; // 20 | 1345 int* memory_allocator_capacity; // 20 |
| 1346 int* objects_per_type; // 21 | 1346 int* objects_per_type; // 21 |
| 1347 int* size_per_type; // 22 | 1347 int* size_per_type; // 22 |
| 1348 int* end_marker; // 23 | 1348 int* os_error; // 23 |
| 1349 int* end_marker; // 24 |
| 1349 }; | 1350 }; |
| 1350 | 1351 |
| 1351 | 1352 |
| 1352 class AlwaysAllocateScope { | 1353 class AlwaysAllocateScope { |
| 1353 public: | 1354 public: |
| 1354 AlwaysAllocateScope() { | 1355 AlwaysAllocateScope() { |
| 1355 // We shouldn't hit any nested scopes, because that requires | 1356 // We shouldn't hit any nested scopes, because that requires |
| 1356 // non-handle code to call handle code. The code still works but | 1357 // non-handle code to call handle code. The code still works but |
| 1357 // performance will degrade, so we want to catch this situation | 1358 // performance will degrade, so we want to catch this situation |
| 1358 // in debug mode. | 1359 // in debug mode. |
| (...skipping 619 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1978 | 1979 |
| 1979 // To speed up scavenge collections new space string are kept | 1980 // To speed up scavenge collections new space string are kept |
| 1980 // separate from old space strings. | 1981 // separate from old space strings. |
| 1981 static List<Object*> new_space_strings_; | 1982 static List<Object*> new_space_strings_; |
| 1982 static List<Object*> old_space_strings_; | 1983 static List<Object*> old_space_strings_; |
| 1983 }; | 1984 }; |
| 1984 | 1985 |
| 1985 } } // namespace v8::internal | 1986 } } // namespace v8::internal |
| 1986 | 1987 |
| 1987 #endif // V8_HEAP_H_ | 1988 #endif // V8_HEAP_H_ |
| OLD | NEW |