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

Unified Diff: runtime/vm/pages.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/object.cc ('k') | runtime/vm/raw_object_snapshot.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/pages.h
===================================================================
--- runtime/vm/pages.h (revision 20419)
+++ runtime/vm/pages.h (working copy)
@@ -127,9 +127,12 @@
void EvaluateGarbageCollection(intptr_t in_use_before, intptr_t in_use_after,
int64_t start, int64_t end);
- void Enable() {
- is_enabled_ = true;
+ void set_is_enabled(bool state) {
+ is_enabled_ = state;
}
+ bool is_enabled() {
+ return is_enabled_;
+ }
private:
bool is_enabled_;
@@ -204,10 +207,14 @@
void StartEndAddress(uword* start, uword* end) const;
- void EnableGrowthControl() {
- page_space_controller_.Enable();
+ void SetGrowthControlState(bool state) {
+ page_space_controller_.set_is_enabled(state);
}
+ bool GrowthControlState() {
+ return page_space_controller_.is_enabled();
+ }
+
void WriteProtect(bool read_only);
typedef std::map<RawObject*, void*> PeerTable;
« no previous file with comments | « runtime/vm/object.cc ('k') | runtime/vm/raw_object_snapshot.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698