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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: runtime/vm/il_printer.cc
diff --git a/runtime/vm/il_printer.cc b/runtime/vm/il_printer.cc
index 12bcc099bfcca0378f67a7b12cad9bb2a423beb6..2de1f1df849308cc29354f98c877f749fb321432 100644
--- a/runtime/vm/il_printer.cc
+++ b/runtime/vm/il_printer.cc
@@ -11,6 +11,8 @@
namespace dart {
+#ifndef PRODUCT
+
DEFINE_FLAG(bool, print_environments, false, "Print SSA environments.");
DEFINE_FLAG(charp, print_flow_graph_filter, NULL,
"Print only IR of functions with matching names");
@@ -1217,4 +1219,39 @@ const char* Environment::ToCString() const {
return Thread::Current()->zone()->MakeCopyOfString(buffer);
}
+#else
rmacnak 2016/02/08 22:42:36 // PRODUCT
Cutch 2016/02/08 23:07:56 Done.
+
+void FlowGraphPrinter::PrintOneInstruction(Instruction* instr,
+ bool print_locations) {
rmacnak 2016/02/08 22:42:36 UNREACHABLE()
Cutch 2016/02/08 23:07:56 Done.
+}
+
+
+void FlowGraphPrinter::PrintTypeCheck(const ParsedFunction& parsed_function,
+ TokenPosition token_pos,
+ Value* value,
+ const AbstractType& dst_type,
+ const String& dst_name,
+ bool eliminated) {
+}
+
+
+void FlowGraphPrinter::PrintBlock(BlockEntryInstr* block,
+ bool print_locations) {
+}
+
+
+void FlowGraphPrinter::PrintGraph(const char* phase, FlowGraph* flow_graph) {
+}
+
+
+void FlowGraphPrinter::PrintICData(const ICData& ic_data) {
+}
+
+
+bool FlowGraphPrinter::ShouldPrint(const Function& function) {
+ return false;
+}
+
+#endif
+
} // namespace dart

Powered by Google App Engine
This is Rietveld 408576698