| Index: src/ia32/stub-cache-ia32.cc
|
| diff --git a/src/ia32/stub-cache-ia32.cc b/src/ia32/stub-cache-ia32.cc
|
| index 352eae1f927577d815d76c7089df232c6dfdb627..111844c207500bb8feb5ba963bc5c42b38054326 100644
|
| --- a/src/ia32/stub-cache-ia32.cc
|
| +++ b/src/ia32/stub-cache-ia32.cc
|
| @@ -1503,19 +1503,23 @@ MaybeObject* CallStubCompiler::CompileArrayPushCall(Object* object,
|
| __ mov(ecx, Operand(esp, argc * kPointerSize));
|
| __ mov(Operand(edx, 0), ecx);
|
|
|
| - // Check if value is a smi.
|
| - __ test(ecx, Immediate(kSmiTagMask));
|
| - __ j(not_zero, &with_write_barrier);
|
| + if (!FLAG_new_gc) {
|
| + // Check if value is a smi.
|
| + __ test(ecx, Immediate(kSmiTagMask));
|
| + __ j(not_zero, &with_write_barrier);
|
| + }
|
|
|
| __ bind(&exit);
|
| __ ret((argc + 1) * kPointerSize);
|
|
|
| - __ bind(&with_write_barrier);
|
| + if (!FLAG_new_gc) {
|
| + __ bind(&with_write_barrier);
|
|
|
| - __ InNewSpace(ebx, ecx, equal, &exit);
|
| + __ InNewSpace(ebx, ecx, equal, &exit);
|
|
|
| - __ RecordWriteHelper(ebx, edx, ecx);
|
| - __ ret((argc + 1) * kPointerSize);
|
| + __ RecordWriteHelper(ebx, edx, ecx);
|
| + __ ret((argc + 1) * kPointerSize);
|
| + }
|
|
|
| __ bind(&attempt_to_grow_elements);
|
| if (!FLAG_inline_new) {
|
|
|