OLD | NEW |
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, 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/message.h" | 5 #include "vm/message.h" |
6 | 6 |
7 namespace dart { | 7 namespace dart { |
8 | 8 |
9 DECLARE_FLAG(bool, trace_isolates); | |
10 | |
11 MessageQueue::MessageQueue() { | 9 MessageQueue::MessageQueue() { |
12 head_ = NULL; | 10 head_ = NULL; |
13 tail_ = NULL; | 11 tail_ = NULL; |
14 } | 12 } |
15 | 13 |
16 | 14 |
17 MessageQueue::~MessageQueue() { | 15 MessageQueue::~MessageQueue() { |
18 // Ensure that all pending messages have been released. | 16 // Ensure that all pending messages have been released. |
19 #if defined(DEBUG) | 17 #if defined(DEBUG) |
20 ASSERT(head_ == NULL); | 18 ASSERT(head_ == NULL); |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
86 tail_ = NULL; | 84 tail_ = NULL; |
87 while (cur != NULL) { | 85 while (cur != NULL) { |
88 Message* next = cur->next_; | 86 Message* next = cur->next_; |
89 delete cur; | 87 delete cur; |
90 cur = next; | 88 cur = next; |
91 } | 89 } |
92 } | 90 } |
93 | 91 |
94 | 92 |
95 } // namespace dart | 93 } // namespace dart |
OLD | NEW |