Revision: 24728
Author: [email protected]
Date: Mon Oct 20 11:18:07 2014 UTC
Log: [turbofan] pass zone to InstructionSequence
[email protected]
BUG=
Review URL: https://codereview.chromium.org/663073002
https://code.google.com/p/v8/source/detail?r=24728
Modified:
/branches/bleeding_edge/src/compiler/instruction.cc
/branches/bleeding_edge/src/compiler/instruction.h
/branches/bleeding_edge/src/compiler/pipeline.cc
/branches/bleeding_edge/test/cctest/compiler/test-codegen-deopt.cc
/branches/bleeding_edge/test/cctest/compiler/test-instruction.cc
/branches/bleeding_edge/test/unittests/compiler/instruction-selector-unittest.cc
=======================================
--- /branches/bleeding_edge/src/compiler/instruction.cc Mon Oct 20 10:57:37
2014 UTC
+++ /branches/bleeding_edge/src/compiler/instruction.cc Mon Oct 20 11:18:07
2014 UTC
@@ -380,9 +380,10 @@
}
-InstructionSequence::InstructionSequence(Linkage* linkage, const Graph*
graph,
+InstructionSequence::InstructionSequence(Zone* instruction_zone,
+ Linkage* linkage, const Graph*
graph,
const Schedule* schedule)
- : zone_(schedule->zone()),
+ : zone_(instruction_zone),
node_count_(graph->NodeCount()),
node_map_(zone()->NewArray<int>(node_count_)),
instruction_blocks_(static_cast<int>(schedule->rpo_order()->size()),
NULL,
=======================================
--- /branches/bleeding_edge/src/compiler/instruction.h Mon Oct 20 10:57:37
2014 UTC
+++ /branches/bleeding_edge/src/compiler/instruction.h Mon Oct 20 11:18:07
2014 UTC
@@ -844,7 +844,7 @@
// TODO(titzer): s/IsDouble/IsFloat64/
class InstructionSequence FINAL {
public:
- InstructionSequence(Linkage* linkage, const Graph* graph,
+ InstructionSequence(Zone* zone, Linkage* linkage, const Graph* graph,
const Schedule* schedule);
int NextVirtualRegister() { return next_virtual_register_++; }
=======================================
--- /branches/bleeding_edge/src/compiler/pipeline.cc Mon Oct 20 10:19:15
2014 UTC
+++ /branches/bleeding_edge/src/compiler/pipeline.cc Mon Oct 20 11:18:07
2014 UTC
@@ -453,7 +453,8 @@
profiler_data = BasicBlockInstrumentor::Instrument(info_, graph,
schedule);
}
- InstructionSequence sequence(linkage, graph, schedule);
+ Zone* instruction_zone = schedule->zone();
+ InstructionSequence sequence(instruction_zone, linkage, graph, schedule);
// Select and schedule instructions covering the scheduled graph.
{
=======================================
--- /branches/bleeding_edge/test/cctest/compiler/test-codegen-deopt.cc Mon
Oct 20 10:19:15 2014 UTC
+++ /branches/bleeding_edge/test/cctest/compiler/test-codegen-deopt.cc Mon
Oct 20 11:18:07 2014 UTC
@@ -65,8 +65,8 @@
// Initialize the codegen and generate code.
Linkage* linkage = new (scope_->main_zone()) Linkage(&info);
- code = new v8::internal::compiler::InstructionSequence(linkage, graph,
- schedule);
+ code = new v8::internal::compiler::InstructionSequence(
+ scope_->main_zone(), linkage, graph, schedule);
SourcePositionTable source_positions(graph);
InstructionSelector selector(code, schedule, &source_positions);
selector.SelectInstructions();
=======================================
--- /branches/bleeding_edge/test/cctest/compiler/test-instruction.cc Mon
Oct 20 10:19:15 2014 UTC
+++ /branches/bleeding_edge/test/cctest/compiler/test-instruction.cc Mon
Oct 20 11:18:07 2014 UTC
@@ -54,7 +54,7 @@
Scheduler::ComputeSpecialRPO(&schedule);
DCHECK(schedule.rpo_order()->size() > 0);
}
- code = new TestInstrSeq(&linkage, &graph, &schedule);
+ code = new TestInstrSeq(main_zone(), &linkage, &graph, &schedule);
}
Node* Int32Constant(int32_t val) {
=======================================
---
/branches/bleeding_edge/test/unittests/compiler/instruction-selector-unittest.cc
Mon Oct 20 10:19:15 2014 UTC
+++
/branches/bleeding_edge/test/unittests/compiler/instruction-selector-unittest.cc
Mon Oct 20 11:18:07 2014 UTC
@@ -38,7 +38,7 @@
int initial_node_count = graph()->NodeCount();
CompilationInfo info(test_->isolate(), test_->zone());
Linkage linkage(&info, call_descriptor());
- InstructionSequence sequence(&linkage, graph(), schedule);
+ InstructionSequence sequence(test_->zone(), &linkage, graph(), schedule);
SourcePositionTable source_position_table(graph());
InstructionSelector selector(&sequence, schedule, &source_position_table,
features);
--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
---
You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.