Index: src/compiler/representation-change.cc |
diff --git a/src/compiler/representation-change.cc b/src/compiler/representation-change.cc |
index 0620fdd222d52c57a3ce2940826e9c01a494d40f..e45670c69f1bf7e5ef4140e2624c8634764e375f 100644 |
--- a/src/compiler/representation-change.cc |
+++ b/src/compiler/representation-change.cc |
@@ -210,7 +210,7 @@ Node* RepresentationChanger::GetTaggedSignedRepresentationFor( |
} |
// Select the correct X -> Tagged operator. |
const Operator* op; |
- if (output_type->Is(Type::None())) { |
+ if (Type::Semantic(output_type, jsgraph()->zone())->Is(Type::None())) { |
// This is an impossible value; it should not be used at runtime. |
// We just provide a dummy value here. |
return jsgraph()->Constant(0); |
@@ -252,7 +252,7 @@ Node* RepresentationChanger::GetTaggedPointerRepresentationFor( |
break; |
} |
// Select the correct X -> Tagged operator. |
- if (output_type->Is(Type::None())) { |
+ if (Type::Semantic(output_type, jsgraph()->zone())->Is(Type::None())) { |
// This is an impossible value; it should not be used at runtime. |
// We just provide a dummy value here. |
return jsgraph()->TheHoleConstant(); |
@@ -296,7 +296,7 @@ Node* RepresentationChanger::GetTaggedRepresentationFor( |
} |
// Select the correct X -> Tagged operator. |
const Operator* op; |
- if (output_type->Is(Type::None())) { |
+ if (Type::Semantic(output_type, jsgraph()->zone())->Is(Type::None())) { |
// This is an impossible value; it should not be used at runtime. |
// We just provide a dummy value here. |
return jsgraph()->TheHoleConstant(); |
@@ -375,7 +375,7 @@ Node* RepresentationChanger::GetFloat32RepresentationFor( |
} |
// Select the correct X -> Float32 operator. |
const Operator* op = nullptr; |
- if (output_type->Is(Type::None())) { |
+ if (Type::Semantic(output_type, jsgraph()->zone())->Is(Type::None())) { |
// This is an impossible value; it should not be used at runtime. |
// We just provide a dummy value here. |
return jsgraph()->Float32Constant(0.0f); |
@@ -445,7 +445,7 @@ Node* RepresentationChanger::GetFloat64RepresentationFor( |
} |
// Select the correct X -> Float64 operator. |
const Operator* op = nullptr; |
- if (output_type->Is(Type::None())) { |
+ if (Type::Semantic(output_type, jsgraph()->zone())->Is(Type::None())) { |
// This is an impossible value; it should not be used at runtime. |
// We just provide a dummy value here. |
return jsgraph()->Float64Constant(0.0); |
@@ -530,7 +530,7 @@ Node* RepresentationChanger::GetWord32RepresentationFor( |
// Select the correct X -> Word32 operator. |
const Operator* op = nullptr; |
- if (output_type->Is(Type::None())) { |
+ if (Type::Semantic(output_type, jsgraph()->zone())->Is(Type::None())) { |
// This is an impossible value; it should not be used at runtime. |
// We just provide a dummy value here. |
return jsgraph()->Int32Constant(0); |
@@ -655,7 +655,7 @@ Node* RepresentationChanger::GetBitRepresentationFor( |
} |
// Select the correct X -> Bit operator. |
const Operator* op; |
- if (output_type->Is(Type::None())) { |
+ if (Type::Semantic(output_type, jsgraph()->zone())->Is(Type::None())) { |
// This is an impossible value; it should not be used at runtime. |
// We just provide a dummy value here. |
return jsgraph()->Int32Constant(0); |
@@ -672,7 +672,7 @@ Node* RepresentationChanger::GetBitRepresentationFor( |
Node* RepresentationChanger::GetWord64RepresentationFor( |
Node* node, MachineRepresentation output_rep, Type* output_type) { |
- if (output_type->Is(Type::None())) { |
+ if (Type::Semantic(output_type, jsgraph()->zone())->Is(Type::None())) { |
// This is an impossible value; it should not be used at runtime. |
// We just provide a dummy value here. |
return jsgraph()->Int64Constant(0); |