| OLD | NEW |
| 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, 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 #ifndef RUNTIME_VM_THREAD_H_ | 5 #ifndef RUNTIME_VM_THREAD_H_ |
| 6 #define RUNTIME_VM_THREAD_H_ | 6 #define RUNTIME_VM_THREAD_H_ |
| 7 | 7 |
| 8 #include "include/dart_api.h" | 8 #include "include/dart_api.h" |
| 9 #include "platform/assert.h" | 9 #include "platform/assert.h" |
| 10 #include "vm/atomic.h" | 10 #include "vm/atomic.h" |
| (...skipping 620 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 631 BlockForSafepoint(); | 631 BlockForSafepoint(); |
| 632 } | 632 } |
| 633 } | 633 } |
| 634 | 634 |
| 635 Thread* next() const { return next_; } | 635 Thread* next() const { return next_; } |
| 636 | 636 |
| 637 // Visit all object pointers. | 637 // Visit all object pointers. |
| 638 void VisitObjectPointers(ObjectPointerVisitor* visitor, bool validate_frames); | 638 void VisitObjectPointers(ObjectPointerVisitor* visitor, bool validate_frames); |
| 639 | 639 |
| 640 bool IsValidLocalHandle(Dart_Handle object) const; | 640 bool IsValidLocalHandle(Dart_Handle object) const; |
| 641 int CountLocalHandles() const; | 641 intptr_t CountLocalHandles() const; |
| 642 intptr_t CountZoneHandles() const; |
| 643 intptr_t CountScopedHandles() const; |
| 642 int ZoneSizeInBytes() const; | 644 int ZoneSizeInBytes() const; |
| 643 void UnwindScopes(uword stack_marker); | 645 void UnwindScopes(uword stack_marker); |
| 644 | 646 |
| 645 void InitVMConstants(); | 647 void InitVMConstants(); |
| 646 | 648 |
| 647 #ifndef PRODUCT | 649 #ifndef PRODUCT |
| 648 void PrintJSON(JSONStream* stream) const; | 650 void PrintJSON(JSONStream* stream) const; |
| 649 #endif | 651 #endif |
| 650 | 652 |
| 651 private: | 653 private: |
| (...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 777 // Disable thread interrupts. | 779 // Disable thread interrupts. |
| 778 class DisableThreadInterruptsScope : public StackResource { | 780 class DisableThreadInterruptsScope : public StackResource { |
| 779 public: | 781 public: |
| 780 explicit DisableThreadInterruptsScope(Thread* thread); | 782 explicit DisableThreadInterruptsScope(Thread* thread); |
| 781 ~DisableThreadInterruptsScope(); | 783 ~DisableThreadInterruptsScope(); |
| 782 }; | 784 }; |
| 783 | 785 |
| 784 } // namespace dart | 786 } // namespace dart |
| 785 | 787 |
| 786 #endif // RUNTIME_VM_THREAD_H_ | 788 #endif // RUNTIME_VM_THREAD_H_ |
| OLD | NEW |