| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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/isolate.h" | 5 #include "vm/isolate.h" |
| 6 | 6 |
| 7 #include "include/dart_api.h" | 7 #include "include/dart_api.h" |
| 8 #include "platform/assert.h" | 8 #include "platform/assert.h" |
| 9 #include "lib/mirrors.h" | 9 #include "lib/mirrors.h" |
| 10 #include "vm/compiler_stats.h" | 10 #include "vm/compiler_stats.h" |
| (...skipping 402 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 413 | 413 |
| 414 | 414 |
| 415 void Isolate::VisitObjectPointers(ObjectPointerVisitor* visitor, | 415 void Isolate::VisitObjectPointers(ObjectPointerVisitor* visitor, |
| 416 bool visit_prologue_weak_handles, | 416 bool visit_prologue_weak_handles, |
| 417 bool validate_frames) { | 417 bool validate_frames) { |
| 418 ASSERT(visitor != NULL); | 418 ASSERT(visitor != NULL); |
| 419 | 419 |
| 420 // Visit objects in the object store. | 420 // Visit objects in the object store. |
| 421 object_store()->VisitObjectPointers(visitor); | 421 object_store()->VisitObjectPointers(visitor); |
| 422 | 422 |
| 423 // Visit objects in the class table. |
| 424 class_table()->VisitObjectPointers(visitor); |
| 425 |
| 423 // Visit objects in per isolate stubs. | 426 // Visit objects in per isolate stubs. |
| 424 StubCode::VisitObjectPointers(visitor); | 427 StubCode::VisitObjectPointers(visitor); |
| 425 | 428 |
| 426 // Visit objects in zones. | 429 // Visit objects in zones. |
| 427 current_zone()->VisitObjectPointers(visitor); | 430 current_zone()->VisitObjectPointers(visitor); |
| 428 | 431 |
| 429 // Iterate over all the stack frames and visit objects on the stack. | 432 // Iterate over all the stack frames and visit objects on the stack. |
| 430 StackFrameIterator frames_iterator(validate_frames); | 433 StackFrameIterator frames_iterator(validate_frames); |
| 431 StackFrame* frame = frames_iterator.NextFrame(); | 434 StackFrame* frame = frames_iterator.NextFrame(); |
| 432 while (frame != NULL) { | 435 while (frame != NULL) { |
| (...skipping 15 matching lines...) Expand all Loading... |
| 448 | 451 |
| 449 | 452 |
| 450 void Isolate::VisitWeakPersistentHandles(HandleVisitor* visitor, | 453 void Isolate::VisitWeakPersistentHandles(HandleVisitor* visitor, |
| 451 bool visit_prologue_weak_handles) { | 454 bool visit_prologue_weak_handles) { |
| 452 if (api_state() != NULL) { | 455 if (api_state() != NULL) { |
| 453 api_state()->VisitWeakHandles(visitor, visit_prologue_weak_handles); | 456 api_state()->VisitWeakHandles(visitor, visit_prologue_weak_handles); |
| 454 } | 457 } |
| 455 } | 458 } |
| 456 | 459 |
| 457 } // namespace dart | 460 } // namespace dart |
| OLD | NEW |