| 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/instruction-selector.h" | 5 #include "src/compiler/instruction-selector.h" |
| 6 | 6 |
| 7 #include <limits> | 7 #include <limits> |
| 8 | 8 |
| 9 #include "src/base/adapters.h" | 9 #include "src/base/adapters.h" |
| 10 #include "src/compiler/instruction-selector-impl.h" | 10 #include "src/compiler/instruction-selector-impl.h" |
| (...skipping 681 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 692 case IrOpcode::kChangeInt32ToInt64: | 692 case IrOpcode::kChangeInt32ToInt64: |
| 693 return MarkAsWord64(node), VisitChangeInt32ToInt64(node); | 693 return MarkAsWord64(node), VisitChangeInt32ToInt64(node); |
| 694 case IrOpcode::kChangeUint32ToUint64: | 694 case IrOpcode::kChangeUint32ToUint64: |
| 695 return MarkAsWord64(node), VisitChangeUint32ToUint64(node); | 695 return MarkAsWord64(node), VisitChangeUint32ToUint64(node); |
| 696 case IrOpcode::kTruncateFloat64ToFloat32: | 696 case IrOpcode::kTruncateFloat64ToFloat32: |
| 697 return MarkAsFloat32(node), VisitTruncateFloat64ToFloat32(node); | 697 return MarkAsFloat32(node), VisitTruncateFloat64ToFloat32(node); |
| 698 case IrOpcode::kTruncateFloat64ToInt32: | 698 case IrOpcode::kTruncateFloat64ToInt32: |
| 699 return MarkAsWord32(node), VisitTruncateFloat64ToInt32(node); | 699 return MarkAsWord32(node), VisitTruncateFloat64ToInt32(node); |
| 700 case IrOpcode::kTruncateInt64ToInt32: | 700 case IrOpcode::kTruncateInt64ToInt32: |
| 701 return MarkAsWord32(node), VisitTruncateInt64ToInt32(node); | 701 return MarkAsWord32(node), VisitTruncateInt64ToInt32(node); |
| 702 case IrOpcode::kTruncateInt64ToFloat64: |
| 703 return MarkAsFloat64(node), VisitTruncateInt64ToFloat64(node); |
| 702 case IrOpcode::kFloat32Add: | 704 case IrOpcode::kFloat32Add: |
| 703 return MarkAsFloat32(node), VisitFloat32Add(node); | 705 return MarkAsFloat32(node), VisitFloat32Add(node); |
| 704 case IrOpcode::kFloat32Sub: | 706 case IrOpcode::kFloat32Sub: |
| 705 return MarkAsFloat32(node), VisitFloat32Sub(node); | 707 return MarkAsFloat32(node), VisitFloat32Sub(node); |
| 706 case IrOpcode::kFloat32Mul: | 708 case IrOpcode::kFloat32Mul: |
| 707 return MarkAsFloat32(node), VisitFloat32Mul(node); | 709 return MarkAsFloat32(node), VisitFloat32Mul(node); |
| 708 case IrOpcode::kFloat32Div: | 710 case IrOpcode::kFloat32Div: |
| 709 return MarkAsFloat32(node), VisitFloat32Div(node); | 711 return MarkAsFloat32(node), VisitFloat32Div(node); |
| 710 case IrOpcode::kFloat32Min: | 712 case IrOpcode::kFloat32Min: |
| 711 return MarkAsFloat32(node), VisitFloat32Min(node); | 713 return MarkAsFloat32(node), VisitFloat32Min(node); |
| (...skipping 414 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1126 for (StateValuesAccess::TypedNode input_node : StateValuesAccess(stack)) { | 1128 for (StateValuesAccess::TypedNode input_node : StateValuesAccess(stack)) { |
| 1127 inputs->push_back(OperandForDeopt(&g, input_node.node, kind)); | 1129 inputs->push_back(OperandForDeopt(&g, input_node.node, kind)); |
| 1128 descriptor->SetType(value_index++, input_node.type); | 1130 descriptor->SetType(value_index++, input_node.type); |
| 1129 } | 1131 } |
| 1130 DCHECK(value_index == descriptor->GetSize()); | 1132 DCHECK(value_index == descriptor->GetSize()); |
| 1131 } | 1133 } |
| 1132 | 1134 |
| 1133 } // namespace compiler | 1135 } // namespace compiler |
| 1134 } // namespace internal | 1136 } // namespace internal |
| 1135 } // namespace v8 | 1137 } // namespace v8 |
| OLD | NEW |