| Index: src/ia32/code-stubs-ia32.cc
|
| diff --git a/src/ia32/code-stubs-ia32.cc b/src/ia32/code-stubs-ia32.cc
|
| index 71a47511ea425c157445aa1b2006dfb1097a819c..754934f3199bfb2417cd274e3e7851f719b5d92a 100644
|
| --- a/src/ia32/code-stubs-ia32.cc
|
| +++ b/src/ia32/code-stubs-ia32.cc
|
| @@ -105,7 +105,7 @@ void FastNewClosureStub::Generate(MacroAssembler* masm) {
|
| Counters* counters = masm->isolate()->counters();
|
|
|
| Label gc;
|
| - __ AllocateInNewSpace(JSFunction::kSize, eax, ebx, ecx, &gc, TAG_OBJECT);
|
| + __ Allocate(JSFunction::kSize, eax, ebx, ecx, &gc, TAG_OBJECT);
|
|
|
| __ IncrementCounter(counters->fast_new_closure_total(), 1);
|
|
|
| @@ -233,8 +233,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,
|
| - eax, ebx, ecx, &gc, TAG_OBJECT);
|
| + __ Allocate((length * kPointerSize) + FixedArray::kHeaderSize,
|
| + eax, ebx, ecx, &gc, TAG_OBJECT);
|
|
|
| // Get the function from the stack.
|
| __ mov(ecx, Operand(esp, 1 * kPointerSize));
|
| @@ -281,8 +281,7 @@ 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),
|
| - eax, ebx, ecx, &gc, TAG_OBJECT);
|
| + __ Allocate(FixedArray::SizeFor(length), eax, ebx, ecx, &gc, TAG_OBJECT);
|
|
|
| // Get the function or sentinel from the stack.
|
| __ mov(ecx, Operand(esp, 1 * kPointerSize));
|
| @@ -374,7 +373,7 @@ static void GenerateFastCloneShallowArrayCommon(
|
| if (mode == FastCloneShallowArrayStub::CLONE_DOUBLE_ELEMENTS) {
|
| flags = static_cast<AllocationFlags>(DOUBLE_ALIGNMENT | flags);
|
| }
|
| - __ AllocateInNewSpace(size, eax, ebx, edx, fail, flags);
|
| + __ Allocate(size, eax, ebx, edx, fail, flags);
|
|
|
| if (allocation_site_mode == TRACK_ALLOCATION_SITE) {
|
| __ mov(FieldOperand(eax, allocation_info_start),
|
|
|