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 1425 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1436 return; | 1436 return; |
1437 } | 1437 } |
1438 case IrOpcode::kNumberAtan2: { | 1438 case IrOpcode::kNumberAtan2: { |
1439 VisitBinop(node, UseInfo::TruncatingFloat64(), | 1439 VisitBinop(node, UseInfo::TruncatingFloat64(), |
1440 MachineRepresentation::kFloat64); | 1440 MachineRepresentation::kFloat64); |
1441 if (lower()) NodeProperties::ChangeOp(node, Float64Op(node)); | 1441 if (lower()) NodeProperties::ChangeOp(node, Float64Op(node)); |
1442 return; | 1442 return; |
1443 } | 1443 } |
1444 case IrOpcode::kNumberAtan: | 1444 case IrOpcode::kNumberAtan: |
1445 case IrOpcode::kNumberAtanh: | 1445 case IrOpcode::kNumberAtanh: |
| 1446 case IrOpcode::kNumberCos: |
1446 case IrOpcode::kNumberExp: | 1447 case IrOpcode::kNumberExp: |
1447 case IrOpcode::kNumberExpm1: | 1448 case IrOpcode::kNumberExpm1: |
1448 case IrOpcode::kNumberLog: | 1449 case IrOpcode::kNumberLog: |
1449 case IrOpcode::kNumberLog1p: | 1450 case IrOpcode::kNumberLog1p: |
1450 case IrOpcode::kNumberLog2: | 1451 case IrOpcode::kNumberLog2: |
1451 case IrOpcode::kNumberLog10: | 1452 case IrOpcode::kNumberLog10: |
1452 case IrOpcode::kNumberCbrt: { | 1453 case IrOpcode::kNumberCbrt: |
| 1454 case IrOpcode::kNumberSin: { |
1453 VisitUnop(node, UseInfo::TruncatingFloat64(), | 1455 VisitUnop(node, UseInfo::TruncatingFloat64(), |
1454 MachineRepresentation::kFloat64); | 1456 MachineRepresentation::kFloat64); |
1455 if (lower()) NodeProperties::ChangeOp(node, Float64Op(node)); | 1457 if (lower()) NodeProperties::ChangeOp(node, Float64Op(node)); |
1456 return; | 1458 return; |
1457 } | 1459 } |
1458 case IrOpcode::kNumberRound: { | 1460 case IrOpcode::kNumberRound: { |
1459 VisitUnop(node, UseInfo::TruncatingFloat64(), | 1461 VisitUnop(node, UseInfo::TruncatingFloat64(), |
1460 MachineRepresentation::kFloat64); | 1462 MachineRepresentation::kFloat64); |
1461 if (lower()) DeferReplacement(node, lowering->Float64Round(node)); | 1463 if (lower()) DeferReplacement(node, lowering->Float64Round(node)); |
1462 return; | 1464 return; |
(...skipping 1465 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2928 isolate(), graph()->zone(), callable.descriptor(), 0, flags, | 2930 isolate(), graph()->zone(), callable.descriptor(), 0, flags, |
2929 Operator::kNoProperties); | 2931 Operator::kNoProperties); |
2930 to_number_operator_.set(common()->Call(desc)); | 2932 to_number_operator_.set(common()->Call(desc)); |
2931 } | 2933 } |
2932 return to_number_operator_.get(); | 2934 return to_number_operator_.get(); |
2933 } | 2935 } |
2934 | 2936 |
2935 } // namespace compiler | 2937 } // namespace compiler |
2936 } // namespace internal | 2938 } // namespace internal |
2937 } // namespace v8 | 2939 } // namespace v8 |
OLD | NEW |