Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(88)

Side by Side Diff: runtime/bin/dbg_message.h

Issue 1130753006: Hide Isolate pointer from embedder (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « runtime/bin/dbg_connection.cc ('k') | runtime/bin/gen_snapshot.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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 #ifndef BIN_DBG_MESSAGE_H_ 5 #ifndef BIN_DBG_MESSAGE_H_
6 #define BIN_DBG_MESSAGE_H_ 6 #define BIN_DBG_MESSAGE_H_
7 7
8 #include "bin/builtin.h" 8 #include "bin/builtin.h"
9 #include "bin/thread.h" 9 #include "bin/thread.h"
10 #include "bin/utils.h" 10 #include "bin/utils.h"
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 next_(next) { 140 next_(next) {
141 } 141 }
142 ~DbgMsgQueue() { 142 ~DbgMsgQueue() {
143 DbgMessage* msg = msglist_head_; 143 DbgMessage* msg = msglist_head_;
144 while (msglist_head_ != NULL) { 144 while (msglist_head_ != NULL) {
145 msglist_head_ = msglist_head_->next(); 145 msglist_head_ = msglist_head_->next();
146 delete msg; 146 delete msg;
147 msg = msglist_head_; 147 msg = msglist_head_;
148 } 148 }
149 msglist_tail_ = NULL; 149 msglist_tail_ = NULL;
150 isolate_id_ = ILLEGAL_ISOLATE_ID; 150 isolate_id_ = DART_ILLEGAL_ISOLATE_ID;
151 next_ = NULL; 151 next_ = NULL;
152 } 152 }
153 153
154 // Accessors. 154 // Accessors.
155 Dart_IsolateId isolate_id() const { return isolate_id_; } 155 Dart_IsolateId isolate_id() const { return isolate_id_; }
156 DbgMsgQueue* next() const { return next_; } 156 DbgMsgQueue* next() const { return next_; }
157 void set_next(DbgMsgQueue* next) { next_ = next; } 157 void set_next(DbgMsgQueue* next) { next_ = next; }
158 158
159 // Add specified debug command message to the queue. 159 // Add specified debug command message to the queue.
160 void AddMessage(int32_t cmd_idx, 160 void AddMessage(int32_t cmd_idx,
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
273 static Mutex* msg_queue_list_lock_; 273 static Mutex* msg_queue_list_lock_;
274 274
275 DISALLOW_ALLOCATION(); 275 DISALLOW_ALLOCATION();
276 DISALLOW_IMPLICIT_CONSTRUCTORS(DbgMsgQueueList); 276 DISALLOW_IMPLICIT_CONSTRUCTORS(DbgMsgQueueList);
277 }; 277 };
278 278
279 } // namespace bin 279 } // namespace bin
280 } // namespace dart 280 } // namespace dart
281 281
282 #endif // BIN_DBG_MESSAGE_H_ 282 #endif // BIN_DBG_MESSAGE_H_
OLDNEW
« no previous file with comments | « runtime/bin/dbg_connection.cc ('k') | runtime/bin/gen_snapshot.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698