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

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

Issue 1678203002: Remove more feature in 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 unified diff | Download patch
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/il_printer.h" 5 #include "vm/il_printer.h"
6 6
7 #include "vm/flow_graph_range_analysis.h" 7 #include "vm/flow_graph_range_analysis.h"
8 #include "vm/intermediate_language.h" 8 #include "vm/intermediate_language.h"
9 #include "vm/os.h" 9 #include "vm/os.h"
10 #include "vm/parser.h" 10 #include "vm/parser.h"
11 11
12 namespace dart { 12 namespace dart {
13 13
14 #ifndef PRODUCT
15
14 DEFINE_FLAG(bool, print_environments, false, "Print SSA environments."); 16 DEFINE_FLAG(bool, print_environments, false, "Print SSA environments.");
15 DEFINE_FLAG(charp, print_flow_graph_filter, NULL, 17 DEFINE_FLAG(charp, print_flow_graph_filter, NULL,
16 "Print only IR of functions with matching names"); 18 "Print only IR of functions with matching names");
17 19
18 DECLARE_FLAG(bool, trace_inlining_intervals); 20 DECLARE_FLAG(bool, trace_inlining_intervals);
19 21
20 void BufferFormatter::Print(const char* format, ...) { 22 void BufferFormatter::Print(const char* format, ...) {
21 va_list args; 23 va_list args;
22 va_start(args, format); 24 va_start(args, format);
23 VPrint(format, args); 25 VPrint(format, args);
(...skipping 1186 matching lines...) Expand 10 before | Expand all | Expand 10 after
1210 if (outer_ != NULL) outer_->PrintTo(f); 1212 if (outer_ != NULL) outer_->PrintTo(f);
1211 } 1213 }
1212 1214
1213 const char* Environment::ToCString() const { 1215 const char* Environment::ToCString() const {
1214 char buffer[1024]; 1216 char buffer[1024];
1215 BufferFormatter bf(buffer, 1024); 1217 BufferFormatter bf(buffer, 1024);
1216 PrintTo(&bf); 1218 PrintTo(&bf);
1217 return Thread::Current()->zone()->MakeCopyOfString(buffer); 1219 return Thread::Current()->zone()->MakeCopyOfString(buffer);
1218 } 1220 }
1219 1221
1222 #else
rmacnak 2016/02/08 22:42:36 // PRODUCT
Cutch 2016/02/08 23:07:56 Done.
1223
1224 void FlowGraphPrinter::PrintOneInstruction(Instruction* instr,
1225 bool print_locations) {
rmacnak 2016/02/08 22:42:36 UNREACHABLE()
Cutch 2016/02/08 23:07:56 Done.
1226 }
1227
1228
1229 void FlowGraphPrinter::PrintTypeCheck(const ParsedFunction& parsed_function,
1230 TokenPosition token_pos,
1231 Value* value,
1232 const AbstractType& dst_type,
1233 const String& dst_name,
1234 bool eliminated) {
1235 }
1236
1237
1238 void FlowGraphPrinter::PrintBlock(BlockEntryInstr* block,
1239 bool print_locations) {
1240 }
1241
1242
1243 void FlowGraphPrinter::PrintGraph(const char* phase, FlowGraph* flow_graph) {
1244 }
1245
1246
1247 void FlowGraphPrinter::PrintICData(const ICData& ic_data) {
1248 }
1249
1250
1251 bool FlowGraphPrinter::ShouldPrint(const Function& function) {
1252 return false;
1253 }
1254
1255 #endif
1256
1220 } // namespace dart 1257 } // namespace dart
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698