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

Unified Diff: runtime/vm/flags.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/flag_list.h ('k') | runtime/vm/flow_graph_builder.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/flags.cc
diff --git a/runtime/vm/flags.cc b/runtime/vm/flags.cc
index e9bd84fbb4371a33de52de79545dbb0a813c4012..a2a63f7991020b81f566ea290f2fcb00acbbd34c 100644
--- a/runtime/vm/flags.cc
+++ b/runtime/vm/flags.cc
@@ -456,6 +456,9 @@ void Flags::PrintFlags() {
void Flags::PrintFlagToJSONArray(JSONArray* jsarr, const Flag* flag) {
+ if (!FLAG_support_service) {
+ return;
+ }
if (flag->IsUnrecognized() || flag->type_ == Flag::kFunc) {
return;
}
@@ -497,6 +500,9 @@ void Flags::PrintFlagToJSONArray(JSONArray* jsarr, const Flag* flag) {
void Flags::PrintJSON(JSONStream* js) {
+ if (!FLAG_support_service) {
+ return;
+ }
JSONObject jsobj(js);
jsobj.AddProperty("type", "FlagList");
JSONArray jsarr(&jsobj, "flags");
« no previous file with comments | « runtime/vm/flag_list.h ('k') | runtime/vm/flow_graph_builder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698