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 1521 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1532 case IrOpcode::kNumberAtan: | 1532 case IrOpcode::kNumberAtan: |
1533 case IrOpcode::kNumberAtanh: | 1533 case IrOpcode::kNumberAtanh: |
1534 case IrOpcode::kNumberCos: | 1534 case IrOpcode::kNumberCos: |
1535 case IrOpcode::kNumberExp: | 1535 case IrOpcode::kNumberExp: |
1536 case IrOpcode::kNumberExpm1: | 1536 case IrOpcode::kNumberExpm1: |
1537 case IrOpcode::kNumberLog: | 1537 case IrOpcode::kNumberLog: |
1538 case IrOpcode::kNumberLog1p: | 1538 case IrOpcode::kNumberLog1p: |
1539 case IrOpcode::kNumberLog2: | 1539 case IrOpcode::kNumberLog2: |
1540 case IrOpcode::kNumberLog10: | 1540 case IrOpcode::kNumberLog10: |
1541 case IrOpcode::kNumberCbrt: | 1541 case IrOpcode::kNumberCbrt: |
1542 case IrOpcode::kNumberSin: { | 1542 case IrOpcode::kNumberSin: |
| 1543 case IrOpcode::kNumberTan: { |
1543 VisitUnop(node, UseInfo::TruncatingFloat64(), | 1544 VisitUnop(node, UseInfo::TruncatingFloat64(), |
1544 MachineRepresentation::kFloat64); | 1545 MachineRepresentation::kFloat64); |
1545 if (lower()) NodeProperties::ChangeOp(node, Float64Op(node)); | 1546 if (lower()) NodeProperties::ChangeOp(node, Float64Op(node)); |
1546 return; | 1547 return; |
1547 } | 1548 } |
1548 case IrOpcode::kNumberRound: { | 1549 case IrOpcode::kNumberRound: { |
1549 VisitUnop(node, UseInfo::TruncatingFloat64(), | 1550 VisitUnop(node, UseInfo::TruncatingFloat64(), |
1550 MachineRepresentation::kFloat64); | 1551 MachineRepresentation::kFloat64); |
1551 if (lower()) DeferReplacement(node, lowering->Float64Round(node)); | 1552 if (lower()) DeferReplacement(node, lowering->Float64Round(node)); |
1552 return; | 1553 return; |
(...skipping 1501 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3054 isolate(), graph()->zone(), callable.descriptor(), 0, flags, | 3055 isolate(), graph()->zone(), callable.descriptor(), 0, flags, |
3055 Operator::kNoProperties); | 3056 Operator::kNoProperties); |
3056 to_number_operator_.set(common()->Call(desc)); | 3057 to_number_operator_.set(common()->Call(desc)); |
3057 } | 3058 } |
3058 return to_number_operator_.get(); | 3059 return to_number_operator_.get(); |
3059 } | 3060 } |
3060 | 3061 |
3061 } // namespace compiler | 3062 } // namespace compiler |
3062 } // namespace internal | 3063 } // namespace internal |
3063 } // namespace v8 | 3064 } // namespace v8 |
OLD | NEW |