Index: src/ia32/code-stubs-ia32.cc |
diff --git a/src/ia32/code-stubs-ia32.cc b/src/ia32/code-stubs-ia32.cc |
index 1b27540317ccd4ad3b138b59de2fa43c75864698..4fa63b84b13e468be07aa858b46b1556cda7d50e 100644 |
--- a/src/ia32/code-stubs-ia32.cc |
+++ b/src/ia32/code-stubs-ia32.cc |
@@ -145,7 +145,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); |
@@ -273,8 +273,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)); |
@@ -321,8 +321,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)); |
@@ -414,7 +413,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), |