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 1520 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1531 MachineRepresentation::kFloat64); | 1531 MachineRepresentation::kFloat64); |
1532 if (lower()) DeferReplacement(node, lowering->Float64Floor(node)); | 1532 if (lower()) DeferReplacement(node, lowering->Float64Floor(node)); |
1533 return; | 1533 return; |
1534 } | 1534 } |
1535 case IrOpcode::kNumberFround: { | 1535 case IrOpcode::kNumberFround: { |
1536 VisitUnop(node, UseInfo::TruncatingFloat64(), | 1536 VisitUnop(node, UseInfo::TruncatingFloat64(), |
1537 MachineRepresentation::kFloat32); | 1537 MachineRepresentation::kFloat32); |
1538 if (lower()) NodeProperties::ChangeOp(node, Float64Op(node)); | 1538 if (lower()) NodeProperties::ChangeOp(node, Float64Op(node)); |
1539 return; | 1539 return; |
1540 } | 1540 } |
1541 case IrOpcode::kNumberAtan2: { | 1541 case IrOpcode::kNumberAtan2: |
| 1542 case IrOpcode::kNumberPow: { |
1542 VisitBinop(node, UseInfo::TruncatingFloat64(), | 1543 VisitBinop(node, UseInfo::TruncatingFloat64(), |
1543 MachineRepresentation::kFloat64); | 1544 MachineRepresentation::kFloat64); |
1544 if (lower()) NodeProperties::ChangeOp(node, Float64Op(node)); | 1545 if (lower()) NodeProperties::ChangeOp(node, Float64Op(node)); |
1545 return; | 1546 return; |
1546 } | 1547 } |
1547 case IrOpcode::kNumberAtan: | 1548 case IrOpcode::kNumberAtan: |
1548 case IrOpcode::kNumberAtanh: | 1549 case IrOpcode::kNumberAtanh: |
1549 case IrOpcode::kNumberCos: | 1550 case IrOpcode::kNumberCos: |
1550 case IrOpcode::kNumberExp: | 1551 case IrOpcode::kNumberExp: |
1551 case IrOpcode::kNumberExpm1: | 1552 case IrOpcode::kNumberExpm1: |
(...skipping 1540 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3092 isolate(), graph()->zone(), callable.descriptor(), 0, flags, | 3093 isolate(), graph()->zone(), callable.descriptor(), 0, flags, |
3093 Operator::kNoProperties); | 3094 Operator::kNoProperties); |
3094 to_number_operator_.set(common()->Call(desc)); | 3095 to_number_operator_.set(common()->Call(desc)); |
3095 } | 3096 } |
3096 return to_number_operator_.get(); | 3097 return to_number_operator_.get(); |
3097 } | 3098 } |
3098 | 3099 |
3099 } // namespace compiler | 3100 } // namespace compiler |
3100 } // namespace internal | 3101 } // namespace internal |
3101 } // namespace v8 | 3102 } // namespace v8 |
OLD | NEW |