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

Side by Side Diff: vm/gc_marker.cc

Issue 10223015: Add a stub_code_space in the heap alongside code_space so that stub code generation happens here an… (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: Created 8 years, 8 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/code_generator.cc ('k') | vm/heap.h » ('j') | vm/heap.cc » ('J')
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 222 matching lines...) Expand 10 before | Expand all | Expand 10 after
233 233
234 234
235 void GCMarker::IterateRoots(Isolate* isolate, 235 void GCMarker::IterateRoots(Isolate* isolate,
236 ObjectPointerVisitor* visitor, 236 ObjectPointerVisitor* visitor,
237 bool visit_prologue_weak_persistent_handles) { 237 bool visit_prologue_weak_persistent_handles) {
238 isolate->VisitObjectPointers(visitor, 238 isolate->VisitObjectPointers(visitor,
239 visit_prologue_weak_persistent_handles, 239 visit_prologue_weak_persistent_handles,
240 StackFrameIterator::kDontValidateFrames); 240 StackFrameIterator::kDontValidateFrames);
241 heap_->IterateNewPointers(visitor); 241 heap_->IterateNewPointers(visitor);
242 heap_->IterateCodePointers(visitor); 242 heap_->IterateCodePointers(visitor);
243 heap_->IterateStubCodePointers(visitor);
243 } 244 }
244 245
245 246
246 void GCMarker::IterateWeakRoots(Isolate* isolate, 247 void GCMarker::IterateWeakRoots(Isolate* isolate,
247 HandleVisitor* visitor, 248 HandleVisitor* visitor,
248 bool visit_prologue_weak_persistent_handles) { 249 bool visit_prologue_weak_persistent_handles) {
249 ApiState* state = isolate->api_state(); 250 ApiState* state = isolate->api_state();
250 ASSERT(state != NULL); 251 ASSERT(state != NULL);
251 isolate->VisitWeakPersistentHandles(visitor, 252 isolate->VisitWeakPersistentHandles(visitor,
252 visit_prologue_weak_persistent_handles); 253 visit_prologue_weak_persistent_handles);
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
322 MarkingVisitor mark(heap_, page_space, &marking_stack); 323 MarkingVisitor mark(heap_, page_space, &marking_stack);
323 IterateRoots(isolate, &mark, !invoke_api_callbacks); 324 IterateRoots(isolate, &mark, !invoke_api_callbacks);
324 DrainMarkingStack(isolate, &mark); 325 DrainMarkingStack(isolate, &mark);
325 IterateWeakReferences(isolate, &mark); 326 IterateWeakReferences(isolate, &mark);
326 MarkingWeakVisitor mark_weak; 327 MarkingWeakVisitor mark_weak;
327 IterateWeakRoots(isolate, &mark_weak, invoke_api_callbacks); 328 IterateWeakRoots(isolate, &mark_weak, invoke_api_callbacks);
328 Epilogue(isolate, invoke_api_callbacks); 329 Epilogue(isolate, invoke_api_callbacks);
329 } 330 }
330 331
331 } // namespace dart 332 } // namespace dart
OLDNEW
« no previous file with comments | « vm/code_generator.cc ('k') | vm/heap.h » ('j') | vm/heap.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698