| Index: src/ia32/stub-cache-ia32.cc
|
| diff --git a/src/ia32/stub-cache-ia32.cc b/src/ia32/stub-cache-ia32.cc
|
| index ae19f016f0621b63e77db4aebcda23216be4043a..fcd391f1ea70d30fba50d1c19a6c3fdc38f05ba6 100644
|
| --- a/src/ia32/stub-cache-ia32.cc
|
| +++ b/src/ia32/stub-cache-ia32.cc
|
| @@ -3132,8 +3132,8 @@ Handle<Code> ConstructStubCompiler::CompileConstructStub(
|
| __ cmp(ecx, Immediate(instance_size));
|
| __ Check(equal, "Instance size of initial map changed.");
|
| #endif
|
| - __ AllocateInNewSpace(instance_size, edx, ecx, no_reg,
|
| - &generic_stub_call, NO_ALLOCATION_FLAGS);
|
| + __ Allocate(instance_size, edx, ecx, no_reg, &generic_stub_call,
|
| + NO_ALLOCATION_FLAGS, MacroAssembler::NEW_SPACE);
|
|
|
| // Allocated the JSObject, now initialize the fields and add the heap tag.
|
| // ebx: initial map
|
| @@ -3607,7 +3607,8 @@ void KeyedStoreStubCompiler::GenerateStoreFastElement(
|
| __ j(not_equal, &check_capacity);
|
|
|
| int size = FixedArray::SizeFor(JSArray::kPreallocatedArrayElements);
|
| - __ AllocateInNewSpace(size, edi, ebx, ecx, &prepare_slow, TAG_OBJECT);
|
| + __ Allocate(size, edi, ebx, ecx, &prepare_slow, TAG_OBJECT,
|
| + MacroAssembler::NEW_SPACE);
|
| // Restore the key, which is known to be the array length.
|
|
|
| // eax: value
|
| @@ -3743,7 +3744,8 @@ void KeyedStoreStubCompiler::GenerateStoreFastDoubleElement(
|
| __ j(not_equal, &check_capacity);
|
|
|
| int size = FixedDoubleArray::SizeFor(JSArray::kPreallocatedArrayElements);
|
| - __ AllocateInNewSpace(size, edi, ebx, ecx, &prepare_slow, TAG_OBJECT);
|
| + __ Allocate(size, edi, ebx, ecx, &prepare_slow, TAG_OBJECT,
|
| + MacroAssembler::NEW_SPACE);
|
|
|
| // Restore the key, which is known to be the array length.
|
| __ mov(ecx, Immediate(0));
|
|
|