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

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

Issue 2646553002: Fix unused lambda captures. (Closed)
Patch Set: Add a workaround for MSVC++. Created 3 years, 11 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
« no previous file with comments | « src/code-stubs.cc ('k') | src/heap/spaces.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 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "src/heap/mark-compact.h" 5 #include "src/heap/mark-compact.h"
6 6
7 #include "src/base/atomicops.h" 7 #include "src/base/atomicops.h"
8 #include "src/base/bits.h" 8 #include "src/base/bits.h"
9 #include "src/base/sys-info.h" 9 #include "src/base/sys-info.h"
10 #include "src/code-stubs.h" 10 #include "src/code-stubs.h"
(...skipping 3654 matching lines...) Expand 10 before | Expand all | Expand 10 after
3665 UpdateTypedPointers(heap, chunk); 3665 UpdateTypedPointers(heap, chunk);
3666 return true; 3666 return true;
3667 } 3667 }
3668 static const bool NeedSequentialFinalization = false; 3668 static const bool NeedSequentialFinalization = false;
3669 static void FinalizePageSequentially(Heap*, MemoryChunk*, bool, PerPageData) { 3669 static void FinalizePageSequentially(Heap*, MemoryChunk*, bool, PerPageData) {
3670 } 3670 }
3671 3671
3672 private: 3672 private:
3673 static void UpdateUntypedPointers(Heap* heap, MemoryChunk* chunk) { 3673 static void UpdateUntypedPointers(Heap* heap, MemoryChunk* chunk) {
3674 if (direction == OLD_TO_NEW) { 3674 if (direction == OLD_TO_NEW) {
3675 RememberedSet<OLD_TO_NEW>::Iterate(chunk, [heap, chunk](Address slot) { 3675 RememberedSet<OLD_TO_NEW>::Iterate(chunk, [heap](Address slot) {
3676 return CheckAndUpdateOldToNewSlot(heap, slot); 3676 return CheckAndUpdateOldToNewSlot(heap, slot);
3677 }); 3677 });
3678 } else { 3678 } else {
3679 RememberedSet<OLD_TO_OLD>::Iterate(chunk, [](Address slot) { 3679 RememberedSet<OLD_TO_OLD>::Iterate(chunk, [](Address slot) {
3680 return UpdateSlot(reinterpret_cast<Object**>(slot)); 3680 return UpdateSlot(reinterpret_cast<Object**>(slot));
3681 }); 3681 });
3682 } 3682 }
3683 } 3683 }
3684 3684
3685 static void UpdateTypedPointers(Heap* heap, MemoryChunk* chunk) { 3685 static void UpdateTypedPointers(Heap* heap, MemoryChunk* chunk) {
(...skipping 398 matching lines...) Expand 10 before | Expand all | Expand 10 after
4084 // The target is always in old space, we don't have to record the slot in 4084 // The target is always in old space, we don't have to record the slot in
4085 // the old-to-new remembered set. 4085 // the old-to-new remembered set.
4086 DCHECK(!heap()->InNewSpace(target)); 4086 DCHECK(!heap()->InNewSpace(target));
4087 RecordRelocSlot(host, &rinfo, target); 4087 RecordRelocSlot(host, &rinfo, target);
4088 } 4088 }
4089 } 4089 }
4090 } 4090 }
4091 4091
4092 } // namespace internal 4092 } // namespace internal
4093 } // namespace v8 4093 } // namespace v8
OLDNEW
« no previous file with comments | « src/code-stubs.cc ('k') | src/heap/spaces.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698