Index: src/x64/lithium-codegen-x64.cc |
diff --git a/src/x64/lithium-codegen-x64.cc b/src/x64/lithium-codegen-x64.cc |
index 77e5300a5b07611ff542c8fa5f76efaf44103e72..cbbc915f5532e70835de6bcc57624bb219b484d5 100644 |
--- a/src/x64/lithium-codegen-x64.cc |
+++ b/src/x64/lithium-codegen-x64.cc |
@@ -523,14 +523,15 @@ void LCodeGen::RegisterEnvironmentForDeoptimization(LEnvironment* environment, |
++jsframe_count; |
} |
} |
- Translation translation(&translations_, frame_count, jsframe_count); |
+ Translation translation(&translations_, frame_count, jsframe_count, |
+ environment->zone()); |
WriteTranslation(environment, &translation); |
int deoptimization_index = deoptimizations_.length(); |
int pc_offset = masm()->pc_offset(); |
environment->Register(deoptimization_index, |
translation.index(), |
(mode == Safepoint::kLazyDeopt) ? pc_offset : -1); |
- deoptimizations_.Add(environment); |
+ deoptimizations_.Add(environment, environment->zone()); |
} |
} |
@@ -644,7 +645,7 @@ void LCodeGen::RecordSafepoint( |
for (int i = 0; i < operands->length(); i++) { |
LOperand* pointer = operands->at(i); |
if (pointer->IsStackSlot()) { |
- safepoint.DefinePointerSlot(pointer->index()); |
+ safepoint.DefinePointerSlot(pointer->index(), zone()); |
} else if (pointer->IsRegister() && (kind & Safepoint::kWithRegisters)) { |
safepoint.DefinePointerRegister(ToRegister(pointer)); |
} |