Chromium Code Reviews| 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 |
| } |