[turbofan] fix build after r24726
authordcarney@chromium.org <dcarney@chromium.org>
Mon, 20 Oct 2014 10:57:37 +0000 (10:57 +0000)
committerdcarney@chromium.org <dcarney@chromium.org>
Mon, 20 Oct 2014 10:57:37 +0000 (10:57 +0000)
TBR=bmeurer@chromium.org

BUG=

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

git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@24727 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

src/compiler/instruction.cc
src/compiler/instruction.h

index 891a1e7..4efa6e8 100644 (file)
@@ -382,7 +382,7 @@ static void InitializeInstructionBlocks(Zone* zone, const Schedule* schedule,
 
 InstructionSequence::InstructionSequence(Linkage* linkage, const Graph* graph,
                                          const Schedule* schedule)
-    : zone_(graph->zone()->isolate()),
+    : zone_(schedule->zone()),
       node_count_(graph->NodeCount()),
       node_map_(zone()->NewArray<int>(node_count_)),
       instruction_blocks_(static_cast<int>(schedule->rpo_order()->size()), NULL,
index de73ed2..c3e83fa 100644 (file)
@@ -905,10 +905,10 @@ class InstructionSequence FINAL {
   }
 
   Frame* frame() { return &frame_; }
-  Isolate* isolate() { return zone()->isolate(); }
+  Isolate* isolate() const { return zone()->isolate(); }
   Linkage* linkage() const { return linkage_; }
   const PointerMapDeque* pointer_maps() const { return &pointer_maps_; }
-  Zone* zone() { return &zone_; }
+  Zone* zone() const { return zone_; }
 
   // Used by the instruction selector while adding instructions.
   int AddInstruction(Instruction* instr);
@@ -962,7 +962,7 @@ class InstructionSequence FINAL {
 
   typedef std::set<int, std::less<int>, ZoneIntAllocator> VirtualRegisterSet;
 
-  Zone zone_;
+  Zone* zone_;
   int node_count_;
   int* node_map_;
   InstructionBlocks instruction_blocks_;