| Index: src/x87/macro-assembler-x87.cc
|
| diff --git a/src/x87/macro-assembler-x87.cc b/src/x87/macro-assembler-x87.cc
|
| index 840913797c72897fd442d0225e9dce7581ff1f16..068cc5f01e2f74bc07171f5d5f80258a07b3f2c8 100644
|
| --- a/src/x87/macro-assembler-x87.cc
|
| +++ b/src/x87/macro-assembler-x87.cc
|
| @@ -1520,10 +1520,10 @@ void MacroAssembler::Allocate(int object_size,
|
| // Update allocation top.
|
| UpdateAllocationTopHelper(top_reg, scratch, flags);
|
|
|
| - // Tag result if requested.
|
| if (top_reg.is(result)) {
|
| sub(result, Immediate(object_size - kHeapObjectTag));
|
| } else {
|
| + // Tag the result.
|
| DCHECK(kHeapObjectTag == 1);
|
| inc(result);
|
| }
|
| @@ -1597,6 +1597,7 @@ void MacroAssembler::Allocate(int header_size,
|
| cmp(result_end, Operand::StaticVariable(allocation_limit));
|
| j(above, gc_required);
|
|
|
| + // Tag result.
|
| DCHECK(kHeapObjectTag == 1);
|
| inc(result);
|
|
|
|
|