| 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..89df11dad3aecd938b70d9e02a907301891587fe 100644
|
| --- a/src/ia32/code-stubs-ia32.cc
|
| +++ b/src/ia32/code-stubs-ia32.cc
|
| @@ -105,7 +105,8 @@ 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,
|
| + MacroAssembler::NEW_SPACE);
|
|
|
| __ IncrementCounter(counters->fast_new_closure_total(), 1);
|
|
|
| @@ -233,8 +234,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, MacroAssembler::NEW_SPACE);
|
|
|
| // Get the function from the stack.
|
| __ mov(ecx, Operand(esp, 1 * kPointerSize));
|
| @@ -281,8 +282,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),
|
| - eax, ebx, ecx, &gc, TAG_OBJECT);
|
| + __ Allocate(FixedArray::SizeFor(length),
|
| + eax, ebx, ecx, &gc, TAG_OBJECT, MacroAssembler::NEW_SPACE);
|
|
|
| // Get the function or sentinel from the stack.
|
| __ mov(ecx, Operand(esp, 1 * kPointerSize));
|
| @@ -374,7 +375,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, MacroAssembler::NEW_SPACE);
|
|
|
| if (allocation_site_mode == TRACK_ALLOCATION_SITE) {
|
| __ mov(FieldOperand(eax, allocation_info_start),
|
|
|