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

Side by Side Diff: runtime/vm/service.cc

Issue 913503004: Per isolate Log with block support (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 10 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/vm/log_test.cc ('k') | runtime/vm/thread.h » ('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) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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/service.h" 5 #include "vm/service.h"
6 6
7 #include "include/dart_api.h" 7 #include "include/dart_api.h"
8 #include "platform/globals.h" 8 #include "platform/globals.h"
9 9
10 #include "vm/compiler.h" 10 #include "vm/compiler.h"
(...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after
280 280
281 void Service::SetServicePort(Dart_Port port) { 281 void Service::SetServicePort(Dart_Port port) {
282 MonitorLocker ml(monitor_); 282 MonitorLocker ml(monitor_);
283 service_port_ = port; 283 service_port_ = port;
284 } 284 }
285 285
286 286
287 void Service::SetServiceIsolate(Isolate* isolate) { 287 void Service::SetServiceIsolate(Isolate* isolate) {
288 MonitorLocker ml(monitor_); 288 MonitorLocker ml(monitor_);
289 service_isolate_ = isolate; 289 service_isolate_ = isolate;
290 if (service_isolate_ != NULL) {
291 service_isolate_->is_service_isolate_ = true;
292 }
290 } 293 }
291 294
292 295
293 bool Service::HasServiceIsolate() { 296 bool Service::HasServiceIsolate() {
294 MonitorLocker ml(monitor_); 297 MonitorLocker ml(monitor_);
295 return service_isolate_ != NULL; 298 return service_isolate_ != NULL;
296 } 299 }
297 300
298 301
299 bool Service::IsServiceIsolate(Isolate* isolate) { 302 bool Service::IsServiceIsolate(Isolate* isolate) {
(...skipping 2555 matching lines...) Expand 10 before | Expand all | Expand 10 after
2855 while (current != NULL) { 2858 while (current != NULL) {
2856 if (strcmp(name, current->name()) == 0) { 2859 if (strcmp(name, current->name()) == 0) {
2857 return current; 2860 return current;
2858 } 2861 }
2859 current = current->next(); 2862 current = current->next();
2860 } 2863 }
2861 return NULL; 2864 return NULL;
2862 } 2865 }
2863 2866
2864 } // namespace dart 2867 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/log_test.cc ('k') | runtime/vm/thread.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698