| 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 295 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 306 } | 306 } |
| 307 | 307 |
| 308 Isolate::Flags default_flags; | 308 Isolate::Flags default_flags; |
| 309 Dart_IsolateFlags api_flags; | 309 Dart_IsolateFlags api_flags; |
| 310 default_flags.CopyTo(&api_flags); | 310 default_flags.CopyTo(&api_flags); |
| 311 | 311 |
| 312 isolate = | 312 isolate = |
| 313 reinterpret_cast<Isolate*>(create_callback(ServiceIsolate::kName, | 313 reinterpret_cast<Isolate*>(create_callback(ServiceIsolate::kName, |
| 314 NULL, | 314 NULL, |
| 315 NULL, | 315 NULL, |
| 316 NULL, |
| 316 &api_flags, | 317 &api_flags, |
| 317 NULL, | 318 NULL, |
| 318 &error)); | 319 &error)); |
| 319 if (isolate == NULL) { | 320 if (isolate == NULL) { |
| 320 OS::PrintErr("vm-service: Isolate creation error: %s\n", error); | 321 OS::PrintErr("vm-service: Isolate creation error: %s\n", error); |
| 321 ServiceIsolate::FinishedInitializing(); | 322 ServiceIsolate::FinishedInitializing(); |
| 322 return; | 323 return; |
| 323 } | 324 } |
| 324 | 325 |
| 325 | 326 |
| (...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 486 ASSERT(!result.IsNull()); | 487 ASSERT(!result.IsNull()); |
| 487 Dart_Port port = ILLEGAL_PORT; | 488 Dart_Port port = ILLEGAL_PORT; |
| 488 if (result.IsReceivePort()) { | 489 if (result.IsReceivePort()) { |
| 489 port = ReceivePort::Cast(result).Id(); | 490 port = ReceivePort::Cast(result).Id(); |
| 490 } | 491 } |
| 491 ASSERT(port != ILLEGAL_PORT); | 492 ASSERT(port != ILLEGAL_PORT); |
| 492 ServiceIsolate::SetServicePort(port); | 493 ServiceIsolate::SetServicePort(port); |
| 493 } | 494 } |
| 494 | 495 |
| 495 } // namespace dart | 496 } // namespace dart |
| OLD | NEW |