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

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

Issue 1739593002: Revert "Move precompilation-related flags to flags list." (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 9 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 | « runtime/vm/flag_list.h ('k') | runtime/vm/flow_graph.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) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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/flags.h" 5 #include "vm/flags.h"
6 6
7 #include "platform/assert.h" 7 #include "platform/assert.h"
8 #include "vm/json_stream.h" 8 #include "vm/json_stream.h"
9 #include "vm/os.h" 9 #include "vm/os.h"
10 10
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 FLAG_LIST(PRODUCT_FLAG_MARCO, 73 FLAG_LIST(PRODUCT_FLAG_MARCO,
74 RELEASE_FLAG_MARCO, 74 RELEASE_FLAG_MARCO,
75 DEBUG_FLAG_MARCO, 75 DEBUG_FLAG_MARCO,
76 PRECOMPILE_FLAG_MARCO) 76 PRECOMPILE_FLAG_MARCO)
77 77
78 #undef RELEASE_FLAG_MARCO 78 #undef RELEASE_FLAG_MARCO
79 #undef DEBUG_FLAG_MARCO 79 #undef DEBUG_FLAG_MARCO
80 #undef PRODUCT_FLAG_MARCO 80 #undef PRODUCT_FLAG_MARCO
81 #undef PRECOMPILE_FLAG_MARCO 81 #undef PRECOMPILE_FLAG_MARCO
82 82
83
84 bool Flags::initialized_ = false; 83 bool Flags::initialized_ = false;
85 84
86 // List of registered flags. 85 // List of registered flags.
87 Flag** Flags::flags_ = NULL; 86 Flag** Flags::flags_ = NULL;
88 intptr_t Flags::capacity_ = 0; 87 intptr_t Flags::capacity_ = 0;
89 intptr_t Flags::num_flags_ = 0; 88 intptr_t Flags::num_flags_ = 0;
90 89
91 class Flag { 90 class Flag {
92 public: 91 public:
93 enum FlagType { 92 enum FlagType {
(...skipping 443 matching lines...) Expand 10 before | Expand all | Expand 10 after
537 } 536 }
538 JSONObject jsobj(js); 537 JSONObject jsobj(js);
539 jsobj.AddProperty("type", "FlagList"); 538 jsobj.AddProperty("type", "FlagList");
540 JSONArray jsarr(&jsobj, "flags"); 539 JSONArray jsarr(&jsobj, "flags");
541 for (intptr_t i = 0; i < num_flags_; ++i) { 540 for (intptr_t i = 0; i < num_flags_; ++i) {
542 PrintFlagToJSONArray(&jsarr, flags_[i]); 541 PrintFlagToJSONArray(&jsarr, flags_[i]);
543 } 542 }
544 } 543 }
545 544
546 } // namespace dart 545 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/flag_list.h ('k') | runtime/vm/flow_graph.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698