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

Side by Side Diff: src/spaces.h

Issue 8381040: Move some heap verification code in under the --verify-heap flag to speed (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 9 years, 1 month 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/runtime.cc ('k') | src/spaces.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 2011 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
(...skipping 1114 matching lines...) Expand 10 before | Expand all | Expand 10 after
1125 // Slow path of next(), goes into the next page. Returns false if the 1125 // Slow path of next(), goes into the next page. Returns false if the
1126 // iteration has ended. 1126 // iteration has ended.
1127 bool AdvanceToNextPage(); 1127 bool AdvanceToNextPage();
1128 1128
1129 // Initializes fields. 1129 // Initializes fields.
1130 inline void Initialize(PagedSpace* owner, 1130 inline void Initialize(PagedSpace* owner,
1131 Address start, 1131 Address start,
1132 Address end, 1132 Address end,
1133 PageMode mode, 1133 PageMode mode,
1134 HeapObjectCallback size_func); 1134 HeapObjectCallback size_func);
1135
1136 #ifdef DEBUG
1137 // Verifies whether fields have valid values.
1138 void Verify();
1139 #endif
1140 }; 1135 };
1141 1136
1142 1137
1143 // ----------------------------------------------------------------------------- 1138 // -----------------------------------------------------------------------------
1144 // A PageIterator iterates the pages in a paged space. 1139 // A PageIterator iterates the pages in a paged space.
1145 1140
1146 class PageIterator BASE_EMBEDDED { 1141 class PageIterator BASE_EMBEDDED {
1147 public: 1142 public:
1148 explicit inline PageIterator(PagedSpace* space); 1143 explicit inline PageIterator(PagedSpace* space);
1149 1144
(...skipping 1465 matching lines...) Expand 10 before | Expand all | Expand 10 after
2615 } 2610 }
2616 // Must be small, since an iteration is used for lookup. 2611 // Must be small, since an iteration is used for lookup.
2617 static const int kMaxComments = 64; 2612 static const int kMaxComments = 64;
2618 }; 2613 };
2619 #endif 2614 #endif
2620 2615
2621 2616
2622 } } // namespace v8::internal 2617 } } // namespace v8::internal
2623 2618
2624 #endif // V8_SPACES_H_ 2619 #endif // V8_SPACES_H_
OLDNEW
« no previous file with comments | « src/runtime.cc ('k') | src/spaces.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698