Commit 8edda904 authored by Santiago Aboy Solanes's avatar Santiago Aboy Solanes Committed by Commit Bot

[deoptimizer] Accept the use of compressed heap constants

Change-Id: I338ca9de7609eb0855054fe776b32c4e9321ac7c
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1890104Reviewed-by: 's avatarTobias Tebbi <tebbi@chromium.org>
Commit-Queue: Santiago Aboy Solanes <solanes@chromium.org>
Cr-Commit-Position: refs/heads/master@{#64673}
parent 45b8e3e9
...@@ -1245,7 +1245,7 @@ void CodeGenerator::AddTranslationForOperand(Translation* translation, ...@@ -1245,7 +1245,7 @@ void CodeGenerator::AddTranslationForOperand(Translation* translation,
literal = DeoptimizationLiteral(constant.ToHeapObject()); literal = DeoptimizationLiteral(constant.ToHeapObject());
break; break;
case Constant::kCompressedHeapObject: case Constant::kCompressedHeapObject:
DCHECK_EQ(MachineRepresentation::kCompressed, type.representation()); DCHECK_EQ(MachineType::TypeCompressedTagged(), type);
literal = DeoptimizationLiteral(constant.ToHeapObject()); literal = DeoptimizationLiteral(constant.ToHeapObject());
break; break;
case Constant::kDelayedStringConstant: case Constant::kDelayedStringConstant:
......
...@@ -482,6 +482,7 @@ InstructionOperand OperandForDeopt(Isolate* isolate, OperandGenerator* g, ...@@ -482,6 +482,7 @@ InstructionOperand OperandForDeopt(Isolate* isolate, OperandGenerator* g,
case IrOpcode::kFloat64Constant: case IrOpcode::kFloat64Constant:
case IrOpcode::kDelayedStringConstant: case IrOpcode::kDelayedStringConstant:
return g->UseImmediate(input); return g->UseImmediate(input);
case IrOpcode::kCompressedHeapConstant:
case IrOpcode::kHeapConstant: { case IrOpcode::kHeapConstant: {
if (!CanBeTaggedOrCompressedPointer(rep)) { if (!CanBeTaggedOrCompressedPointer(rep)) {
// If we have inconsistent static and dynamic types, e.g. if we // If we have inconsistent static and dynamic types, e.g. if we
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment