diff --git a/src/compiler/escape-analysis.cc b/src/compiler/escape-analysis.cc index c38234f3ad..a40314aec2 100644 --- a/src/compiler/escape-analysis.cc +++ b/src/compiler/escape-analysis.cc @@ -1534,8 +1534,8 @@ void EscapeAnalysis::ProcessCheckMaps(Node* node) { // CheckMapsValue operator that takes the load-eliminated map value as // input. if (value->opcode() == IrOpcode::kHeapConstant && - params.maps().contains(ZoneHandleSet( - Handle::cast(OpParameter>(value))))) { + params.maps().contains(ZoneHandleSet(bit_cast>( + OpParameter>(value))))) { TRACE("CheckMaps #%i seems to be redundant (until now).\n", node->id()); return; diff --git a/src/compiler/load-elimination.cc b/src/compiler/load-elimination.cc index 6dd27d397b..bd8acaf5cf 100644 --- a/src/compiler/load-elimination.cc +++ b/src/compiler/load-elimination.cc @@ -871,7 +871,7 @@ Reduction LoadElimination::ReduceStoreField(Node* node) { if (new_value_type->IsHeapConstant()) { // Record the new {object} map information. ZoneHandleSet object_maps( - Handle::cast(new_value_type->AsHeapConstant()->Value())); + bit_cast>(new_value_type->AsHeapConstant()->Value())); state = state->AddMaps(object, object_maps, zone()); } } else { diff --git a/src/handles.h b/src/handles.h index 5f0012698d..21c2f1987b 100644 --- a/src/handles.h +++ b/src/handles.h @@ -125,7 +125,7 @@ class Handle final : public HandleBase { template static const Handle cast(Handle that) { - T::cast(*reinterpret_cast(that.location_)); + T::cast(*reinterpret_cast(that.location())); return Handle(reinterpret_cast(that.location_)); }