| 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 19 matching lines...) Expand all Loading... |
| 30 class Function; | 30 class Function; |
| 31 class GrowableObjectArray; | 31 class GrowableObjectArray; |
| 32 class HandleScope; | 32 class HandleScope; |
| 33 class Heap; | 33 class Heap; |
| 34 class Instance; | 34 class Instance; |
| 35 class Isolate; | 35 class Isolate; |
| 36 class Library; | 36 class Library; |
| 37 class LongJumpScope; | 37 class LongJumpScope; |
| 38 class Object; | 38 class Object; |
| 39 class OSThread; | 39 class OSThread; |
| 40 class JSONObject; |
| 40 class PcDescriptors; | 41 class PcDescriptors; |
| 41 class RawBool; | 42 class RawBool; |
| 42 class RawObject; | 43 class RawObject; |
| 43 class RawCode; | 44 class RawCode; |
| 44 class RawError; | 45 class RawError; |
| 45 class RawGrowableObjectArray; | 46 class RawGrowableObjectArray; |
| 46 class RawString; | 47 class RawString; |
| 47 class RuntimeEntry; | 48 class RuntimeEntry; |
| 48 class Smi; | 49 class Smi; |
| 49 class StackResource; | 50 class StackResource; |
| (...skipping 589 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 639 // Visit all object pointers. | 640 // Visit all object pointers. |
| 640 void VisitObjectPointers(ObjectPointerVisitor* visitor, bool validate_frames); | 641 void VisitObjectPointers(ObjectPointerVisitor* visitor, bool validate_frames); |
| 641 | 642 |
| 642 bool IsValidLocalHandle(Dart_Handle object) const; | 643 bool IsValidLocalHandle(Dart_Handle object) const; |
| 643 int CountLocalHandles() const; | 644 int CountLocalHandles() const; |
| 644 int ZoneSizeInBytes() const; | 645 int ZoneSizeInBytes() const; |
| 645 void UnwindScopes(uword stack_marker); | 646 void UnwindScopes(uword stack_marker); |
| 646 | 647 |
| 647 void InitVMConstants(); | 648 void InitVMConstants(); |
| 648 | 649 |
| 650 #ifndef PRODUCT |
| 651 void PrintJSON(JSONStream* stream) const; |
| 652 #endif |
| 653 |
| 649 private: | 654 private: |
| 650 template <class T> | 655 template <class T> |
| 651 T* AllocateReusableHandle(); | 656 T* AllocateReusableHandle(); |
| 652 | 657 |
| 653 // Accessed from generated code: | 658 // Accessed from generated code: |
| 654 uword stack_limit_; | 659 uword stack_limit_; |
| 655 uword stack_overflow_flags_; | 660 uword stack_overflow_flags_; |
| 656 Isolate* isolate_; | 661 Isolate* isolate_; |
| 657 Heap* heap_; | 662 Heap* heap_; |
| 658 uword top_exit_frame_info_; | 663 uword top_exit_frame_info_; |
| (...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 776 // Disable thread interrupts. | 781 // Disable thread interrupts. |
| 777 class DisableThreadInterruptsScope : public StackResource { | 782 class DisableThreadInterruptsScope : public StackResource { |
| 778 public: | 783 public: |
| 779 explicit DisableThreadInterruptsScope(Thread* thread); | 784 explicit DisableThreadInterruptsScope(Thread* thread); |
| 780 ~DisableThreadInterruptsScope(); | 785 ~DisableThreadInterruptsScope(); |
| 781 }; | 786 }; |
| 782 | 787 |
| 783 } // namespace dart | 788 } // namespace dart |
| 784 | 789 |
| 785 #endif // RUNTIME_VM_THREAD_H_ | 790 #endif // RUNTIME_VM_THREAD_H_ |
| OLD | NEW |