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

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

Issue 2979243002: Remove some pause-related fields in a PRODUCT build (Closed)
Patch Set: . Created 3 years, 5 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 | runtime/vm/dart_api_impl.cc » ('j') | 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 592 matching lines...) Expand 10 before | Expand all | Expand 10 after
603 if (FLAG_print_class_table) { 603 if (FLAG_print_class_table) {
604 I->class_table()->Print(); 604 I->class_table()->Print();
605 } 605 }
606 606
607 bool is_kernel_isolate = false; 607 bool is_kernel_isolate = false;
608 #ifndef DART_PRECOMPILED_RUNTIME 608 #ifndef DART_PRECOMPILED_RUNTIME
609 KernelIsolate::InitCallback(I); 609 KernelIsolate::InitCallback(I);
610 is_kernel_isolate = KernelIsolate::IsKernelIsolate(I); 610 is_kernel_isolate = KernelIsolate::IsKernelIsolate(I);
611 #endif 611 #endif
612 ServiceIsolate::MaybeMakeServiceIsolate(I); 612 ServiceIsolate::MaybeMakeServiceIsolate(I);
613 #if !defined(PRODUCT)
613 if (!ServiceIsolate::IsServiceIsolate(I) && !is_kernel_isolate) { 614 if (!ServiceIsolate::IsServiceIsolate(I) && !is_kernel_isolate) {
614 I->message_handler()->set_should_pause_on_start( 615 I->message_handler()->set_should_pause_on_start(
615 FLAG_pause_isolates_on_start); 616 FLAG_pause_isolates_on_start);
616 I->message_handler()->set_should_pause_on_exit(FLAG_pause_isolates_on_exit); 617 I->message_handler()->set_should_pause_on_exit(FLAG_pause_isolates_on_exit);
617 } 618 }
619 #endif // !defined(PRODUCT)
618 620
619 ServiceIsolate::SendIsolateStartupMessage(); 621 ServiceIsolate::SendIsolateStartupMessage();
620 #if !defined(PRODUCT) 622 #if !defined(PRODUCT)
621 I->debugger()->NotifyIsolateCreated(); 623 I->debugger()->NotifyIsolateCreated();
622 #endif 624 #endif
623 625
624 // Create tag table. 626 // Create tag table.
625 I->set_tag_table(GrowableObjectArray::Handle(GrowableObjectArray::New())); 627 I->set_tag_table(GrowableObjectArray::Handle(GrowableObjectArray::New()));
626 // Set up default UserTag. 628 // Set up default UserTag.
627 const UserTag& default_tag = UserTag::Handle(UserTag::DefaultTag()); 629 const UserTag& default_tag = UserTag::Handle(UserTag::DefaultTag());
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
744 ASSERT(predefined_handles_ != NULL); 746 ASSERT(predefined_handles_ != NULL);
745 return predefined_handles_->handles_.IsValidScopedHandle(address); 747 return predefined_handles_->handles_.IsValidScopedHandle(address);
746 } 748 }
747 749
748 bool Dart::IsReadOnlyApiHandle(Dart_Handle handle) { 750 bool Dart::IsReadOnlyApiHandle(Dart_Handle handle) {
749 ASSERT(predefined_handles_ != NULL); 751 ASSERT(predefined_handles_ != NULL);
750 return predefined_handles_->api_handles_.IsValidHandle(handle); 752 return predefined_handles_->api_handles_.IsValidHandle(handle);
751 } 753 }
752 754
753 } // namespace dart 755 } // namespace dart
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/dart_api_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698