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

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

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/mark-compact.h ('k') | src/mark-compact-inl.h » ('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 668 matching lines...) Expand 10 before | Expand all | Expand 10 after
679 ASSERT(!FLAG_never_compact || !FLAG_always_compact); 679 ASSERT(!FLAG_never_compact || !FLAG_always_compact);
680 680
681 if (collect_maps_) CreateBackPointers(); 681 if (collect_maps_) CreateBackPointers();
682 #ifdef ENABLE_GDB_JIT_INTERFACE 682 #ifdef ENABLE_GDB_JIT_INTERFACE
683 if (FLAG_gdbjit) { 683 if (FLAG_gdbjit) {
684 // If GDBJIT interface is active disable compaction. 684 // If GDBJIT interface is active disable compaction.
685 compacting_collection_ = false; 685 compacting_collection_ = false;
686 } 686 }
687 #endif 687 #endif
688 688
689 // Clear marking bits for precise sweeping to collect all garbage. 689 // Clear marking bits if incremental marking is aborted.
690 if (was_marked_incrementally_ && PreciseSweepingRequired()) { 690 if (was_marked_incrementally_ && abort_incremental_marking_) {
691 heap()->incremental_marking()->Abort(); 691 heap()->incremental_marking()->Abort();
692 ClearMarkbits(); 692 ClearMarkbits();
693 AbortCompaction(); 693 AbortCompaction();
694 was_marked_incrementally_ = false; 694 was_marked_incrementally_ = false;
695 } 695 }
696 696
697 // Don't start compaction if we are in the middle of incremental 697 // Don't start compaction if we are in the middle of incremental
698 // marking cycle. We did not collect any slots. 698 // marking cycle. We did not collect any slots.
699 if (!FLAG_never_compact && !was_marked_incrementally_) { 699 if (!FLAG_never_compact && !was_marked_incrementally_) {
700 StartCompaction(NON_INCREMENTAL_COMPACTION); 700 StartCompaction(NON_INCREMENTAL_COMPACTION);
(...skipping 3428 matching lines...) Expand 10 before | Expand all | Expand 10 after
4129 while (buffer != NULL) { 4129 while (buffer != NULL) {
4130 SlotsBuffer* next_buffer = buffer->next(); 4130 SlotsBuffer* next_buffer = buffer->next();
4131 DeallocateBuffer(buffer); 4131 DeallocateBuffer(buffer);
4132 buffer = next_buffer; 4132 buffer = next_buffer;
4133 } 4133 }
4134 *buffer_address = NULL; 4134 *buffer_address = NULL;
4135 } 4135 }
4136 4136
4137 4137
4138 } } // namespace v8::internal 4138 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/mark-compact.h ('k') | src/mark-compact-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698