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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 no_handle_scope_depth_(0), | 83 no_handle_scope_depth_(0), |
84 no_safepoint_scope_depth_(0), | 84 no_safepoint_scope_depth_(0), |
85 #endif | 85 #endif |
86 reusable_handles_(), | 86 reusable_handles_(), |
87 saved_stack_limit_(0), | 87 saved_stack_limit_(0), |
88 defer_oob_messages_count_(0), | 88 defer_oob_messages_count_(0), |
89 deferred_interrupts_mask_(0), | 89 deferred_interrupts_mask_(0), |
90 deferred_interrupts_(0), | 90 deferred_interrupts_(0), |
91 stack_overflow_count_(0), | 91 stack_overflow_count_(0), |
92 cha_(NULL), | 92 cha_(NULL), |
| 93 type_range_cache_(NULL), |
93 deopt_id_(0), | 94 deopt_id_(0), |
94 pending_functions_(GrowableObjectArray::null()), | 95 pending_functions_(GrowableObjectArray::null()), |
95 sticky_error_(Error::null()), | 96 sticky_error_(Error::null()), |
96 compiler_stats_(NULL), | 97 compiler_stats_(NULL), |
97 REUSABLE_HANDLE_LIST(REUSABLE_HANDLE_INITIALIZERS) | 98 REUSABLE_HANDLE_LIST(REUSABLE_HANDLE_INITIALIZERS) |
98 REUSABLE_HANDLE_LIST(REUSABLE_HANDLE_SCOPE_INIT) | 99 REUSABLE_HANDLE_LIST(REUSABLE_HANDLE_SCOPE_INIT) |
99 safepoint_state_(0), | 100 safepoint_state_(0), |
100 execution_state_(kThreadInNative), | 101 execution_state_(kThreadInNative), |
101 next_(NULL) { | 102 next_(NULL) { |
102 NOT_IN_PRODUCT( | 103 NOT_IN_PRODUCT( |
(...skipping 651 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
754 | 755 |
755 DisableThreadInterruptsScope::~DisableThreadInterruptsScope() { | 756 DisableThreadInterruptsScope::~DisableThreadInterruptsScope() { |
756 if (thread() != NULL) { | 757 if (thread() != NULL) { |
757 OSThread* os_thread = thread()->os_thread(); | 758 OSThread* os_thread = thread()->os_thread(); |
758 ASSERT(os_thread != NULL); | 759 ASSERT(os_thread != NULL); |
759 os_thread->EnableThreadInterrupts(); | 760 os_thread->EnableThreadInterrupts(); |
760 } | 761 } |
761 } | 762 } |
762 | 763 |
763 } // namespace dart | 764 } // namespace dart |
OLD | NEW |