diff options
author | 2017-03-27 13:27:24 -0700 | |
---|---|---|
committer | 2017-03-27 13:53:48 -0700 | |
commit | d9911eeca13f609c885e0f6a5ce81af9b6340bfa (patch) | |
tree | f850510643ee120dba140bf0bb3e1c1b9c9ce4db /compiler/optimizing/scheduler.h | |
parent | 46bfb7c047a590ac5c24b658f31c170631556bb6 (diff) |
ART: Clean up field initialization
Add explicit field initialization to default value where necessary.
Also clean up interpreter intrinsics header.
Test: m
Change-Id: I7a850ac30dcccfb523a5569fb8400b9ac892c8e5
Diffstat (limited to 'compiler/optimizing/scheduler.h')
-rw-r--r-- | compiler/optimizing/scheduler.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/compiler/optimizing/scheduler.h b/compiler/optimizing/scheduler.h index ab0dad4300..9236a0e4fa 100644 --- a/compiler/optimizing/scheduler.h +++ b/compiler/optimizing/scheduler.h @@ -315,7 +315,10 @@ class SchedulingLatencyVisitor : public HGraphDelegateVisitor { // This class and its sub-classes will never be used to drive a visit of an // `HGraph` but only to visit `HInstructions` one at a time, so we do not need // to pass a valid graph to `HGraphDelegateVisitor()`. - SchedulingLatencyVisitor() : HGraphDelegateVisitor(nullptr) {} + SchedulingLatencyVisitor() + : HGraphDelegateVisitor(nullptr), + last_visited_latency_(0), + last_visited_internal_latency_(0) {} void VisitInstruction(HInstruction* instruction) OVERRIDE { LOG(FATAL) << "Error visiting " << instruction->DebugName() << ". " @@ -413,6 +416,7 @@ class HScheduler { selector_(selector), only_optimize_loop_blocks_(true), scheduling_graph_(this, arena), + cursor_(nullptr), candidates_(arena_->Adapter(kArenaAllocScheduler)) {} virtual ~HScheduler() {} |