| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |