Commit 8d9de7ff authored by Georg Neis's avatar Georg Neis Committed by Commit Bot

[compiler] Remove dead code in CodeGenerator::BuildTranslation.

R=jarin@chromium.org

Bug: 
Change-Id: Id219fb91c4c4f40677edea6f9c04763284e14373
Reviewed-on: https://chromium-review.googlesource.com/800934Reviewed-by: 's avatarJaroslav Sevcik <jarin@chromium.org>
Commit-Queue: Georg Neis <neis@chromium.org>
Cr-Commit-Position: refs/heads/master@{#49831}
parent 68c5d01a
......@@ -1014,18 +1014,6 @@ void CodeGenerator::AddTranslationForOperand(Translation* translation,
}
}
break;
case Constant::kInt64:
// When pointers are 8 bytes, we can use int64 constants to represent
// Smis.
DCHECK(type.representation() == MachineRepresentation::kWord64 ||
type.representation() == MachineRepresentation::kTagged);
DCHECK_EQ(8, kPointerSize);
{
Smi* smi = reinterpret_cast<Smi*>(constant.ToInt64());
DCHECK(smi->IsSmi());
literal = DeoptimizationLiteral(smi->value());
}
break;
case Constant::kFloat32:
DCHECK(type.representation() == MachineRepresentation::kFloat32 ||
type.representation() == MachineRepresentation::kTagged);
......@@ -1040,8 +1028,15 @@ void CodeGenerator::AddTranslationForOperand(Translation* translation,
DCHECK_EQ(MachineRepresentation::kTagged, type.representation());
literal = DeoptimizationLiteral(constant.ToHeapObject());
break;
default:
case Constant::kInt64:
UNREACHABLE();
break;
case Constant::kExternalReference:
UNREACHABLE();
break;
case Constant::kRpoNumber:
UNREACHABLE();
break;
}
if (literal.object().equals(info()->closure())) {
translation->StoreJSFrameFunction();
......
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