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

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

Issue 2689563010: Don’t pause kernel isolate on startup (Closed)
Patch Set: Created 3 years, 10 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/dart.h" 5 #include "vm/dart.h"
6 6
7 #include "vm/become.h" 7 #include "vm/become.h"
8 #include "vm/clustered_snapshot.h" 8 #include "vm/clustered_snapshot.h"
9 #include "vm/code_observers.h" 9 #include "vm/code_observers.h"
10 #include "vm/cpu.h" 10 #include "vm/cpu.h"
(...skipping 596 matching lines...) Expand 10 before | Expand all | Expand 10 after
607 I->set_init_callback_data(data); 607 I->set_init_callback_data(data);
608 Api::SetupAcquiredError(I); 608 Api::SetupAcquiredError(I);
609 if (FLAG_print_class_table) { 609 if (FLAG_print_class_table) {
610 I->class_table()->Print(); 610 I->class_table()->Print();
611 } 611 }
612 612
613 #ifndef DART_PRECOMPILED_RUNTIME 613 #ifndef DART_PRECOMPILED_RUNTIME
614 KernelIsolate::InitCallback(I); 614 KernelIsolate::InitCallback(I);
615 #endif 615 #endif
616 ServiceIsolate::MaybeMakeServiceIsolate(I); 616 ServiceIsolate::MaybeMakeServiceIsolate(I);
617 if (!ServiceIsolate::IsServiceIsolate(I)) { 617 if (!ServiceIsolate::IsServiceIsolate(I) &&
618 !KernelIsolate::IsKernelIsolate(I)) {
618 I->message_handler()->set_should_pause_on_start( 619 I->message_handler()->set_should_pause_on_start(
619 FLAG_pause_isolates_on_start); 620 FLAG_pause_isolates_on_start);
620 I->message_handler()->set_should_pause_on_exit(FLAG_pause_isolates_on_exit); 621 I->message_handler()->set_should_pause_on_exit(FLAG_pause_isolates_on_exit);
621 } 622 }
622 ServiceIsolate::SendIsolateStartupMessage(); 623 ServiceIsolate::SendIsolateStartupMessage();
623 if (FLAG_support_debugger) { 624 if (FLAG_support_debugger) {
624 I->debugger()->NotifyIsolateCreated(); 625 I->debugger()->NotifyIsolateCreated();
625 } 626 }
626 // Create tag table. 627 // Create tag table.
627 I->set_tag_table(GrowableObjectArray::Handle(GrowableObjectArray::New())); 628 I->set_tag_table(GrowableObjectArray::Handle(GrowableObjectArray::New()));
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
742 return predefined_handles_->handles_.IsValidScopedHandle(address); 743 return predefined_handles_->handles_.IsValidScopedHandle(address);
743 } 744 }
744 745
745 746
746 bool Dart::IsReadOnlyApiHandle(Dart_Handle handle) { 747 bool Dart::IsReadOnlyApiHandle(Dart_Handle handle) {
747 ASSERT(predefined_handles_ != NULL); 748 ASSERT(predefined_handles_ != NULL);
748 return predefined_handles_->api_handles_.IsValidHandle(handle); 749 return predefined_handles_->api_handles_.IsValidHandle(handle);
749 } 750 }
750 751
751 } // namespace dart 752 } // namespace dart
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698