| 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 1134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1145 | 1145 |
| 1146 friend class Factory; | 1146 friend class Factory; |
| 1147 friend class DisallowAllocationFailure; | 1147 friend class DisallowAllocationFailure; |
| 1148 friend class AlwaysAllocateScope; | 1148 friend class AlwaysAllocateScope; |
| 1149 friend class LinearAllocationScope; | 1149 friend class LinearAllocationScope; |
| 1150 }; | 1150 }; |
| 1151 | 1151 |
| 1152 | 1152 |
| 1153 class HeapStats { | 1153 class HeapStats { |
| 1154 public: | 1154 public: |
| 1155 int new_space_size; | 1155 int *start_marker; |
| 1156 int new_space_capacity; | 1156 int *new_space_size; |
| 1157 int old_pointer_space_size; | 1157 int *new_space_capacity; |
| 1158 int old_pointer_space_capacity; | 1158 int *old_pointer_space_size; |
| 1159 int old_data_space_size; | 1159 int *old_pointer_space_capacity; |
| 1160 int old_data_space_capacity; | 1160 int *old_data_space_size; |
| 1161 int code_space_size; | 1161 int *old_data_space_capacity; |
| 1162 int code_space_capacity; | 1162 int *code_space_size; |
| 1163 int map_space_size; | 1163 int *code_space_capacity; |
| 1164 int map_space_capacity; | 1164 int *map_space_size; |
| 1165 int cell_space_size; | 1165 int *map_space_capacity; |
| 1166 int cell_space_capacity; | 1166 int *cell_space_size; |
| 1167 int lo_space_size; | 1167 int *cell_space_capacity; |
| 1168 int global_handle_count; | 1168 int *lo_space_size; |
| 1169 int weak_global_handle_count; | 1169 int *global_handle_count; |
| 1170 int pending_global_handle_count; | 1170 int *weak_global_handle_count; |
| 1171 int near_death_global_handle_count; | 1171 int *pending_global_handle_count; |
| 1172 int destroyed_global_handle_count; | 1172 int *near_death_global_handle_count; |
| 1173 int *destroyed_global_handle_count; |
| 1174 int *end_marker; |
| 1173 }; | 1175 }; |
| 1174 | 1176 |
| 1175 | 1177 |
| 1176 class AlwaysAllocateScope { | 1178 class AlwaysAllocateScope { |
| 1177 public: | 1179 public: |
| 1178 AlwaysAllocateScope() { | 1180 AlwaysAllocateScope() { |
| 1179 // We shouldn't hit any nested scopes, because that requires | 1181 // We shouldn't hit any nested scopes, because that requires |
| 1180 // non-handle code to call handle code. The code still works but | 1182 // non-handle code to call handle code. The code still works but |
| 1181 // performance will degrade, so we want to catch this situation | 1183 // performance will degrade, so we want to catch this situation |
| 1182 // in debug mode. | 1184 // in debug mode. |
| (...skipping 481 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1664 } | 1666 } |
| 1665 static TranscendentalCache* caches_[kNumberOfCaches]; | 1667 static TranscendentalCache* caches_[kNumberOfCaches]; |
| 1666 Element elements_[kCacheSize]; | 1668 Element elements_[kCacheSize]; |
| 1667 Type type_; | 1669 Type type_; |
| 1668 }; | 1670 }; |
| 1669 | 1671 |
| 1670 | 1672 |
| 1671 } } // namespace v8::internal | 1673 } } // namespace v8::internal |
| 1672 | 1674 |
| 1673 #endif // V8_HEAP_H_ | 1675 #endif // V8_HEAP_H_ |
| OLD | NEW |