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