| Index: runtime/vm/parser.cc
|
| diff --git a/runtime/vm/parser.cc b/runtime/vm/parser.cc
|
| index 30a735e9de1bcd93b3c2bf8a102dd0a665482ed9..14446d997566b961a762f96e7cb7dd5bff590864 100644
|
| --- a/runtime/vm/parser.cc
|
| +++ b/runtime/vm/parser.cc
|
| @@ -10524,7 +10524,6 @@ LocalVariable* Parser::CreateTempConstVariable(TokenPosition token_pos,
|
| }
|
|
|
|
|
| -// TODO(srdjan): Implement other optimizations.
|
| AstNode* Parser::OptimizeBinaryOpNode(TokenPosition op_pos,
|
| Token::Kind binary_op,
|
| AstNode* lhs,
|
| @@ -10551,20 +10550,6 @@ AstNode* Parser::OptimizeBinaryOpNode(TokenPosition op_pos,
|
| rhs_literal = lhs_literal;
|
| lhs_literal = temp;
|
| }
|
| - if ((rhs_literal != NULL) &&
|
| - (rhs_literal->literal().IsSmi() || rhs_literal->literal().IsMint())) {
|
| - const int64_t val = Integer::Cast(rhs_literal->literal()).AsInt64Value();
|
| - if ((0 <= val) && (Utils::IsUint(32, val))) {
|
| - if (lhs->IsBinaryOpNode() &&
|
| - (lhs->AsBinaryOpNode()->kind() == Token::kSHL)) {
|
| - // Merge SHL and BIT_AND into one "SHL with mask" node.
|
| - BinaryOpNode* old = lhs->AsBinaryOpNode();
|
| - BinaryOpWithMask32Node* binop = new(Z) BinaryOpWithMask32Node(
|
| - old->token_pos(), old->kind(), old->left(), old->right(), val);
|
| - return binop;
|
| - }
|
| - }
|
| - }
|
| }
|
| if (binary_op == Token::kIFNULL) {
|
| // Handle a ?? b.
|
|
|