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

Unified Diff: runtime/vm/intermediate_language_arm.cc

Issue 311993007: VM: Reduce the number of edge counters in generated code. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: added other platforms Created 6 years, 6 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/intermediate_language_arm.cc
===================================================================
--- runtime/vm/intermediate_language_arm.cc (revision 37078)
+++ runtime/vm/intermediate_language_arm.cc (working copy)
@@ -9,6 +9,7 @@
#include "vm/cpu.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"
@@ -6182,7 +6183,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()))) {
compiler->EmitEdgeCounter();
}
// Add an edge counter.

Powered by Google App Engine
This is Rietveld 408576698