Index: src/compiler/js-intrinsic-lowering.cc |
diff --git a/src/compiler/js-intrinsic-lowering.cc b/src/compiler/js-intrinsic-lowering.cc |
index 1d939e1ee00f846b74a12188657fe87c06184523..080c530ab647f48ab58b6b26078763c86c6a1a24 100644 |
--- a/src/compiler/js-intrinsic-lowering.cc |
+++ b/src/compiler/js-intrinsic-lowering.cc |
@@ -68,14 +68,10 @@ Reduction JSIntrinsicLowering::Reduce(Node* node) { |
return ReduceToInteger(node); |
case Runtime::kInlineToLength: |
return ReduceToLength(node); |
- case Runtime::kInlineToName: |
- return ReduceToName(node); |
case Runtime::kInlineToNumber: |
return ReduceToNumber(node); |
case Runtime::kInlineToObject: |
return ReduceToObject(node); |
- case Runtime::kInlineToPrimitive: |
- return ReduceToPrimitive(node); |
case Runtime::kInlineToString: |
return ReduceToString(node); |
case Runtime::kInlineCall: |
@@ -280,12 +276,6 @@ Reduction JSIntrinsicLowering::ReduceToInteger(Node* node) { |
} |
-Reduction JSIntrinsicLowering::ReduceToName(Node* node) { |
- NodeProperties::ChangeOp(node, javascript()->ToName()); |
- return Changed(node); |
-} |
- |
- |
Reduction JSIntrinsicLowering::ReduceToNumber(Node* node) { |
NodeProperties::ChangeOp(node, javascript()->ToNumber()); |
return Changed(node); |
@@ -304,17 +294,6 @@ Reduction JSIntrinsicLowering::ReduceToObject(Node* node) { |
} |
-Reduction JSIntrinsicLowering::ReduceToPrimitive(Node* node) { |
- Node* value = NodeProperties::GetValueInput(node, 0); |
- Type* value_type = NodeProperties::GetType(value); |
- if (value_type->Is(Type::Primitive())) { |
- ReplaceWithValue(node, value); |
- return Replace(value); |
- } |
- return NoChange(); |
-} |
- |
- |
Reduction JSIntrinsicLowering::ReduceToString(Node* node) { |
NodeProperties::ChangeOp(node, javascript()->ToString()); |
return Changed(node); |