| 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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 | 58 |
| 59 #define REUSABLE_HANDLE_INITIALIZERS(object) object##_handle_(NULL), | 59 #define REUSABLE_HANDLE_INITIALIZERS(object) object##_handle_(NULL), |
| 60 | 60 |
| 61 | 61 |
| 62 Thread::Thread(Isolate* isolate) | 62 Thread::Thread(Isolate* isolate) |
| 63 : BaseThread(false), | 63 : BaseThread(false), |
| 64 stack_limit_(0), | 64 stack_limit_(0), |
| 65 stack_overflow_flags_(0), | 65 stack_overflow_flags_(0), |
| 66 isolate_(NULL), | 66 isolate_(NULL), |
| 67 heap_(NULL), | 67 heap_(NULL), |
| 68 top_(0), |
| 69 end_(0), |
| 68 top_exit_frame_info_(0), | 70 top_exit_frame_info_(0), |
| 69 store_buffer_block_(NULL), | 71 store_buffer_block_(NULL), |
| 70 vm_tag_(0), | 72 vm_tag_(0), |
| 71 task_kind_(kUnknownTask), | 73 task_kind_(kUnknownTask), |
| 72 async_stack_trace_(StackTrace::null()), | 74 async_stack_trace_(StackTrace::null()), |
| 73 dart_stream_(NULL), | 75 dart_stream_(NULL), |
| 74 os_thread_(NULL), | 76 os_thread_(NULL), |
| 75 thread_lock_(new Monitor()), | 77 thread_lock_(new Monitor()), |
| 76 zone_(NULL), | 78 zone_(NULL), |
| 77 current_zone_capacity_(0), | 79 current_zone_capacity_(0), |
| (...skipping 845 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 923 | 925 |
| 924 DisableThreadInterruptsScope::~DisableThreadInterruptsScope() { | 926 DisableThreadInterruptsScope::~DisableThreadInterruptsScope() { |
| 925 if (thread() != NULL) { | 927 if (thread() != NULL) { |
| 926 OSThread* os_thread = thread()->os_thread(); | 928 OSThread* os_thread = thread()->os_thread(); |
| 927 ASSERT(os_thread != NULL); | 929 ASSERT(os_thread != NULL); |
| 928 os_thread->EnableThreadInterrupts(); | 930 os_thread->EnableThreadInterrupts(); |
| 929 } | 931 } |
| 930 } | 932 } |
| 931 | 933 |
| 932 } // namespace dart | 934 } // namespace dart |
| OLD | NEW |