Chromium Code Reviews| Index: runtime/vm/intermediate_language_ia32.cc |
| =================================================================== |
| --- runtime/vm/intermediate_language_ia32.cc (revision 37078) |
| +++ runtime/vm/intermediate_language_ia32.cc (working copy) |
| @@ -8,6 +8,7 @@ |
| #include "vm/intermediate_language.h" |
| #include "vm/dart_entry.h" |
| +#include "vm/flow_graph.h" |
| #include "vm/flow_graph_compiler.h" |
| #include "vm/locations.h" |
| #include "vm/object_store.h" |
| @@ -5998,7 +5999,9 @@ |
| void TargetEntryInstr::EmitNativeCode(FlowGraphCompiler* compiler) { |
| __ Bind(compiler->GetJumpLabel(this)); |
| if (!compiler->is_optimizing()) { |
| - if (FLAG_emit_edge_counters) { |
| + if (FLAG_emit_edge_counters && |
| + (!last_instruction()->IsGoto() || |
| + (this == compiler->flow_graph().graph_entry()->normal_entry()))) { |
|
srdjan
2014/06/06 14:59:51
How about factoring this test into TargetInstr::Ne
Florian Schneider
2014/06/10 08:56:39
Moved to FlowGraphCompiler::NeedEdgeCounter(Target
|
| compiler->EmitEdgeCounter(); |
| } |
| // The deoptimization descriptor points after the edge counter code for |