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

Unified Diff: runtime/vm/block_scheduler.cc

Issue 286363006: Add flag —enable-debugger (default true) in order to disable debugger single stepping code. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 7 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
« no previous file with comments | « no previous file | runtime/vm/debugger.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/block_scheduler.cc
===================================================================
--- runtime/vm/block_scheduler.cc (revision 36530)
+++ runtime/vm/block_scheduler.cc (working copy)
@@ -10,11 +10,17 @@
namespace dart {
+DEFINE_FLAG(bool, emit_edge_counters, true, "Emit edge counters at targets.");
+
// Compute the edge count at the deopt id of a TargetEntry or Goto.
static intptr_t ComputeEdgeCount(const Code& unoptimized_code,
intptr_t deopt_id) {
ASSERT(deopt_id != Isolate::kNoDeoptId);
+ if (!FLAG_emit_edge_counters) {
+ // Assume everything was visited once.
+ return 1;
+ }
uword pc = unoptimized_code.GetPcForDeoptId(deopt_id, PcDescriptors::kDeopt);
Array& array = Array::Handle();
array ^= CodePatcher::GetEdgeCounterAt(pc, unoptimized_code);
« no previous file with comments | « no previous file | runtime/vm/debugger.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698