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/service_isolate.h" | 5 #include "vm/service_isolate.h" |
6 | 6 |
7 #include "vm/compiler.h" | 7 #include "vm/compiler.h" |
8 #include "vm/dart_api_impl.h" | 8 #include "vm/dart_api_impl.h" |
9 #include "vm/dart_entry.h" | 9 #include "vm/dart_entry.h" |
10 #include "vm/isolate.h" | 10 #include "vm/isolate.h" |
(...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
250 | 250 |
251 void ServiceIsolate::SetServicePort(Dart_Port port) { | 251 void ServiceIsolate::SetServicePort(Dart_Port port) { |
252 MonitorLocker ml(monitor_); | 252 MonitorLocker ml(monitor_); |
253 port_ = port; | 253 port_ = port; |
254 } | 254 } |
255 | 255 |
256 void ServiceIsolate::SetServiceIsolate(Isolate* isolate) { | 256 void ServiceIsolate::SetServiceIsolate(Isolate* isolate) { |
257 MonitorLocker ml(monitor_); | 257 MonitorLocker ml(monitor_); |
258 isolate_ = isolate; | 258 isolate_ = isolate; |
259 if (isolate_ != NULL) { | 259 if (isolate_ != NULL) { |
260 isolate_->is_service_isolate_ = true; | 260 isolate_->set_is_service_isolate(true); |
261 origin_ = isolate_->origin_id(); | 261 origin_ = isolate_->origin_id(); |
262 } | 262 } |
263 } | 263 } |
264 | 264 |
265 void ServiceIsolate::SetLoadPort(Dart_Port port) { | 265 void ServiceIsolate::SetLoadPort(Dart_Port port) { |
266 MonitorLocker ml(monitor_); | 266 MonitorLocker ml(monitor_); |
267 load_port_ = port; | 267 load_port_ = port; |
268 } | 268 } |
269 | 269 |
270 void ServiceIsolate::MaybeMakeServiceIsolate(Isolate* I) { | 270 void ServiceIsolate::MaybeMakeServiceIsolate(Isolate* I) { |
(...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
523 if (result.IsReceivePort()) { | 523 if (result.IsReceivePort()) { |
524 port = ReceivePort::Cast(result).Id(); | 524 port = ReceivePort::Cast(result).Id(); |
525 } | 525 } |
526 ASSERT(port != ILLEGAL_PORT); | 526 ASSERT(port != ILLEGAL_PORT); |
527 ServiceIsolate::SetServicePort(port); | 527 ServiceIsolate::SetServicePort(port); |
528 } | 528 } |
529 | 529 |
530 void ServiceIsolate::VisitObjectPointers(ObjectPointerVisitor* visitor) {} | 530 void ServiceIsolate::VisitObjectPointers(ObjectPointerVisitor* visitor) {} |
531 | 531 |
532 } // namespace dart | 532 } // namespace dart |
OLD | NEW |