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

Unified Diff: runtime/vm/dart.cc

Issue 1660063002: Remove many features when building product mode (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/vm/coverage_test.cc ('k') | runtime/vm/dart_api_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/dart.cc
diff --git a/runtime/vm/dart.cc b/runtime/vm/dart.cc
index b8ce008357e4225479ec3459d6d97b4b6246c17c..41e9fec3ff952e92a540f91570ca3340551ae242 100644
--- a/runtime/vm/dart.cc
+++ b/runtime/vm/dart.cc
@@ -200,7 +200,10 @@ const char* Dart::InitOnce(const uint8_t* vm_isolate_snapshot,
Isolate::SetCreateCallback(create);
Isolate::SetShutdownCallback(shutdown);
- Service::SetGetServiceAssetsCallback(get_service_assets);
+ if (FLAG_support_service) {
+ Service::SetGetServiceAssetsCallback(get_service_assets);
+ }
+
ServiceIsolate::Run();
return NULL;
@@ -398,8 +401,9 @@ RawError* Dart::InitializeIsolate(const uint8_t* snapshot_buffer, void* data) {
FLAG_pause_isolates_on_exit);
}
ServiceIsolate::SendIsolateStartupMessage();
- I->debugger()->NotifyIsolateCreated();
-
+ if (FLAG_support_debugger) {
+ I->debugger()->NotifyIsolateCreated();
+ }
// Create tag table.
I->set_tag_table(GrowableObjectArray::Handle(GrowableObjectArray::New()));
// Set up default UserTag.
« no previous file with comments | « runtime/vm/coverage_test.cc ('k') | runtime/vm/dart_api_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698