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 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
93 deferred_interrupts_(0), | 93 deferred_interrupts_(0), |
94 stack_overflow_count_(0), | 94 stack_overflow_count_(0), |
95 cha_(NULL), | 95 cha_(NULL), |
96 deopt_id_(0), | 96 deopt_id_(0), |
97 pending_functions_(GrowableObjectArray::null()), | 97 pending_functions_(GrowableObjectArray::null()), |
98 active_exception_(Object::null()), | 98 active_exception_(Object::null()), |
99 active_stacktrace_(Object::null()), | 99 active_stacktrace_(Object::null()), |
100 resume_pc_(0), | 100 resume_pc_(0), |
101 sticky_error_(Error::null()), | 101 sticky_error_(Error::null()), |
102 compiler_stats_(NULL), | 102 compiler_stats_(NULL), |
| 103 top_(0), |
| 104 end_(0), |
103 REUSABLE_HANDLE_LIST(REUSABLE_HANDLE_INITIALIZERS) | 105 REUSABLE_HANDLE_LIST(REUSABLE_HANDLE_INITIALIZERS) |
104 REUSABLE_HANDLE_LIST(REUSABLE_HANDLE_SCOPE_INIT) safepoint_state_(0), | 106 REUSABLE_HANDLE_LIST(REUSABLE_HANDLE_SCOPE_INIT) safepoint_state_(0), |
105 execution_state_(kThreadInNative), | 107 execution_state_(kThreadInNative), |
106 next_(NULL) { | 108 next_(NULL) { |
107 #if !defined(PRODUCT) | 109 #if !defined(PRODUCT) |
108 dart_stream_ = Timeline::GetDartStream(); | 110 dart_stream_ = Timeline::GetDartStream(); |
109 ASSERT(dart_stream_ != NULL); | 111 ASSERT(dart_stream_ != NULL); |
110 #endif | 112 #endif |
111 #define DEFAULT_INIT(type_name, member_name, init_expr, default_init_value) \ | 113 #define DEFAULT_INIT(type_name, member_name, init_expr, default_init_value) \ |
112 member_name = default_init_value; | 114 member_name = default_init_value; |
(...skipping 810 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 |