| 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 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 91 cha_(NULL), | 91 cha_(NULL), |
| 92 deopt_id_(0), | 92 deopt_id_(0), |
| 93 pending_functions_(GrowableObjectArray::null()), | 93 pending_functions_(GrowableObjectArray::null()), |
| 94 sticky_error_(Error::null()), | 94 sticky_error_(Error::null()), |
| 95 compiler_stats_(NULL), | 95 compiler_stats_(NULL), |
| 96 REUSABLE_HANDLE_LIST(REUSABLE_HANDLE_INITIALIZERS) | 96 REUSABLE_HANDLE_LIST(REUSABLE_HANDLE_INITIALIZERS) |
| 97 REUSABLE_HANDLE_LIST(REUSABLE_HANDLE_SCOPE_INIT) | 97 REUSABLE_HANDLE_LIST(REUSABLE_HANDLE_SCOPE_INIT) |
| 98 safepoint_state_(0), | 98 safepoint_state_(0), |
| 99 execution_state_(kThreadInVM), | 99 execution_state_(kThreadInVM), |
| 100 next_(NULL) { | 100 next_(NULL) { |
| 101 NOT_IN_PRODUCT( |
| 101 dart_stream_ = Timeline::GetDartStream(); | 102 dart_stream_ = Timeline::GetDartStream(); |
| 102 ASSERT(dart_stream_ != NULL); | 103 ASSERT(dart_stream_ != NULL); |
| 104 ) |
| 103 #define DEFAULT_INIT(type_name, member_name, init_expr, default_init_value) \ | 105 #define DEFAULT_INIT(type_name, member_name, init_expr, default_init_value) \ |
| 104 member_name = default_init_value; | 106 member_name = default_init_value; |
| 105 CACHED_CONSTANTS_LIST(DEFAULT_INIT) | 107 CACHED_CONSTANTS_LIST(DEFAULT_INIT) |
| 106 #undef DEFAULT_INIT | 108 #undef DEFAULT_INIT |
| 107 | 109 |
| 108 #define DEFAULT_INIT(name) \ | 110 #define DEFAULT_INIT(name) \ |
| 109 name##_entry_point_ = 0; | 111 name##_entry_point_ = 0; |
| 110 RUNTIME_ENTRY_LIST(DEFAULT_INIT) | 112 RUNTIME_ENTRY_LIST(DEFAULT_INIT) |
| 111 #undef DEFAULT_INIT | 113 #undef DEFAULT_INIT |
| 112 | 114 |
| (...skipping 622 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 735 | 737 |
| 736 DisableThreadInterruptsScope::~DisableThreadInterruptsScope() { | 738 DisableThreadInterruptsScope::~DisableThreadInterruptsScope() { |
| 737 if (thread() != NULL) { | 739 if (thread() != NULL) { |
| 738 OSThread* os_thread = thread()->os_thread(); | 740 OSThread* os_thread = thread()->os_thread(); |
| 739 ASSERT(os_thread != NULL); | 741 ASSERT(os_thread != NULL); |
| 740 os_thread->EnableThreadInterrupts(); | 742 os_thread->EnableThreadInterrupts(); |
| 741 } | 743 } |
| 742 } | 744 } |
| 743 | 745 |
| 744 } // namespace dart | 746 } // namespace dart |
| OLD | NEW |