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

Side by Side Diff: src/incremental-marking.h

Issue 8228010: Fix free list node ending up on evacuation candidate. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 9 years, 2 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 | src/incremental-marking.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 188 matching lines...) Expand 10 before | Expand all | Expand 10 after
199 199
200 private: 200 private:
201 void set_should_hurry(bool val) { 201 void set_should_hurry(bool val) {
202 should_hurry_ = val; 202 should_hurry_ = val;
203 } 203 }
204 204
205 int64_t SpaceLeftInOldSpace(); 205 int64_t SpaceLeftInOldSpace();
206 206
207 void ResetStepCounters(); 207 void ResetStepCounters();
208 208
209 void StartMarking(); 209 enum CompactionFlag { ALLOW_COMPACTION, PREVENT_COMPACTION };
210
211 void StartMarking(CompactionFlag flag);
210 212
211 void ActivateIncrementalWriteBarrier(PagedSpace* space); 213 void ActivateIncrementalWriteBarrier(PagedSpace* space);
212 static void ActivateIncrementalWriteBarrier(NewSpace* space); 214 static void ActivateIncrementalWriteBarrier(NewSpace* space);
213 void ActivateIncrementalWriteBarrier(); 215 void ActivateIncrementalWriteBarrier();
214 216
215 static void DeactivateIncrementalWriteBarrierForSpace(PagedSpace* space); 217 static void DeactivateIncrementalWriteBarrierForSpace(PagedSpace* space);
216 static void DeactivateIncrementalWriteBarrierForSpace(NewSpace* space); 218 static void DeactivateIncrementalWriteBarrierForSpace(NewSpace* space);
217 void DeactivateIncrementalWriteBarrier(); 219 void DeactivateIncrementalWriteBarrier();
218 220
219 static void SetOldSpacePageFlags(MemoryChunk* chunk, 221 static void SetOldSpacePageFlags(MemoryChunk* chunk,
(...skipping 25 matching lines...) Expand all
245 bool should_hurry_; 247 bool should_hurry_;
246 int allocation_marking_factor_; 248 int allocation_marking_factor_;
247 intptr_t allocated_; 249 intptr_t allocated_;
248 250
249 DISALLOW_IMPLICIT_CONSTRUCTORS(IncrementalMarking); 251 DISALLOW_IMPLICIT_CONSTRUCTORS(IncrementalMarking);
250 }; 252 };
251 253
252 } } // namespace v8::internal 254 } } // namespace v8::internal
253 255
254 #endif // V8_INCREMENTAL_MARKING_H_ 256 #endif // V8_INCREMENTAL_MARKING_H_
OLDNEW
« no previous file with comments | « no previous file | src/incremental-marking.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698