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

Side by Side Diff: vm/gc_marker.cc

Issue 10409038: Remove the special stub code region as we don't need it anymore. With the new frame layout conventi… (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: Created 8 years, 7 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 | « vm/disassembler_ia32.cc ('k') | vm/heap.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 (c) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #include "vm/gc_marker.h" 5 #include "vm/gc_marker.h"
6 6
7 #include "vm/allocation.h" 7 #include "vm/allocation.h"
8 #include "vm/dart_api_state.h" 8 #include "vm/dart_api_state.h"
9 #include "vm/isolate.h" 9 #include "vm/isolate.h"
10 #include "vm/pages.h" 10 #include "vm/pages.h"
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after
228 228
229 229
230 void GCMarker::IterateRoots(Isolate* isolate, 230 void GCMarker::IterateRoots(Isolate* isolate,
231 ObjectPointerVisitor* visitor, 231 ObjectPointerVisitor* visitor,
232 bool visit_prologue_weak_persistent_handles) { 232 bool visit_prologue_weak_persistent_handles) {
233 isolate->VisitObjectPointers(visitor, 233 isolate->VisitObjectPointers(visitor,
234 visit_prologue_weak_persistent_handles, 234 visit_prologue_weak_persistent_handles,
235 StackFrameIterator::kDontValidateFrames); 235 StackFrameIterator::kDontValidateFrames);
236 heap_->IterateNewPointers(visitor); 236 heap_->IterateNewPointers(visitor);
237 heap_->IterateCodePointers(visitor); 237 heap_->IterateCodePointers(visitor);
238 heap_->IterateStubCodePointers(visitor);
239 } 238 }
240 239
241 240
242 void GCMarker::IterateWeakRoots(Isolate* isolate, 241 void GCMarker::IterateWeakRoots(Isolate* isolate,
243 HandleVisitor* visitor, 242 HandleVisitor* visitor,
244 bool visit_prologue_weak_persistent_handles) { 243 bool visit_prologue_weak_persistent_handles) {
245 ApiState* state = isolate->api_state(); 244 ApiState* state = isolate->api_state();
246 ASSERT(state != NULL); 245 ASSERT(state != NULL);
247 isolate->VisitWeakPersistentHandles(visitor, 246 isolate->VisitWeakPersistentHandles(visitor,
248 visit_prologue_weak_persistent_handles); 247 visit_prologue_weak_persistent_handles);
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
318 MarkingVisitor mark(heap_, page_space, &marking_stack); 317 MarkingVisitor mark(heap_, page_space, &marking_stack);
319 IterateRoots(isolate, &mark, !invoke_api_callbacks); 318 IterateRoots(isolate, &mark, !invoke_api_callbacks);
320 DrainMarkingStack(isolate, &mark); 319 DrainMarkingStack(isolate, &mark);
321 IterateWeakReferences(isolate, &mark); 320 IterateWeakReferences(isolate, &mark);
322 MarkingWeakVisitor mark_weak; 321 MarkingWeakVisitor mark_weak;
323 IterateWeakRoots(isolate, &mark_weak, invoke_api_callbacks); 322 IterateWeakRoots(isolate, &mark_weak, invoke_api_callbacks);
324 Epilogue(isolate, invoke_api_callbacks); 323 Epilogue(isolate, invoke_api_callbacks);
325 } 324 }
326 325
327 } // namespace dart 326 } // namespace dart
OLDNEW
« no previous file with comments | « vm/disassembler_ia32.cc ('k') | vm/heap.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698