Index: src/x64/codegen-x64.cc |
diff --git a/src/x64/codegen-x64.cc b/src/x64/codegen-x64.cc |
index ec66127fe48c1ddf023901809b53a4d6c268eb9b..6f32f7cf04ea63c348b01dc844f960e81cc4fbe8 100644 |
--- a/src/x64/codegen-x64.cc |
+++ b/src/x64/codegen-x64.cc |
@@ -347,7 +347,7 @@ void ElementsTransitionGenerator::GenerateSmiToDouble( |
// Allocate new backing store. |
__ bind(&new_backing_store); |
__ lea(rdi, Operand(r9, times_pointer_size, FixedArray::kHeaderSize)); |
- __ AllocateInNewSpace(rdi, r14, r11, r15, fail, TAG_OBJECT); |
+ __ Allocate(rdi, r14, r11, r15, fail, TAG_OBJECT); |
// Set backing store's map |
__ LoadRoot(rdi, Heap::kFixedDoubleArrayMapRootIndex); |
__ movq(FieldOperand(r14, HeapObject::kMapOffset), rdi); |
@@ -435,7 +435,7 @@ void ElementsTransitionGenerator::GenerateDoubleToObject( |
// r8 : source FixedDoubleArray |
// r9 : number of elements |
__ lea(rdi, Operand(r9, times_pointer_size, FixedArray::kHeaderSize)); |
- __ AllocateInNewSpace(rdi, r11, r14, r15, &gc_required, TAG_OBJECT); |
+ __ Allocate(rdi, r11, r14, r15, &gc_required, TAG_OBJECT); |
// r11: destination FixedArray |
__ LoadRoot(rdi, Heap::kFixedArrayMapRootIndex); |
__ movq(FieldOperand(r11, HeapObject::kMapOffset), rdi); |