OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef V8_HEAP_HEAP_H_ | 5 #ifndef V8_HEAP_HEAP_H_ |
6 #define V8_HEAP_HEAP_H_ | 6 #define V8_HEAP_HEAP_H_ |
7 | 7 |
8 #include <cmath> | 8 #include <cmath> |
9 #include <map> | 9 #include <map> |
10 | 10 |
(...skipping 2408 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2419 int* end_marker; // 22 | 2419 int* end_marker; // 22 |
2420 }; | 2420 }; |
2421 | 2421 |
2422 | 2422 |
2423 class AlwaysAllocateScope { | 2423 class AlwaysAllocateScope { |
2424 public: | 2424 public: |
2425 explicit inline AlwaysAllocateScope(Isolate* isolate); | 2425 explicit inline AlwaysAllocateScope(Isolate* isolate); |
2426 inline ~AlwaysAllocateScope(); | 2426 inline ~AlwaysAllocateScope(); |
2427 | 2427 |
2428 private: | 2428 private: |
2429 // Implicitly disable artificial allocation failures. | |
2430 Heap* heap_; | 2429 Heap* heap_; |
2431 DisallowAllocationFailure daf_; | |
2432 }; | 2430 }; |
2433 | 2431 |
2434 | 2432 |
2435 class GCCallbacksScope { | 2433 class GCCallbacksScope { |
2436 public: | 2434 public: |
2437 explicit inline GCCallbacksScope(Heap* heap); | 2435 explicit inline GCCallbacksScope(Heap* heap); |
2438 inline ~GCCallbacksScope(); | 2436 inline ~GCCallbacksScope(); |
2439 | 2437 |
2440 inline bool CheckReenter(); | 2438 inline bool CheckReenter(); |
2441 | 2439 |
(...skipping 304 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2746 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. | 2744 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. |
2747 | 2745 |
2748 private: | 2746 private: |
2749 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); | 2747 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); |
2750 }; | 2748 }; |
2751 #endif // DEBUG | 2749 #endif // DEBUG |
2752 } | 2750 } |
2753 } // namespace v8::internal | 2751 } // namespace v8::internal |
2754 | 2752 |
2755 #endif // V8_HEAP_HEAP_H_ | 2753 #endif // V8_HEAP_HEAP_H_ |
OLD | NEW |