Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3)

Side by Side Diff: src/heap/heap.h

Issue 1319153006: [heap] Remove obsolete DisallowAllocationFailure scope. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/assert-scope.cc ('k') | src/heap/heap-inl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « src/assert-scope.cc ('k') | src/heap/heap-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698