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

Side by Side Diff: src/heap/incremental-marking.cc

Issue 2377203003: [heap] Remove unnecessary marking specializations (Closed)
Patch Set: BytecodeArray Created 4 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
« no previous file with comments | « no previous file | src/heap/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 // 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/incremental-marking.h" 5 #include "src/heap/incremental-marking.h"
6 6
7 #include "src/code-stubs.h" 7 #include "src/code-stubs.h"
8 #include "src/compilation-cache.h" 8 #include "src/compilation-cache.h"
9 #include "src/conversions.h" 9 #include "src/conversions.h"
10 #include "src/heap/gc-idle-time-handler.h" 10 #include "src/heap/gc-idle-time-handler.h"
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 #endif 172 #endif
173 } 173 }
174 174
175 class IncrementalMarkingMarkingVisitor 175 class IncrementalMarkingMarkingVisitor
176 : public StaticMarkingVisitor<IncrementalMarkingMarkingVisitor> { 176 : public StaticMarkingVisitor<IncrementalMarkingMarkingVisitor> {
177 public: 177 public:
178 static void Initialize() { 178 static void Initialize() {
179 StaticMarkingVisitor<IncrementalMarkingMarkingVisitor>::Initialize(); 179 StaticMarkingVisitor<IncrementalMarkingMarkingVisitor>::Initialize();
180 table_.Register(kVisitFixedArray, &VisitFixedArrayIncremental); 180 table_.Register(kVisitFixedArray, &VisitFixedArrayIncremental);
181 table_.Register(kVisitNativeContext, &VisitNativeContextIncremental); 181 table_.Register(kVisitNativeContext, &VisitNativeContextIncremental);
182 table_.Register(kVisitJSRegExp, &VisitJSRegExp);
183 } 182 }
184 183
185 static const int kProgressBarScanningChunk = 32 * 1024; 184 static const int kProgressBarScanningChunk = 32 * 1024;
186 185
187 static void VisitFixedArrayIncremental(Map* map, HeapObject* object) { 186 static void VisitFixedArrayIncremental(Map* map, HeapObject* object) {
188 MemoryChunk* chunk = MemoryChunk::FromAddress(object->address()); 187 MemoryChunk* chunk = MemoryChunk::FromAddress(object->address());
189 // TODO(mstarzinger): Move setting of the flag to the allocation site of 188 // TODO(mstarzinger): Move setting of the flag to the allocation site of
190 // the array. The visitor should just check the flag. 189 // the array. The visitor should just check the flag.
191 if (FLAG_use_marking_progress_bar && 190 if (FLAG_use_marking_progress_bar &&
192 chunk->owner()->identity() == LO_SPACE) { 191 chunk->owner()->identity() == LO_SPACE) {
(...skipping 1008 matching lines...) Expand 10 before | Expand all | Expand 10 after
1201 idle_marking_delay_counter_++; 1200 idle_marking_delay_counter_++;
1202 } 1201 }
1203 1202
1204 1203
1205 void IncrementalMarking::ClearIdleMarkingDelayCounter() { 1204 void IncrementalMarking::ClearIdleMarkingDelayCounter() {
1206 idle_marking_delay_counter_ = 0; 1205 idle_marking_delay_counter_ = 0;
1207 } 1206 }
1208 1207
1209 } // namespace internal 1208 } // namespace internal
1210 } // namespace v8 1209 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | src/heap/mark-compact.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698