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

Side by Side Diff: src/spaces.h

Issue 6193002: Fix presubmit issues introduced by r6230. (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/gc
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/mark-compact.cc ('k') | no next file » | 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-2010 the V8 project authors. All rights reserved. 1 // Copyright 2006-2010 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 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
186 186
187 ASSERT(static_cast<int>(start_cell) < CellsCount()); 187 ASSERT(static_cast<int>(start_cell) < CellsCount());
188 ASSERT(static_cast<int>(end_cell) < CellsCount()); 188 ASSERT(static_cast<int>(end_cell) < CellsCount());
189 189
190 if (start_cell == end_cell) { 190 if (start_cell == end_cell) {
191 cells()[start_cell] &= ~(start_mask & end_mask); 191 cells()[start_cell] &= ~(start_mask & end_mask);
192 } else { 192 } else {
193 cells()[start_cell] &= ~start_mask; 193 cells()[start_cell] &= ~start_mask;
194 if (end_mask != 0) cells()[end_cell] &= ~end_mask; 194 if (end_mask != 0) cells()[end_cell] &= ~end_mask;
195 195
196 for(uint32_t cell = start_cell + 1, last_cell = end_cell - 1; 196 for (uint32_t cell = start_cell + 1, last_cell = end_cell - 1;
197 cell <= last_cell; 197 cell <= last_cell;
198 cell++) { 198 cell++) {
199 cells()[cell] = 0; 199 cells()[cell] = 0;
200 } 200 }
201 } 201 }
202 } 202 }
203 203
204 INLINE(void Clear()) { 204 INLINE(void Clear()) {
205 for (int i = 0; i < CellsCount(); i++) cells()[i] = 0; 205 for (int i = 0; i < CellsCount(); i++) cells()[i] = 0;
206 } 206 }
207 207
208 static void PrintWord(const uint32_t& word, const char* sep = " ") { 208 static void PrintWord(const uint32_t& word, const char* sep = " ") {
(...skipping 2047 matching lines...) Expand 10 before | Expand all | Expand 10 after
2256 2256
2257 private: 2257 private:
2258 LargePage* current_; 2258 LargePage* current_;
2259 HeapObjectCallback size_func_; 2259 HeapObjectCallback size_func_;
2260 }; 2260 };
2261 2261
2262 2262
2263 } } // namespace v8::internal 2263 } } // namespace v8::internal
2264 2264
2265 #endif // V8_SPACES_H_ 2265 #endif // V8_SPACES_H_
OLDNEW
« no previous file with comments | « src/mark-compact.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698