Index: src/mips/lithium-mips.h |
diff --git a/src/mips/lithium-mips.h b/src/mips/lithium-mips.h |
index 572cfc091dee07cd37b25f9e523929a49ee62494..e21c921eec152dc72534cf76127df38d9c5756de 100644 |
--- a/src/mips/lithium-mips.h |
+++ b/src/mips/lithium-mips.h |
@@ -332,8 +332,10 @@ class LGap: public LTemplateInstruction<0, 0, 0> { |
LAST_INNER_POSITION = AFTER |
}; |
- LParallelMove* GetOrCreateParallelMove(InnerPosition pos) { |
- if (parallel_moves_[pos] == NULL) parallel_moves_[pos] = new LParallelMove; |
+ LParallelMove* GetOrCreateParallelMove(InnerPosition pos, Zone* zone) { |
+ if (parallel_moves_[pos] == NULL) { |
+ parallel_moves_[pos] = new(zone) LParallelMove(zone); |
+ } |
return parallel_moves_[pos]; |
} |
@@ -2233,9 +2235,11 @@ class LChunk: public ZoneObject { |
} |
void AddInlinedClosure(Handle<JSFunction> closure) { |
- inlined_closures_.Add(closure); |
+ inlined_closures_.Add(closure, zone()); |
} |
+ Zone* zone() const { return graph_->zone(); } |
+ |
private: |
int spill_slot_count_; |
CompilationInfo* info_; |