Index: src/compiler/simplified-lowering.cc |
diff --git a/src/compiler/simplified-lowering.cc b/src/compiler/simplified-lowering.cc |
index a5dbad2750171f8b7615694d9597c4a4dfef0463..0ec596a5366a7a5dffd97029953bf3f1ef63ccd0 100644 |
--- a/src/compiler/simplified-lowering.cc |
+++ b/src/compiler/simplified-lowering.cc |
@@ -1509,7 +1509,7 @@ class RepresentationSelector { |
if (lower()) { |
// StringEqual(x, y) => Call(StringEqualStub, x, y, no-context) |
Operator::Properties properties = |
- Operator::kCommutative | Operator::kNoThrow; |
+ Operator::kCommutative | Operator::kEliminatable; |
Callable callable = CodeFactory::StringEqual(jsgraph_->isolate()); |
CallDescriptor::Flags flags = CallDescriptor::kNoFlags; |
CallDescriptor* desc = Linkage::GetStubCallDescriptor( |
@@ -1519,7 +1519,6 @@ class RepresentationSelector { |
jsgraph_->HeapConstant(callable.code())); |
node->AppendInput(jsgraph_->zone(), jsgraph_->NoContextConstant()); |
node->AppendInput(jsgraph_->zone(), jsgraph_->graph()->start()); |
- node->AppendInput(jsgraph_->zone(), jsgraph_->graph()->start()); |
NodeProperties::ChangeOp(node, jsgraph_->common()->Call(desc)); |
} |
return; |
@@ -1528,7 +1527,7 @@ class RepresentationSelector { |
VisitBinop(node, UseInfo::AnyTagged(), MachineRepresentation::kTagged); |
if (lower()) { |
// StringLessThan(x, y) => Call(StringLessThanStub, x, y, no-context) |
- Operator::Properties properties = Operator::kNoThrow; |
+ Operator::Properties properties = Operator::kEliminatable; |
Callable callable = CodeFactory::StringLessThan(jsgraph_->isolate()); |
CallDescriptor::Flags flags = CallDescriptor::kNoFlags; |
CallDescriptor* desc = Linkage::GetStubCallDescriptor( |
@@ -1538,7 +1537,6 @@ class RepresentationSelector { |
jsgraph_->HeapConstant(callable.code())); |
node->AppendInput(jsgraph_->zone(), jsgraph_->NoContextConstant()); |
node->AppendInput(jsgraph_->zone(), jsgraph_->graph()->start()); |
- node->AppendInput(jsgraph_->zone(), jsgraph_->graph()->start()); |
NodeProperties::ChangeOp(node, jsgraph_->common()->Call(desc)); |
} |
return; |
@@ -1548,7 +1546,7 @@ class RepresentationSelector { |
if (lower()) { |
// StringLessThanOrEqual(x, y) |
// => Call(StringLessThanOrEqualStub, x, y, no-context) |
- Operator::Properties properties = Operator::kNoThrow; |
+ Operator::Properties properties = Operator::kEliminatable; |
Callable callable = |
CodeFactory::StringLessThanOrEqual(jsgraph_->isolate()); |
CallDescriptor::Flags flags = CallDescriptor::kNoFlags; |
@@ -1559,7 +1557,6 @@ class RepresentationSelector { |
jsgraph_->HeapConstant(callable.code())); |
node->AppendInput(jsgraph_->zone(), jsgraph_->NoContextConstant()); |
node->AppendInput(jsgraph_->zone(), jsgraph_->graph()->start()); |
- node->AppendInput(jsgraph_->zone(), jsgraph_->graph()->start()); |
NodeProperties::ChangeOp(node, jsgraph_->common()->Call(desc)); |
} |
return; |
@@ -1573,7 +1570,7 @@ class RepresentationSelector { |
VisitUnop(node, UseInfo::AnyTagged(), MachineRepresentation::kTagged); |
if (lower()) { |
// StringToNumber(x) => Call(StringToNumber, x, no-context) |
- Operator::Properties properties = Operator::kNoThrow; |
+ Operator::Properties properties = Operator::kEliminatable; |
Callable callable = CodeFactory::StringToNumber(jsgraph_->isolate()); |
CallDescriptor::Flags flags = CallDescriptor::kNoFlags; |
CallDescriptor* desc = Linkage::GetStubCallDescriptor( |
@@ -1583,7 +1580,6 @@ class RepresentationSelector { |
jsgraph_->HeapConstant(callable.code())); |
node->AppendInput(jsgraph_->zone(), jsgraph_->NoContextConstant()); |
node->AppendInput(jsgraph_->zone(), jsgraph_->graph()->start()); |
- node->AppendInput(jsgraph_->zone(), jsgraph_->graph()->start()); |
NodeProperties::ChangeOp(node, jsgraph_->common()->Call(desc)); |
} |
return; |