| 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 624 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 635 NULL, | 635 NULL, |
| 636 &api_flags, | 636 &api_flags, |
| 637 NULL, | 637 NULL, |
| 638 &error)); | 638 &error)); |
| 639 if (isolate == NULL) { | 639 if (isolate == NULL) { |
| 640 OS::PrintErr("vm-service: Isolate creation error: %s\n", error); | 640 OS::PrintErr("vm-service: Isolate creation error: %s\n", error); |
| 641 ServiceIsolate::FinishedInitializing(); | 641 ServiceIsolate::FinishedInitializing(); |
| 642 return; | 642 return; |
| 643 } | 643 } |
| 644 | 644 |
| 645 isolate->RemoveTimelineEventBuffer(); |
| 646 |
| 645 Thread::ExitIsolate(); | 647 Thread::ExitIsolate(); |
| 646 | 648 |
| 647 ServiceIsolate::ConstructExitMessageAndCache(isolate); | 649 ServiceIsolate::ConstructExitMessageAndCache(isolate); |
| 648 | 650 |
| 649 RunMain(isolate); | 651 RunMain(isolate); |
| 650 | 652 |
| 651 ServiceIsolate::FinishedInitializing(); | 653 ServiceIsolate::FinishedInitializing(); |
| 652 | 654 |
| 653 isolate->message_handler()->Run(Dart::thread_pool(), | 655 isolate->message_handler()->Run(Dart::thread_pool(), |
| 654 NULL, | 656 NULL, |
| (...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 804 return result; | 806 return result; |
| 805 } | 807 } |
| 806 Dart_Handle source = GetSource(url_string); | 808 Dart_Handle source = GetSource(url_string); |
| 807 if (Dart_IsError(source)) { | 809 if (Dart_IsError(source)) { |
| 808 return source; | 810 return source; |
| 809 } | 811 } |
| 810 return Dart_LoadSource(library, url, source, 0, 0); | 812 return Dart_LoadSource(library, url, source, 0, 0); |
| 811 } | 813 } |
| 812 | 814 |
| 813 } // namespace dart | 815 } // namespace dart |
| OLD | NEW |