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 #include "vm/thread.h" | 5 #include "vm/thread.h" |
6 | 6 |
7 #include "vm/compiler_stats.h" | 7 #include "vm/compiler_stats.h" |
8 #include "vm/dart_api_state.h" | 8 #include "vm/dart_api_state.h" |
9 #include "vm/growable_array.h" | 9 #include "vm/growable_array.h" |
10 #include "vm/isolate.h" | 10 #include "vm/isolate.h" |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 #endif // defined(DEBUG) | 55 #endif // defined(DEBUG) |
56 | 56 |
57 #define REUSABLE_HANDLE_INITIALIZERS(object) object##_handle_(NULL), | 57 #define REUSABLE_HANDLE_INITIALIZERS(object) object##_handle_(NULL), |
58 | 58 |
59 Thread::Thread(Isolate* isolate) | 59 Thread::Thread(Isolate* isolate) |
60 : BaseThread(false), | 60 : BaseThread(false), |
61 stack_limit_(0), | 61 stack_limit_(0), |
62 stack_overflow_flags_(0), | 62 stack_overflow_flags_(0), |
63 isolate_(NULL), | 63 isolate_(NULL), |
64 heap_(NULL), | 64 heap_(NULL), |
| 65 top_(0), |
| 66 end_(0), |
65 top_exit_frame_info_(0), | 67 top_exit_frame_info_(0), |
66 store_buffer_block_(NULL), | 68 store_buffer_block_(NULL), |
67 vm_tag_(0), | 69 vm_tag_(0), |
68 task_kind_(kUnknownTask), | 70 task_kind_(kUnknownTask), |
69 async_stack_trace_(StackTrace::null()), | 71 async_stack_trace_(StackTrace::null()), |
70 dart_stream_(NULL), | 72 dart_stream_(NULL), |
71 os_thread_(NULL), | 73 os_thread_(NULL), |
72 thread_lock_(new Monitor()), | 74 thread_lock_(new Monitor()), |
73 zone_(NULL), | 75 zone_(NULL), |
74 current_zone_capacity_(0), | 76 current_zone_capacity_(0), |
(...skipping 782 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
857 | 859 |
858 DisableThreadInterruptsScope::~DisableThreadInterruptsScope() { | 860 DisableThreadInterruptsScope::~DisableThreadInterruptsScope() { |
859 if (thread() != NULL) { | 861 if (thread() != NULL) { |
860 OSThread* os_thread = thread()->os_thread(); | 862 OSThread* os_thread = thread()->os_thread(); |
861 ASSERT(os_thread != NULL); | 863 ASSERT(os_thread != NULL); |
862 os_thread->EnableThreadInterrupts(); | 864 os_thread->EnableThreadInterrupts(); |
863 } | 865 } |
864 } | 866 } |
865 | 867 |
866 } // namespace dart | 868 } // namespace dart |
OLD | NEW |