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

Side by Side Diff: src/zone.h

Issue 2593001: [Isolates] Make lint happy. (Closed)
Patch Set: Created 10 years, 6 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/isolate.h ('k') | test/cctest/test-serialize.cc » ('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 2006-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-2008 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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 void DeleteAll(); 66 void DeleteAll();
67 67
68 // Returns true if more memory has been allocated in zones than 68 // Returns true if more memory has been allocated in zones than
69 // the limit allows. 69 // the limit allows.
70 inline bool excess_allocation(); 70 inline bool excess_allocation();
71 71
72 inline void adjust_segment_bytes_allocated(int delta); 72 inline void adjust_segment_bytes_allocated(int delta);
73 73
74 private: 74 private:
75 friend class Isolate; 75 friend class Isolate;
76 76
77 // All pointers returned from New() have this alignment. 77 // All pointers returned from New() have this alignment.
78 static const int kAlignment = kPointerSize; 78 static const int kAlignment = kPointerSize;
79 79
80 // Never allocate segments smaller than this size in bytes. 80 // Never allocate segments smaller than this size in bytes.
81 static const int kMinimumSegmentSize = 8 * KB; 81 static const int kMinimumSegmentSize = 8 * KB;
82 82
83 // Never allocate segments larger than this size in bytes. 83 // Never allocate segments larger than this size in bytes.
84 static const int kMaximumSegmentSize = 1 * MB; 84 static const int kMaximumSegmentSize = 1 * MB;
85 85
86 // Never keep segments larger than this size in bytes around. 86 // Never keep segments larger than this size in bytes around.
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
204 public: 204 public:
205 ZoneSplayTree() 205 ZoneSplayTree()
206 : SplayTree<Config, ZoneListAllocationPolicy>() {} 206 : SplayTree<Config, ZoneListAllocationPolicy>() {}
207 ~ZoneSplayTree(); 207 ~ZoneSplayTree();
208 }; 208 };
209 209
210 210
211 } } // namespace v8::internal 211 } } // namespace v8::internal
212 212
213 #endif // V8_ZONE_H_ 213 #endif // V8_ZONE_H_
OLDNEW
« no previous file with comments | « src/isolate.h ('k') | test/cctest/test-serialize.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698