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

Unified Diff: runtime/vm/heap.h

Issue 12578009: - Canonicalize types, type_arguments only when the object is marked as being from the core librarie… (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/vm/datastream.h ('k') | runtime/vm/heap.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/heap.h
===================================================================
--- runtime/vm/heap.h (revision 20419)
+++ runtime/vm/heap.h (working copy)
@@ -132,7 +132,10 @@
// Enables growth control on the page space heaps. This should be
// called before any user code is executed.
- void EnableGrowthControl();
+ void EnableGrowthControl() { SetGrowthControlState(true); }
+ void DisableGrowthControl() { SetGrowthControlState(false); }
+ void SetGrowthControlState(bool state);
+ bool GrowthControlState();
// Protect access to the heap.
void WriteProtect(bool read_only);
@@ -274,6 +277,16 @@
};
#endif // defined(DEBUG)
+
+class NoHeapGrowthControlScope : public StackResource {
+ public:
+ NoHeapGrowthControlScope();
+ ~NoHeapGrowthControlScope();
+ private:
+ bool current_growth_controller_state_;
+ DISALLOW_COPY_AND_ASSIGN(NoHeapGrowthControlScope);
+};
+
} // namespace dart
#endif // VM_HEAP_H_
« no previous file with comments | « runtime/vm/datastream.h ('k') | runtime/vm/heap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698