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/base/bits.h" | 9 #include "src/base/bits.h" |
10 #include "src/code-factory.h" | 10 #include "src/code-factory.h" |
(...skipping 1370 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1381 case IrOpcode::kFloat64Mul: | 1381 case IrOpcode::kFloat64Mul: |
1382 case IrOpcode::kFloat64Div: | 1382 case IrOpcode::kFloat64Div: |
1383 case IrOpcode::kFloat64Mod: | 1383 case IrOpcode::kFloat64Mod: |
1384 case IrOpcode::kFloat64Min: | 1384 case IrOpcode::kFloat64Min: |
1385 return VisitFloat64Binop(node); | 1385 return VisitFloat64Binop(node); |
1386 case IrOpcode::kFloat64Abs: | 1386 case IrOpcode::kFloat64Abs: |
1387 case IrOpcode::kFloat64Sqrt: | 1387 case IrOpcode::kFloat64Sqrt: |
1388 case IrOpcode::kFloat64RoundDown: | 1388 case IrOpcode::kFloat64RoundDown: |
1389 case IrOpcode::kFloat64RoundTruncate: | 1389 case IrOpcode::kFloat64RoundTruncate: |
1390 case IrOpcode::kFloat64RoundTiesAway: | 1390 case IrOpcode::kFloat64RoundTiesAway: |
| 1391 case IrOpcode::kFloat64RoundUp: |
1391 return VisitUnop(node, UseInfo::Float64(), NodeOutputInfo::Float64()); | 1392 return VisitUnop(node, UseInfo::Float64(), NodeOutputInfo::Float64()); |
1392 case IrOpcode::kFloat64Equal: | 1393 case IrOpcode::kFloat64Equal: |
1393 case IrOpcode::kFloat64LessThan: | 1394 case IrOpcode::kFloat64LessThan: |
1394 case IrOpcode::kFloat64LessThanOrEqual: | 1395 case IrOpcode::kFloat64LessThanOrEqual: |
1395 return VisitFloat64Cmp(node); | 1396 return VisitFloat64Cmp(node); |
1396 case IrOpcode::kFloat64ExtractLowWord32: | 1397 case IrOpcode::kFloat64ExtractLowWord32: |
1397 case IrOpcode::kFloat64ExtractHighWord32: | 1398 case IrOpcode::kFloat64ExtractHighWord32: |
1398 return VisitUnop(node, UseInfo::Float64(), NodeOutputInfo::Int32()); | 1399 return VisitUnop(node, UseInfo::Float64(), NodeOutputInfo::Int32()); |
1399 case IrOpcode::kFloat64InsertLowWord32: | 1400 case IrOpcode::kFloat64InsertLowWord32: |
1400 case IrOpcode::kFloat64InsertHighWord32: | 1401 case IrOpcode::kFloat64InsertHighWord32: |
(...skipping 534 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1935 ReplaceEffectUses(node, comparison); | 1936 ReplaceEffectUses(node, comparison); |
1936 node->ReplaceInput(0, comparison); | 1937 node->ReplaceInput(0, comparison); |
1937 node->ReplaceInput(1, jsgraph()->SmiConstant(EQUAL)); | 1938 node->ReplaceInput(1, jsgraph()->SmiConstant(EQUAL)); |
1938 node->TrimInputCount(2); | 1939 node->TrimInputCount(2); |
1939 NodeProperties::ChangeOp(node, machine()->IntLessThanOrEqual()); | 1940 NodeProperties::ChangeOp(node, machine()->IntLessThanOrEqual()); |
1940 } | 1941 } |
1941 | 1942 |
1942 } // namespace compiler | 1943 } // namespace compiler |
1943 } // namespace internal | 1944 } // namespace internal |
1944 } // namespace v8 | 1945 } // namespace v8 |
OLD | NEW |