| 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 635 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 646 if (IsSafepointRequested()) { | 646 if (IsSafepointRequested()) { |
| 647 BlockForSafepoint(); | 647 BlockForSafepoint(); |
| 648 } | 648 } |
| 649 } | 649 } |
| 650 | 650 |
| 651 Thread* next() const { return next_; } | 651 Thread* next() const { return next_; } |
| 652 | 652 |
| 653 // Visit all object pointers. | 653 // Visit all object pointers. |
| 654 void VisitObjectPointers(ObjectPointerVisitor* visitor, bool validate_frames); | 654 void VisitObjectPointers(ObjectPointerVisitor* visitor, bool validate_frames); |
| 655 | 655 |
| 656 bool IsValidHandle(Dart_Handle object) const; |
| 656 bool IsValidLocalHandle(Dart_Handle object) const; | 657 bool IsValidLocalHandle(Dart_Handle object) const; |
| 657 intptr_t CountLocalHandles() const; | 658 intptr_t CountLocalHandles() const; |
| 659 bool IsValidZoneHandle(Dart_Handle object) const; |
| 658 intptr_t CountZoneHandles() const; | 660 intptr_t CountZoneHandles() const; |
| 661 bool IsValidScopedHandle(Dart_Handle object) const; |
| 659 intptr_t CountScopedHandles() const; | 662 intptr_t CountScopedHandles() const; |
| 660 int ZoneSizeInBytes() const; | 663 int ZoneSizeInBytes() const; |
| 661 void UnwindScopes(uword stack_marker); | 664 void UnwindScopes(uword stack_marker); |
| 662 | 665 |
| 663 void InitVMConstants(); | 666 void InitVMConstants(); |
| 664 | 667 |
| 665 #ifndef PRODUCT | 668 #ifndef PRODUCT |
| 666 void PrintJSON(JSONStream* stream) const; | 669 void PrintJSON(JSONStream* stream) const; |
| 667 #endif | 670 #endif |
| 668 | 671 |
| (...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 797 // Disable thread interrupts. | 800 // Disable thread interrupts. |
| 798 class DisableThreadInterruptsScope : public StackResource { | 801 class DisableThreadInterruptsScope : public StackResource { |
| 799 public: | 802 public: |
| 800 explicit DisableThreadInterruptsScope(Thread* thread); | 803 explicit DisableThreadInterruptsScope(Thread* thread); |
| 801 ~DisableThreadInterruptsScope(); | 804 ~DisableThreadInterruptsScope(); |
| 802 }; | 805 }; |
| 803 | 806 |
| 804 } // namespace dart | 807 } // namespace dart |
| 805 | 808 |
| 806 #endif // RUNTIME_VM_THREAD_H_ | 809 #endif // RUNTIME_VM_THREAD_H_ |
| OLD | NEW |