| 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 1087 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1098 | 1098 |
| 1099 friend class Factory; | 1099 friend class Factory; |
| 1100 friend class DisallowAllocationFailure; | 1100 friend class DisallowAllocationFailure; |
| 1101 friend class AlwaysAllocateScope; | 1101 friend class AlwaysAllocateScope; |
| 1102 friend class LinearAllocationScope; | 1102 friend class LinearAllocationScope; |
| 1103 }; | 1103 }; |
| 1104 | 1104 |
| 1105 | 1105 |
| 1106 class HeapStats { | 1106 class HeapStats { |
| 1107 public: | 1107 public: |
| 1108 int new_space_size; | 1108 int *start_marker; |
| 1109 int new_space_capacity; | 1109 int *new_space_size; |
| 1110 int old_pointer_space_size; | 1110 int *new_space_capacity; |
| 1111 int old_pointer_space_capacity; | 1111 int *old_pointer_space_size; |
| 1112 int old_data_space_size; | 1112 int *old_pointer_space_capacity; |
| 1113 int old_data_space_capacity; | 1113 int *old_data_space_size; |
| 1114 int code_space_size; | 1114 int *old_data_space_capacity; |
| 1115 int code_space_capacity; | 1115 int *code_space_size; |
| 1116 int map_space_size; | 1116 int *code_space_capacity; |
| 1117 int map_space_capacity; | 1117 int *map_space_size; |
| 1118 int cell_space_size; | 1118 int *map_space_capacity; |
| 1119 int cell_space_capacity; | 1119 int *cell_space_size; |
| 1120 int lo_space_size; | 1120 int *cell_space_capacity; |
| 1121 int global_handle_count; | 1121 int *lo_space_size; |
| 1122 int weak_global_handle_count; | 1122 int *global_handle_count; |
| 1123 int pending_global_handle_count; | 1123 int *weak_global_handle_count; |
| 1124 int near_death_global_handle_count; | 1124 int *pending_global_handle_count; |
| 1125 int destroyed_global_handle_count; | 1125 int *near_death_global_handle_count; |
| 1126 int *destroyed_global_handle_count; |
| 1127 int *end_marker; |
| 1126 }; | 1128 }; |
| 1127 | 1129 |
| 1128 | 1130 |
| 1129 class AlwaysAllocateScope { | 1131 class AlwaysAllocateScope { |
| 1130 public: | 1132 public: |
| 1131 AlwaysAllocateScope() { | 1133 AlwaysAllocateScope() { |
| 1132 // We shouldn't hit any nested scopes, because that requires | 1134 // We shouldn't hit any nested scopes, because that requires |
| 1133 // non-handle code to call handle code. The code still works but | 1135 // non-handle code to call handle code. The code still works but |
| 1134 // performance will degrade, so we want to catch this situation | 1136 // performance will degrade, so we want to catch this situation |
| 1135 // in debug mode. | 1137 // in debug mode. |
| (...skipping 481 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1617 } | 1619 } |
| 1618 static TranscendentalCache* caches_[kNumberOfCaches]; | 1620 static TranscendentalCache* caches_[kNumberOfCaches]; |
| 1619 Element elements_[kCacheSize]; | 1621 Element elements_[kCacheSize]; |
| 1620 Type type_; | 1622 Type type_; |
| 1621 }; | 1623 }; |
| 1622 | 1624 |
| 1623 | 1625 |
| 1624 } } // namespace v8::internal | 1626 } } // namespace v8::internal |
| 1625 | 1627 |
| 1626 #endif // V8_HEAP_H_ | 1628 #endif // V8_HEAP_H_ |
| OLD | NEW |