Commit 9a9f95f4 authored by titzer@chromium.org's avatar titzer@chromium.org

Try again to fix Win32.

TBR=mstarzinger@chromium.org
BUG=

Review URL: https://codereview.chromium.org/505193002

git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@23413 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent dbe2a066
......@@ -256,13 +256,19 @@ class CFGBuilder {
};
Scheduler::SchedulerData Scheduler::DefaultSchedulerData() {
SchedulerData def = {0, 0, false, false, kUnknown};
return def;
}
Scheduler::Scheduler(Zone* zone, Graph* graph, Schedule* schedule)
: zone_(zone),
graph_(graph),
schedule_(schedule),
scheduled_nodes_(zone),
schedule_root_nodes_(zone),
node_data_(graph_->NodeCount(), {0, 0, false, false, kUnknown}, zone),
node_data_(graph_->NodeCount(), DefaultSchedulerData(), zone),
has_floating_control_(false) {}
......
......@@ -54,6 +54,8 @@ class Scheduler {
Scheduler(Zone* zone, Graph* graph, Schedule* schedule);
SchedulerData DefaultSchedulerData();
SchedulerData* GetData(Node* node) {
DCHECK(node->id() < static_cast<int>(node_data_.size()));
return &node_data_[node->id()];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment