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/compiler/simplified-lowering.h" | 5 #include "src/compiler/simplified-lowering.h" |
6 | 6 |
7 #include <limits> | 7 #include <limits> |
8 | 8 |
9 #include "src/address-map.h" | 9 #include "src/address-map.h" |
10 #include "src/base/bits.h" | 10 #include "src/base/bits.h" |
(...skipping 1539 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1550 if (lower()) NodeProperties::ChangeOp(node, Float64Op(node)); | 1550 if (lower()) NodeProperties::ChangeOp(node, Float64Op(node)); |
1551 return; | 1551 return; |
1552 } | 1552 } |
1553 case IrOpcode::kNumberAcos: | 1553 case IrOpcode::kNumberAcos: |
1554 case IrOpcode::kNumberAcosh: | 1554 case IrOpcode::kNumberAcosh: |
1555 case IrOpcode::kNumberAsin: | 1555 case IrOpcode::kNumberAsin: |
1556 case IrOpcode::kNumberAsinh: | 1556 case IrOpcode::kNumberAsinh: |
1557 case IrOpcode::kNumberAtan: | 1557 case IrOpcode::kNumberAtan: |
1558 case IrOpcode::kNumberAtanh: | 1558 case IrOpcode::kNumberAtanh: |
1559 case IrOpcode::kNumberCos: | 1559 case IrOpcode::kNumberCos: |
| 1560 case IrOpcode::kNumberCosh: |
1560 case IrOpcode::kNumberExp: | 1561 case IrOpcode::kNumberExp: |
1561 case IrOpcode::kNumberExpm1: | 1562 case IrOpcode::kNumberExpm1: |
1562 case IrOpcode::kNumberLog: | 1563 case IrOpcode::kNumberLog: |
1563 case IrOpcode::kNumberLog1p: | 1564 case IrOpcode::kNumberLog1p: |
1564 case IrOpcode::kNumberLog2: | 1565 case IrOpcode::kNumberLog2: |
1565 case IrOpcode::kNumberLog10: | 1566 case IrOpcode::kNumberLog10: |
1566 case IrOpcode::kNumberCbrt: | 1567 case IrOpcode::kNumberCbrt: |
1567 case IrOpcode::kNumberSin: | 1568 case IrOpcode::kNumberSin: |
1568 case IrOpcode::kNumberTan: { | 1569 case IrOpcode::kNumberSinh: |
| 1570 case IrOpcode::kNumberTan: |
| 1571 case IrOpcode::kNumberTanh: { |
1569 VisitUnop(node, UseInfo::TruncatingFloat64(), | 1572 VisitUnop(node, UseInfo::TruncatingFloat64(), |
1570 MachineRepresentation::kFloat64); | 1573 MachineRepresentation::kFloat64); |
1571 if (lower()) NodeProperties::ChangeOp(node, Float64Op(node)); | 1574 if (lower()) NodeProperties::ChangeOp(node, Float64Op(node)); |
1572 return; | 1575 return; |
1573 } | 1576 } |
1574 case IrOpcode::kNumberRound: { | 1577 case IrOpcode::kNumberRound: { |
1575 VisitUnop(node, UseInfo::TruncatingFloat64(), | 1578 VisitUnop(node, UseInfo::TruncatingFloat64(), |
1576 MachineRepresentation::kFloat64); | 1579 MachineRepresentation::kFloat64); |
1577 if (lower()) DeferReplacement(node, lowering->Float64Round(node)); | 1580 if (lower()) DeferReplacement(node, lowering->Float64Round(node)); |
1578 return; | 1581 return; |
(...skipping 1575 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3154 isolate(), graph()->zone(), callable.descriptor(), 0, flags, | 3157 isolate(), graph()->zone(), callable.descriptor(), 0, flags, |
3155 Operator::kNoProperties); | 3158 Operator::kNoProperties); |
3156 to_number_operator_.set(common()->Call(desc)); | 3159 to_number_operator_.set(common()->Call(desc)); |
3157 } | 3160 } |
3158 return to_number_operator_.get(); | 3161 return to_number_operator_.get(); |
3159 } | 3162 } |
3160 | 3163 |
3161 } // namespace compiler | 3164 } // namespace compiler |
3162 } // namespace internal | 3165 } // namespace internal |
3163 } // namespace v8 | 3166 } // namespace v8 |
OLD | NEW |