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/zone.h

Issue 6190002: Change the hydrogen timing data to include zone allocation. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge/build/ia32
Patch Set: Created 9 years, 11 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 | Annotate | Revision Log
« no previous file with comments | « src/hydrogen.cc ('k') | src/zone.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 2011 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
11 // with the distribution. 11 // with the distribution.
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 64
65 // Delete all objects and free all memory allocated in the Zone. 65 // Delete all objects and free all memory allocated in the Zone.
66 static void DeleteAll(); 66 static 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 static inline bool excess_allocation(); 70 static inline bool excess_allocation();
71 71
72 static inline void adjust_segment_bytes_allocated(int delta); 72 static inline void adjust_segment_bytes_allocated(int delta);
73 73
74 static unsigned allocation_size_;
75
74 private: 76 private:
75 77
76 // All pointers returned from New() have this alignment. 78 // All pointers returned from New() have this alignment.
77 static const int kAlignment = kPointerSize; 79 static const int kAlignment = kPointerSize;
78 80
79 // Never allocate segments smaller than this size in bytes. 81 // Never allocate segments smaller than this size in bytes.
80 static const int kMinimumSegmentSize = 8 * KB; 82 static const int kMinimumSegmentSize = 8 * KB;
81 83
82 // Never allocate segments larger than this size in bytes. 84 // Never allocate segments larger than this size in bytes.
83 static const int kMaximumSegmentSize = 1 * MB; 85 static const int kMaximumSegmentSize = 1 * MB;
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
222 public: 224 public:
223 ZoneSplayTree() 225 ZoneSplayTree()
224 : SplayTree<Config, ZoneListAllocationPolicy>() {} 226 : SplayTree<Config, ZoneListAllocationPolicy>() {}
225 ~ZoneSplayTree(); 227 ~ZoneSplayTree();
226 }; 228 };
227 229
228 230
229 } } // namespace v8::internal 231 } } // namespace v8::internal
230 232
231 #endif // V8_ZONE_H_ 233 #endif // V8_ZONE_H_
OLDNEW
« no previous file with comments | « src/hydrogen.cc ('k') | src/zone.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698