| 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::kNumberAtan2: { |
| 1397 VisitBinop(node, UseInfo::TruncatingFloat64(), |
| 1398 MachineRepresentation::kFloat64); |
| 1399 if (lower()) NodeProperties::ChangeOp(node, Float64Op(node)); |
| 1400 return; |
| 1401 } |
| 1402 case IrOpcode::kNumberAtan: |
| 1396 case IrOpcode::kNumberLog: | 1403 case IrOpcode::kNumberLog: |
| 1397 case IrOpcode::kNumberLog1p: { | 1404 case IrOpcode::kNumberLog1p: { |
| 1398 VisitUnop(node, UseInfo::TruncatingFloat64(), | 1405 VisitUnop(node, UseInfo::TruncatingFloat64(), |
| 1399 MachineRepresentation::kFloat64); | 1406 MachineRepresentation::kFloat64); |
| 1400 if (lower()) NodeProperties::ChangeOp(node, Float64Op(node)); | 1407 if (lower()) NodeProperties::ChangeOp(node, Float64Op(node)); |
| 1401 return; | 1408 return; |
| 1402 } | 1409 } |
| 1403 case IrOpcode::kNumberRound: { | 1410 case IrOpcode::kNumberRound: { |
| 1404 VisitUnop(node, UseInfo::TruncatingFloat64(), | 1411 VisitUnop(node, UseInfo::TruncatingFloat64(), |
| 1405 MachineRepresentation::kFloat64); | 1412 MachineRepresentation::kFloat64); |
| (...skipping 1434 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2840 isolate(), graph()->zone(), callable.descriptor(), 0, flags, | 2847 isolate(), graph()->zone(), callable.descriptor(), 0, flags, |
| 2841 Operator::kNoProperties); | 2848 Operator::kNoProperties); |
| 2842 to_number_operator_.set(common()->Call(desc)); | 2849 to_number_operator_.set(common()->Call(desc)); |
| 2843 } | 2850 } |
| 2844 return to_number_operator_.get(); | 2851 return to_number_operator_.get(); |
| 2845 } | 2852 } |
| 2846 | 2853 |
| 2847 } // namespace compiler | 2854 } // namespace compiler |
| 2848 } // namespace internal | 2855 } // namespace internal |
| 2849 } // namespace v8 | 2856 } // namespace v8 |
| OLD | NEW |