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/mark-compact.cc

Issue 12217106: Don't use TLS for space iterators. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressed feedback. Created 7 years, 10 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/log.cc ('k') | src/profile-generator.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 883 matching lines...) Expand 10 before | Expand all | Expand 10 after
894 AbortCompaction(); 894 AbortCompaction();
895 was_marked_incrementally_ = false; 895 was_marked_incrementally_ = false;
896 } 896 }
897 897
898 // Don't start compaction if we are in the middle of incremental 898 // Don't start compaction if we are in the middle of incremental
899 // marking cycle. We did not collect any slots. 899 // marking cycle. We did not collect any slots.
900 if (!FLAG_never_compact && !was_marked_incrementally_) { 900 if (!FLAG_never_compact && !was_marked_incrementally_) {
901 StartCompaction(NON_INCREMENTAL_COMPACTION); 901 StartCompaction(NON_INCREMENTAL_COMPACTION);
902 } 902 }
903 903
904 PagedSpaces spaces; 904 PagedSpaces spaces(heap());
905 for (PagedSpace* space = spaces.next(); 905 for (PagedSpace* space = spaces.next();
906 space != NULL; 906 space != NULL;
907 space = spaces.next()) { 907 space = spaces.next()) {
908 space->PrepareForMarkCompact(); 908 space->PrepareForMarkCompact();
909 } 909 }
910 910
911 #ifdef VERIFY_HEAP 911 #ifdef VERIFY_HEAP
912 if (!was_marked_incrementally_ && FLAG_verify_heap) { 912 if (!was_marked_incrementally_ && FLAG_verify_heap) {
913 VerifyMarkbitsAreClean(); 913 VerifyMarkbitsAreClean();
914 } 914 }
(...skipping 3157 matching lines...) Expand 10 before | Expand all | Expand 10 after
4072 while (buffer != NULL) { 4072 while (buffer != NULL) {
4073 SlotsBuffer* next_buffer = buffer->next(); 4073 SlotsBuffer* next_buffer = buffer->next();
4074 DeallocateBuffer(buffer); 4074 DeallocateBuffer(buffer);
4075 buffer = next_buffer; 4075 buffer = next_buffer;
4076 } 4076 }
4077 *buffer_address = NULL; 4077 *buffer_address = NULL;
4078 } 4078 }
4079 4079
4080 4080
4081 } } // namespace v8::internal 4081 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/log.cc ('k') | src/profile-generator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698