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

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

Issue 1170503004: Initial Timeline Events (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 6 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
OLDNEW
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 619 matching lines...) Expand 10 before | Expand all | Expand 10 after
630 NULL, 630 NULL,
631 NULL, 631 NULL,
632 NULL, 632 NULL,
633 &error)); 633 &error));
634 if (isolate == NULL) { 634 if (isolate == NULL) {
635 OS::PrintErr("vm-service: Isolate creation error: %s\n", error); 635 OS::PrintErr("vm-service: Isolate creation error: %s\n", error);
636 ServiceIsolate::FinishedInitializing(); 636 ServiceIsolate::FinishedInitializing();
637 return; 637 return;
638 } 638 }
639 639
640 isolate->RemoveTimelineEventBuffer();
641
640 Thread::ExitIsolate(); 642 Thread::ExitIsolate();
641 643
642 ServiceIsolate::ConstructExitMessageAndCache(isolate); 644 ServiceIsolate::ConstructExitMessageAndCache(isolate);
643 645
644 RunMain(isolate); 646 RunMain(isolate);
645 647
646 ServiceIsolate::FinishedInitializing(); 648 ServiceIsolate::FinishedInitializing();
647 649
648 isolate->message_handler()->Run(Dart::thread_pool(), 650 isolate->message_handler()->Run(Dart::thread_pool(),
649 NULL, 651 NULL,
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
799 return result; 801 return result;
800 } 802 }
801 Dart_Handle source = GetSource(url_string); 803 Dart_Handle source = GetSource(url_string);
802 if (Dart_IsError(source)) { 804 if (Dart_IsError(source)) {
803 return source; 805 return source;
804 } 806 }
805 return Dart_LoadSource(library, url, source, 0, 0); 807 return Dart_LoadSource(library, url, source, 0, 0);
806 } 808 }
807 809
808 } // namespace dart 810 } // namespace dart
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698