| 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 1371 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1382 return VisitAtomicStore(node); | 1382 return VisitAtomicStore(node); |
| 1383 case IrOpcode::kProtectedLoad: | 1383 case IrOpcode::kProtectedLoad: |
| 1384 return VisitProtectedLoad(node); | 1384 return VisitProtectedLoad(node); |
| 1385 case IrOpcode::kUnsafePointerAdd: | 1385 case IrOpcode::kUnsafePointerAdd: |
| 1386 MarkAsRepresentation(MachineType::PointerRepresentation(), node); | 1386 MarkAsRepresentation(MachineType::PointerRepresentation(), node); |
| 1387 return VisitUnsafePointerAdd(node); | 1387 return VisitUnsafePointerAdd(node); |
| 1388 case IrOpcode::kCreateInt32x4: | 1388 case IrOpcode::kCreateInt32x4: |
| 1389 return MarkAsSimd128(node), VisitCreateInt32x4(node); | 1389 return MarkAsSimd128(node), VisitCreateInt32x4(node); |
| 1390 case IrOpcode::kInt32x4ExtractLane: | 1390 case IrOpcode::kInt32x4ExtractLane: |
| 1391 return MarkAsWord32(node), VisitInt32x4ExtractLane(node); | 1391 return MarkAsWord32(node), VisitInt32x4ExtractLane(node); |
| 1392 case IrOpcode::kInt32x4ReplaceLane: |
| 1393 return MarkAsSimd128(node), VisitInt32x4ReplaceLane(node); |
| 1394 case IrOpcode::kInt32x4Add: |
| 1395 return MarkAsSimd128(node), VisitInt32x4Add(node); |
| 1396 case IrOpcode::kInt32x4Sub: |
| 1397 return MarkAsSimd128(node), VisitInt32x4Sub(node); |
| 1392 default: | 1398 default: |
| 1393 V8_Fatal(__FILE__, __LINE__, "Unexpected operator #%d:%s @ node #%d", | 1399 V8_Fatal(__FILE__, __LINE__, "Unexpected operator #%d:%s @ node #%d", |
| 1394 node->opcode(), node->op()->mnemonic(), node->id()); | 1400 node->opcode(), node->op()->mnemonic(), node->id()); |
| 1395 break; | 1401 break; |
| 1396 } | 1402 } |
| 1397 } | 1403 } |
| 1398 | 1404 |
| 1399 void InstructionSelector::VisitLoadStackPointer(Node* node) { | 1405 void InstructionSelector::VisitLoadStackPointer(Node* node) { |
| 1400 OperandGenerator g(this); | 1406 OperandGenerator g(this); |
| 1401 Emit(kArchStackPointer, g.DefineAsRegister(node)); | 1407 Emit(kArchStackPointer, g.DefineAsRegister(node)); |
| (...skipping 313 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1715 | 1721 |
| 1716 void InstructionSelector::VisitWord32PairSar(Node* node) { UNIMPLEMENTED(); } | 1722 void InstructionSelector::VisitWord32PairSar(Node* node) { UNIMPLEMENTED(); } |
| 1717 #endif // V8_TARGET_ARCH_64_BIT | 1723 #endif // V8_TARGET_ARCH_64_BIT |
| 1718 | 1724 |
| 1719 #if !V8_TARGET_ARCH_X64 | 1725 #if !V8_TARGET_ARCH_X64 |
| 1720 void InstructionSelector::VisitCreateInt32x4(Node* node) { UNIMPLEMENTED(); } | 1726 void InstructionSelector::VisitCreateInt32x4(Node* node) { UNIMPLEMENTED(); } |
| 1721 | 1727 |
| 1722 void InstructionSelector::VisitInt32x4ExtractLane(Node* node) { | 1728 void InstructionSelector::VisitInt32x4ExtractLane(Node* node) { |
| 1723 UNIMPLEMENTED(); | 1729 UNIMPLEMENTED(); |
| 1724 } | 1730 } |
| 1731 |
| 1732 void InstructionSelector::VisitInt32x4ReplaceLane(Node* node) { |
| 1733 UNIMPLEMENTED(); |
| 1734 } |
| 1735 |
| 1736 void InstructionSelector::VisitInt32x4Add(Node* node) { UNIMPLEMENTED(); } |
| 1737 |
| 1738 void InstructionSelector::VisitInt32x4Sub(Node* node) { UNIMPLEMENTED(); } |
| 1725 #endif // !V8_TARGET_ARCH_X64 | 1739 #endif // !V8_TARGET_ARCH_X64 |
| 1726 | 1740 |
| 1727 void InstructionSelector::VisitFinishRegion(Node* node) { EmitIdentity(node); } | 1741 void InstructionSelector::VisitFinishRegion(Node* node) { EmitIdentity(node); } |
| 1728 | 1742 |
| 1729 void InstructionSelector::VisitParameter(Node* node) { | 1743 void InstructionSelector::VisitParameter(Node* node) { |
| 1730 OperandGenerator g(this); | 1744 OperandGenerator g(this); |
| 1731 int index = ParameterIndexOf(node->op()); | 1745 int index = ParameterIndexOf(node->op()); |
| 1732 InstructionOperand op = | 1746 InstructionOperand op = |
| 1733 linkage()->ParameterHasSecondaryLocation(index) | 1747 linkage()->ParameterHasSecondaryLocation(index) |
| 1734 ? g.DefineAsDualLocation( | 1748 ? g.DefineAsDualLocation( |
| (...skipping 409 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2144 return new (instruction_zone()) FrameStateDescriptor( | 2158 return new (instruction_zone()) FrameStateDescriptor( |
| 2145 instruction_zone(), state_info.type(), state_info.bailout_id(), | 2159 instruction_zone(), state_info.type(), state_info.bailout_id(), |
| 2146 state_info.state_combine(), parameters, locals, stack, | 2160 state_info.state_combine(), parameters, locals, stack, |
| 2147 state_info.shared_info(), outer_state); | 2161 state_info.shared_info(), outer_state); |
| 2148 } | 2162 } |
| 2149 | 2163 |
| 2150 | 2164 |
| 2151 } // namespace compiler | 2165 } // namespace compiler |
| 2152 } // namespace internal | 2166 } // namespace internal |
| 2153 } // namespace v8 | 2167 } // namespace v8 |
| OLD | NEW |