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

Side by Side Diff: src/mark-compact.h

Issue 6837025: Fix compile error in release mode. (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/gc/
Patch Set: Created 9 years, 8 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 | « no previous file | 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 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 213 matching lines...) Expand 10 before | Expand all | Expand 10 after
224 #endif 224 #endif
225 225
226 // Determine type of object and emit deletion log event. 226 // Determine type of object and emit deletion log event.
227 static void ReportDeleteIfNeeded(HeapObject* obj); 227 static void ReportDeleteIfNeeded(HeapObject* obj);
228 228
229 // Distinguishable invalid map encodings (for single word and multiple words) 229 // Distinguishable invalid map encodings (for single word and multiple words)
230 // that indicate free regions. 230 // that indicate free regions.
231 static const uint32_t kSingleFreeEncoding = 0; 231 static const uint32_t kSingleFreeEncoding = 0;
232 static const uint32_t kMultiFreeEncoding = 1; 232 static const uint32_t kMultiFreeEncoding = 1;
233 233
234 #ifdef DEBUG
235 static bool IsMarked(Object* obj) { 234 static bool IsMarked(Object* obj) {
236 ASSERT(obj->IsHeapObject()); 235 ASSERT(obj->IsHeapObject());
237 HeapObject* heap_object = HeapObject::cast(obj); 236 HeapObject* heap_object = HeapObject::cast(obj);
238 return Marking::MarkBitFrom(heap_object).Get(); 237 return Marking::MarkBitFrom(heap_object).Get();
239 } 238 }
240 #endif
241 239
242 private: 240 private:
243 #ifdef DEBUG 241 #ifdef DEBUG
244 enum CollectorState { 242 enum CollectorState {
245 IDLE, 243 IDLE,
246 PREPARE_GC, 244 PREPARE_GC,
247 MARK_LIVE_OBJECTS, 245 MARK_LIVE_OBJECTS,
248 SWEEP_SPACES, 246 SWEEP_SPACES,
249 ENCODE_FORWARDING_ADDRESSES, 247 ENCODE_FORWARDING_ADDRESSES,
250 UPDATE_POINTERS, 248 UPDATE_POINTERS,
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after
450 448
451 friend class UnmarkObjectVisitor; 449 friend class UnmarkObjectVisitor;
452 static void UnmarkObject(HeapObject* obj); 450 static void UnmarkObject(HeapObject* obj);
453 #endif 451 #endif
454 }; 452 };
455 453
456 454
457 } } // namespace v8::internal 455 } } // namespace v8::internal
458 456
459 #endif // V8_MARK_COMPACT_H_ 457 #endif // V8_MARK_COMPACT_H_
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698