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

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

Issue 9608006: Add kAbortIncrementalMarkingMask flag for GC. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressed comments by Ulan Degenbaev. Created 8 years, 9 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/heap.cc ('k') | src/mark-compact.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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 402 matching lines...) Expand 10 before | Expand all | Expand 10 after
413 int object_size, 413 int object_size,
414 Object* new_object, 414 Object* new_object,
415 int* offset); 415 int* offset);
416 416
417 // Type of functions to process non-live objects. 417 // Type of functions to process non-live objects.
418 typedef void (*ProcessNonLiveFunction)(HeapObject* object, Isolate* isolate); 418 typedef void (*ProcessNonLiveFunction)(HeapObject* object, Isolate* isolate);
419 419
420 // Pointer to member function, used in IterateLiveObjects. 420 // Pointer to member function, used in IterateLiveObjects.
421 typedef int (MarkCompactCollector::*LiveObjectCallback)(HeapObject* obj); 421 typedef int (MarkCompactCollector::*LiveObjectCallback)(HeapObject* obj);
422 422
423 // Set the global force_compaction flag, it must be called before Prepare 423 // Set the global flags, it must be called before Prepare to take effect.
424 // to take effect.
425 inline void SetFlags(int flags); 424 inline void SetFlags(int flags);
426 425
427 inline bool PreciseSweepingRequired() {
428 return sweep_precisely_;
429 }
430
431 static void Initialize(); 426 static void Initialize();
432 427
433 void CollectEvacuationCandidates(PagedSpace* space); 428 void CollectEvacuationCandidates(PagedSpace* space);
434 429
435 void AddEvacuationCandidate(Page* p); 430 void AddEvacuationCandidate(Page* p);
436 431
437 // Prepares for GC by resetting relocation info in old and map spaces and 432 // Prepares for GC by resetting relocation info in old and map spaces and
438 // choosing spaces to compact. 433 // choosing spaces to compact.
439 void Prepare(GCTracer* tracer); 434 void Prepare(GCTracer* tracer);
440 435
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
572 // The current stage of the collector. 567 // The current stage of the collector.
573 CollectorState state_; 568 CollectorState state_;
574 #endif 569 #endif
575 570
576 // Global flag that forces sweeping to be precise, so we can traverse the 571 // Global flag that forces sweeping to be precise, so we can traverse the
577 // heap. 572 // heap.
578 bool sweep_precisely_; 573 bool sweep_precisely_;
579 574
580 bool reduce_memory_footprint_; 575 bool reduce_memory_footprint_;
581 576
577 bool abort_incremental_marking_;
578
582 // True if we are collecting slots to perform evacuation from evacuation 579 // True if we are collecting slots to perform evacuation from evacuation
583 // candidates. 580 // candidates.
584 bool compacting_; 581 bool compacting_;
585 582
586 bool was_marked_incrementally_; 583 bool was_marked_incrementally_;
587 584
588 bool collect_maps_; 585 bool collect_maps_;
589 586
590 bool flush_monomorphic_ics_; 587 bool flush_monomorphic_ics_;
591 588
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
766 763
767 friend class Heap; 764 friend class Heap;
768 }; 765 };
769 766
770 767
771 const char* AllocationSpaceName(AllocationSpace space); 768 const char* AllocationSpaceName(AllocationSpace space);
772 769
773 } } // namespace v8::internal 770 } } // namespace v8::internal
774 771
775 #endif // V8_MARK_COMPACT_H_ 772 #endif // V8_MARK_COMPACT_H_
OLDNEW
« no previous file with comments | « src/heap.cc ('k') | src/mark-compact.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698