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

Unified Diff: runtime/vm/flow_graph_compiler.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/flow_graph_compiler.cc
diff --git a/runtime/vm/flow_graph_compiler.cc b/runtime/vm/flow_graph_compiler.cc
index 15acf86e18e1dfb9b5793795363a2bb1935ceecf..32fb380c25e1fbf0838078c285a743c7b20a4cbe 100644
--- a/runtime/vm/flow_graph_compiler.cc
+++ b/runtime/vm/flow_graph_compiler.cc
@@ -268,9 +268,11 @@ bool FlowGraphCompiler::IsPotentialUnboxedField(const Field& field) {
void FlowGraphCompiler::InitCompiler() {
+#ifndef PRODUCT
TimelineDurationScope tds(thread(),
isolate()->GetCompilerStream(),
"InitCompiler");
+#endif // !PRODUCT
pc_descriptors_list_ = new(zone()) DescriptorList(64);
exception_handlers_list_ = new(zone()) ExceptionHandlerList();
block_info_.Clear();
@@ -1281,10 +1283,15 @@ void FlowGraphCompiler::GenerateListTypeCheck(Register kClassIdReg,
void FlowGraphCompiler::EmitComment(Instruction* instr) {
+ if (!FLAG_support_il_printer) {
rmacnak 2016/02/08 22:42:36 + support_disassembler
Cutch 2016/02/08 23:07:55 Done.
+ return;
+ }
+#ifndef PRODUCT
char buffer[256];
BufferFormatter f(buffer, sizeof(buffer));
instr->PrintTo(&f);
assembler()->Comment("%s", buffer);
+#endif
}

Powered by Google App Engine
This is Rietveld 408576698