| Index: src/arm/lithium-arm.h
|
| diff --git a/src/arm/lithium-arm.h b/src/arm/lithium-arm.h
|
| index 39894a48cc77c4de156bddccb048a4c27322589f..869a80a28068c3260493cf91460def4ee7ed8c45 100644
|
| --- a/src/arm/lithium-arm.h
|
| +++ b/src/arm/lithium-arm.h
|
| @@ -333,8 +333,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];
|
| }
|
|
|
| @@ -2267,9 +2269,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_;
|
|
|