| Index: src/compiler/register-allocator.cc
|
| diff --git a/src/compiler/register-allocator.cc b/src/compiler/register-allocator.cc
|
| index 5b55b0224c6debc7148a150c1bbe73d6011ee488..e9da735d2c14a703627712465b5c13c47a3f2958 100644
|
| --- a/src/compiler/register-allocator.cc
|
| +++ b/src/compiler/register-allocator.cc
|
| @@ -3273,8 +3273,10 @@ void ReferenceMapPopulator::PopulateReferenceMaps() {
|
| spill_operand = range->GetSpillRangeOperand();
|
| }
|
| DCHECK(spill_operand.IsStackSlot());
|
| - DCHECK_EQ(MachineRepresentation::kTagged,
|
| - AllocatedOperand::cast(spill_operand).representation());
|
| + DCHECK(AllocatedOperand::cast(spill_operand).representation() ==
|
| + MachineRepresentation::kTagged ||
|
| + AllocatedOperand::cast(spill_operand).representation() ==
|
| + MachineRepresentation::kTaggedPointer);
|
| }
|
|
|
| LiveRange* cur = range;
|
| @@ -3336,8 +3338,10 @@ void ReferenceMapPopulator::PopulateReferenceMaps() {
|
| safe_point);
|
| InstructionOperand operand = cur->GetAssignedOperand();
|
| DCHECK(!operand.IsStackSlot());
|
| - DCHECK_EQ(MachineRepresentation::kTagged,
|
| - AllocatedOperand::cast(operand).representation());
|
| + DCHECK(AllocatedOperand::cast(operand).representation() ==
|
| + MachineRepresentation::kTagged ||
|
| + AllocatedOperand::cast(operand).representation() ==
|
| + MachineRepresentation::kTaggedPointer);
|
| map->RecordReference(AllocatedOperand::cast(operand));
|
| }
|
| }
|
|
|