Index: src/x64/code-stubs-x64.cc |
diff --git a/src/x64/code-stubs-x64.cc b/src/x64/code-stubs-x64.cc |
index 7ebc1033db09f50a403d078f122cc508c2c2621b..2d067d4b8c74aea950204bde74ff4ea73e6d9a68 100644 |
--- a/src/x64/code-stubs-x64.cc |
+++ b/src/x64/code-stubs-x64.cc |
@@ -140,7 +140,7 @@ void FastNewClosureStub::Generate(MacroAssembler* masm) { |
Counters* counters = masm->isolate()->counters(); |
Label gc; |
- __ AllocateInNewSpace(JSFunction::kSize, rax, rbx, rcx, &gc, TAG_OBJECT); |
+ __ Allocate(JSFunction::kSize, rax, rbx, rcx, &gc, TAG_OBJECT); |
__ IncrementCounter(counters->fast_new_closure_total(), 1); |
@@ -274,8 +274,8 @@ void FastNewContextStub::Generate(MacroAssembler* masm) { |
// Try to allocate the context in new space. |
Label gc; |
int length = slots_ + Context::MIN_CONTEXT_SLOTS; |
- __ AllocateInNewSpace((length * kPointerSize) + FixedArray::kHeaderSize, |
- rax, rbx, rcx, &gc, TAG_OBJECT); |
+ __ Allocate((length * kPointerSize) + FixedArray::kHeaderSize, |
+ rax, rbx, rcx, &gc, TAG_OBJECT); |
// Get the function from the stack. |
__ movq(rcx, Operand(rsp, 1 * kPointerSize)); |
@@ -320,8 +320,8 @@ void FastNewBlockContextStub::Generate(MacroAssembler* masm) { |
// Try to allocate the context in new space. |
Label gc; |
int length = slots_ + Context::MIN_CONTEXT_SLOTS; |
- __ AllocateInNewSpace(FixedArray::SizeFor(length), |
- rax, rbx, rcx, &gc, TAG_OBJECT); |
+ __ Allocate(FixedArray::SizeFor(length), |
+ rax, rbx, rcx, &gc, TAG_OBJECT); |
// Get the function from the stack. |
__ movq(rcx, Operand(rsp, 1 * kPointerSize)); |
@@ -406,7 +406,7 @@ static void GenerateFastCloneShallowArrayCommon( |
if (mode == FastCloneShallowArrayStub::CLONE_DOUBLE_ELEMENTS) { |
flags = static_cast<AllocationFlags>(DOUBLE_ALIGNMENT | flags); |
} |
- __ AllocateInNewSpace(size, rax, rbx, rdx, fail, flags); |
+ __ Allocate(size, rax, rbx, rdx, fail, flags); |
if (allocation_site_mode == TRACK_ALLOCATION_SITE) { |
__ LoadRoot(kScratchRegister, Heap::kAllocationSiteInfoMapRootIndex); |
@@ -1316,12 +1316,8 @@ static void BinaryOpStub_GenerateFloatingPointCode(MacroAssembler* masm, |
// Allocate heap number in new space. |
// Not using AllocateHeapNumber macro in order to reuse |
// already loaded heap_number_map. |
- __ AllocateInNewSpace(HeapNumber::kSize, |
- rax, |
- rdx, |
- no_reg, |
- &allocation_failed, |
- TAG_OBJECT); |
+ __ Allocate(HeapNumber::kSize, rax, rdx, no_reg, &allocation_failed, |
+ TAG_OBJECT); |
// Set the map. |
__ AssertRootValue(heap_number_map, |
Heap::kHeapNumberMapRootIndex, |