| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 2131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2142 int* free_global_handle_count; // 18 | 2142 int* free_global_handle_count; // 18 |
| 2143 intptr_t* memory_allocator_size; // 19 | 2143 intptr_t* memory_allocator_size; // 19 |
| 2144 intptr_t* memory_allocator_capacity; // 20 | 2144 intptr_t* memory_allocator_capacity; // 20 |
| 2145 int* objects_per_type; // 21 | 2145 int* objects_per_type; // 21 |
| 2146 int* size_per_type; // 22 | 2146 int* size_per_type; // 22 |
| 2147 int* os_error; // 23 | 2147 int* os_error; // 23 |
| 2148 int* end_marker; // 24 | 2148 int* end_marker; // 24 |
| 2149 }; | 2149 }; |
| 2150 | 2150 |
| 2151 | 2151 |
| 2152 #ifdef DEBUG | |
| 2153 class DisallowAllocationFailure { | 2152 class DisallowAllocationFailure { |
| 2154 public: | 2153 public: |
| 2155 inline DisallowAllocationFailure(); | 2154 inline DisallowAllocationFailure(); |
| 2156 inline ~DisallowAllocationFailure(); | 2155 inline ~DisallowAllocationFailure(); |
| 2157 | 2156 |
| 2157 #ifdef DEBUG |
| 2158 private: | 2158 private: |
| 2159 bool old_state_; | 2159 bool old_state_; |
| 2160 #endif |
| 2160 }; | 2161 }; |
| 2161 #endif | |
| 2162 | 2162 |
| 2163 | 2163 |
| 2164 class AlwaysAllocateScope { | 2164 class AlwaysAllocateScope { |
| 2165 public: | 2165 public: |
| 2166 inline AlwaysAllocateScope(); | 2166 inline AlwaysAllocateScope(); |
| 2167 inline ~AlwaysAllocateScope(); | 2167 inline ~AlwaysAllocateScope(); |
| 2168 | 2168 |
| 2169 #ifdef DEBUG | |
| 2170 private: | 2169 private: |
| 2171 // Implicitly disable artificial allocation failures. | 2170 // Implicitly disable artificial allocation failures. |
| 2172 DisallowAllocationFailure disallow_allocation_failure_; | 2171 DisallowAllocationFailure disallow_allocation_failure_; |
| 2173 #endif | |
| 2174 }; | 2172 }; |
| 2175 | 2173 |
| 2176 | 2174 |
| 2177 class LinearAllocationScope { | 2175 class LinearAllocationScope { |
| 2178 public: | 2176 public: |
| 2179 inline LinearAllocationScope(); | 2177 inline LinearAllocationScope(); |
| 2180 inline ~LinearAllocationScope(); | 2178 inline ~LinearAllocationScope(); |
| 2181 }; | 2179 }; |
| 2182 | 2180 |
| 2183 | 2181 |
| (...skipping 581 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2765 AssertNoAllocation no_alloc; // i.e. no gc allowed. | 2763 AssertNoAllocation no_alloc; // i.e. no gc allowed. |
| 2766 | 2764 |
| 2767 private: | 2765 private: |
| 2768 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); | 2766 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); |
| 2769 }; | 2767 }; |
| 2770 #endif // DEBUG || LIVE_OBJECT_LIST | 2768 #endif // DEBUG || LIVE_OBJECT_LIST |
| 2771 | 2769 |
| 2772 } } // namespace v8::internal | 2770 } } // namespace v8::internal |
| 2773 | 2771 |
| 2774 #endif // V8_HEAP_H_ | 2772 #endif // V8_HEAP_H_ |
| OLD | NEW |