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 1375 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1386 MachineRepresentation::kFloat64); | 1386 MachineRepresentation::kFloat64); |
1387 if (lower()) DeferReplacement(node, lowering->Float64Ceil(node)); | 1387 if (lower()) DeferReplacement(node, lowering->Float64Ceil(node)); |
1388 return; | 1388 return; |
1389 } | 1389 } |
1390 case IrOpcode::kNumberFloor: { | 1390 case IrOpcode::kNumberFloor: { |
1391 VisitUnop(node, UseInfo::TruncatingFloat64(), | 1391 VisitUnop(node, UseInfo::TruncatingFloat64(), |
1392 MachineRepresentation::kFloat64); | 1392 MachineRepresentation::kFloat64); |
1393 if (lower()) DeferReplacement(node, lowering->Float64Floor(node)); | 1393 if (lower()) DeferReplacement(node, lowering->Float64Floor(node)); |
1394 return; | 1394 return; |
1395 } | 1395 } |
1396 case IrOpcode::kNumberLog: { | 1396 case IrOpcode::kNumberLog: |
| 1397 case IrOpcode::kNumberLog1p: { |
1397 VisitUnop(node, UseInfo::TruncatingFloat64(), | 1398 VisitUnop(node, UseInfo::TruncatingFloat64(), |
1398 MachineRepresentation::kFloat64); | 1399 MachineRepresentation::kFloat64); |
1399 if (lower()) NodeProperties::ChangeOp(node, Float64Op(node)); | 1400 if (lower()) NodeProperties::ChangeOp(node, Float64Op(node)); |
1400 return; | 1401 return; |
1401 } | 1402 } |
1402 case IrOpcode::kNumberRound: { | 1403 case IrOpcode::kNumberRound: { |
1403 VisitUnop(node, UseInfo::TruncatingFloat64(), | 1404 VisitUnop(node, UseInfo::TruncatingFloat64(), |
1404 MachineRepresentation::kFloat64); | 1405 MachineRepresentation::kFloat64); |
1405 if (lower()) DeferReplacement(node, lowering->Float64Round(node)); | 1406 if (lower()) DeferReplacement(node, lowering->Float64Round(node)); |
1406 return; | 1407 return; |
(...skipping 1432 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2839 isolate(), graph()->zone(), callable.descriptor(), 0, flags, | 2840 isolate(), graph()->zone(), callable.descriptor(), 0, flags, |
2840 Operator::kNoProperties); | 2841 Operator::kNoProperties); |
2841 to_number_operator_.set(common()->Call(desc)); | 2842 to_number_operator_.set(common()->Call(desc)); |
2842 } | 2843 } |
2843 return to_number_operator_.get(); | 2844 return to_number_operator_.get(); |
2844 } | 2845 } |
2845 | 2846 |
2846 } // namespace compiler | 2847 } // namespace compiler |
2847 } // namespace internal | 2848 } // namespace internal |
2848 } // namespace v8 | 2849 } // namespace v8 |
OLD | NEW |