OLD | NEW |
1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "src/code-factory.h" | 5 #include "src/code-factory.h" |
6 #include "src/compilation-dependencies.h" | 6 #include "src/compilation-dependencies.h" |
7 #include "src/compiler/access-builder.h" | 7 #include "src/compiler/access-builder.h" |
8 #include "src/compiler/js-graph.h" | 8 #include "src/compiler/js-graph.h" |
9 #include "src/compiler/js-typed-lowering.h" | 9 #include "src/compiler/js-typed-lowering.h" |
10 #include "src/compiler/linkage.h" | 10 #include "src/compiler/linkage.h" |
(...skipping 575 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
586 | 586 |
587 JSBinopReduction r(this, node); | 587 JSBinopReduction r(this, node); |
588 r.ConvertInputsToNumber(); | 588 r.ConvertInputsToNumber(); |
589 r.ConvertInputsToUI32(kSigned, kSigned); | 589 r.ConvertInputsToUI32(kSigned, kSigned); |
590 return r.ChangeToPureOperator(intOp, Type::Integral32()); | 590 return r.ChangeToPureOperator(intOp, Type::Integral32()); |
591 } | 591 } |
592 | 592 |
593 Reduction JSTypedLowering::ReduceUI32Shift(Node* node, | 593 Reduction JSTypedLowering::ReduceUI32Shift(Node* node, |
594 Signedness left_signedness, | 594 Signedness left_signedness, |
595 const Operator* shift_op) { | 595 const Operator* shift_op) { |
596 if (flags() & kDisableIntegerBinaryOpReduction) return NoChange(); | |
597 JSBinopReduction r(this, node); | 596 JSBinopReduction r(this, node); |
598 BinaryOperationHints::Hint feedback = r.GetNumberBinaryOperationFeedback(); | 597 BinaryOperationHints::Hint feedback = r.GetNumberBinaryOperationFeedback(); |
599 if (feedback != BinaryOperationHints::kAny) { | 598 if (feedback != BinaryOperationHints::kAny) { |
600 Operator const* speculative_op; | 599 Operator const* speculative_op; |
601 if (shift_op->opcode() == IrOpcode::kNumberShiftLeft) { | 600 if (shift_op->opcode() == IrOpcode::kNumberShiftLeft) { |
602 speculative_op = simplified()->SpeculativeNumberShiftLeft(feedback); | 601 speculative_op = simplified()->SpeculativeNumberShiftLeft(feedback); |
603 } else if (shift_op->opcode() == IrOpcode::kNumberShiftRightLogical) { | 602 } else if (shift_op->opcode() == IrOpcode::kNumberShiftRightLogical) { |
604 speculative_op = | 603 speculative_op = |
605 simplified()->SpeculativeNumberShiftRightLogical(feedback); | 604 simplified()->SpeculativeNumberShiftRightLogical(feedback); |
606 } else { | 605 } else { |
(...skipping 1555 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2162 } | 2161 } |
2163 | 2162 |
2164 | 2163 |
2165 CompilationDependencies* JSTypedLowering::dependencies() const { | 2164 CompilationDependencies* JSTypedLowering::dependencies() const { |
2166 return dependencies_; | 2165 return dependencies_; |
2167 } | 2166 } |
2168 | 2167 |
2169 } // namespace compiler | 2168 } // namespace compiler |
2170 } // namespace internal | 2169 } // namespace internal |
2171 } // namespace v8 | 2170 } // namespace v8 |
OLD | NEW |