Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(188)

Side by Side Diff: src/compiler/instruction-selector.cc

Issue 2827143002: [WASM SIMD] Remove opcodes that are slow on some platforms. (Closed)
Patch Set: Remove stray tests. Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/compiler/arm/instruction-selector-arm.cc ('k') | src/compiler/machine-operator.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/assembler-inl.h" 9 #include "src/assembler-inl.h"
10 #include "src/base/adapters.h" 10 #include "src/base/adapters.h"
(...skipping 1487 matching lines...) Expand 10 before | Expand all | Expand 10 after
1498 case IrOpcode::kF32x4SConvertI32x4: 1498 case IrOpcode::kF32x4SConvertI32x4:
1499 return MarkAsSimd128(node), VisitF32x4SConvertI32x4(node); 1499 return MarkAsSimd128(node), VisitF32x4SConvertI32x4(node);
1500 case IrOpcode::kF32x4UConvertI32x4: 1500 case IrOpcode::kF32x4UConvertI32x4:
1501 return MarkAsSimd128(node), VisitF32x4UConvertI32x4(node); 1501 return MarkAsSimd128(node), VisitF32x4UConvertI32x4(node);
1502 case IrOpcode::kF32x4Abs: 1502 case IrOpcode::kF32x4Abs:
1503 return MarkAsSimd128(node), VisitF32x4Abs(node); 1503 return MarkAsSimd128(node), VisitF32x4Abs(node);
1504 case IrOpcode::kF32x4Neg: 1504 case IrOpcode::kF32x4Neg:
1505 return MarkAsSimd128(node), VisitF32x4Neg(node); 1505 return MarkAsSimd128(node), VisitF32x4Neg(node);
1506 case IrOpcode::kF32x4RecipApprox: 1506 case IrOpcode::kF32x4RecipApprox:
1507 return MarkAsSimd128(node), VisitF32x4RecipApprox(node); 1507 return MarkAsSimd128(node), VisitF32x4RecipApprox(node);
1508 case IrOpcode::kF32x4RecipRefine: 1508 case IrOpcode::kF32x4RecipSqrtApprox:
1509 return MarkAsSimd128(node), VisitF32x4RecipRefine(node); 1509 return MarkAsSimd128(node), VisitF32x4RecipSqrtApprox(node);
1510 case IrOpcode::kF32x4Add: 1510 case IrOpcode::kF32x4Add:
1511 return MarkAsSimd128(node), VisitF32x4Add(node); 1511 return MarkAsSimd128(node), VisitF32x4Add(node);
1512 case IrOpcode::kF32x4Sub: 1512 case IrOpcode::kF32x4Sub:
1513 return MarkAsSimd128(node), VisitF32x4Sub(node); 1513 return MarkAsSimd128(node), VisitF32x4Sub(node);
1514 case IrOpcode::kF32x4Mul: 1514 case IrOpcode::kF32x4Mul:
1515 return MarkAsSimd128(node), VisitF32x4Mul(node); 1515 return MarkAsSimd128(node), VisitF32x4Mul(node);
1516 case IrOpcode::kF32x4Min: 1516 case IrOpcode::kF32x4Min:
1517 return MarkAsSimd128(node), VisitF32x4Min(node); 1517 return MarkAsSimd128(node), VisitF32x4Min(node);
1518 case IrOpcode::kF32x4Max: 1518 case IrOpcode::kF32x4Max:
1519 return MarkAsSimd128(node), VisitF32x4Max(node); 1519 return MarkAsSimd128(node), VisitF32x4Max(node);
1520 case IrOpcode::kF32x4RecipSqrtApprox:
1521 return MarkAsSimd128(node), VisitF32x4RecipSqrtApprox(node);
1522 case IrOpcode::kF32x4RecipSqrtRefine:
1523 return MarkAsSimd128(node), VisitF32x4RecipSqrtRefine(node);
1524 case IrOpcode::kF32x4Eq: 1520 case IrOpcode::kF32x4Eq:
1525 return MarkAsSimd1x4(node), VisitF32x4Eq(node); 1521 return MarkAsSimd1x4(node), VisitF32x4Eq(node);
1526 case IrOpcode::kF32x4Ne: 1522 case IrOpcode::kF32x4Ne:
1527 return MarkAsSimd1x4(node), VisitF32x4Ne(node); 1523 return MarkAsSimd1x4(node), VisitF32x4Ne(node);
1528 case IrOpcode::kF32x4Lt: 1524 case IrOpcode::kF32x4Lt:
1529 return MarkAsSimd1x4(node), VisitF32x4Lt(node); 1525 return MarkAsSimd1x4(node), VisitF32x4Lt(node);
1530 case IrOpcode::kF32x4Le: 1526 case IrOpcode::kF32x4Le:
1531 return MarkAsSimd1x4(node), VisitF32x4Le(node); 1527 return MarkAsSimd1x4(node), VisitF32x4Le(node);
1532 case IrOpcode::kI32x4Splat: 1528 case IrOpcode::kI32x4Splat:
1533 return MarkAsSimd128(node), VisitI32x4Splat(node); 1529 return MarkAsSimd128(node), VisitI32x4Splat(node);
(...skipping 561 matching lines...) Expand 10 before | Expand all | Expand 10 after
2095 } 2091 }
2096 2092
2097 void InstructionSelector::VisitF32x4Abs(Node* node) { UNIMPLEMENTED(); } 2093 void InstructionSelector::VisitF32x4Abs(Node* node) { UNIMPLEMENTED(); }
2098 2094
2099 void InstructionSelector::VisitF32x4Neg(Node* node) { UNIMPLEMENTED(); } 2095 void InstructionSelector::VisitF32x4Neg(Node* node) { UNIMPLEMENTED(); }
2100 2096
2101 void InstructionSelector::VisitF32x4RecipSqrtApprox(Node* node) { 2097 void InstructionSelector::VisitF32x4RecipSqrtApprox(Node* node) {
2102 UNIMPLEMENTED(); 2098 UNIMPLEMENTED();
2103 } 2099 }
2104 2100
2105 void InstructionSelector::VisitF32x4RecipSqrtRefine(Node* node) {
2106 UNIMPLEMENTED();
2107 }
2108
2109 void InstructionSelector::VisitF32x4Add(Node* node) { UNIMPLEMENTED(); } 2101 void InstructionSelector::VisitF32x4Add(Node* node) { UNIMPLEMENTED(); }
2110 2102
2111 void InstructionSelector::VisitF32x4Sub(Node* node) { UNIMPLEMENTED(); } 2103 void InstructionSelector::VisitF32x4Sub(Node* node) { UNIMPLEMENTED(); }
2112 2104
2113 void InstructionSelector::VisitF32x4Mul(Node* node) { UNIMPLEMENTED(); } 2105 void InstructionSelector::VisitF32x4Mul(Node* node) { UNIMPLEMENTED(); }
2114 2106
2115 void InstructionSelector::VisitF32x4Max(Node* node) { UNIMPLEMENTED(); } 2107 void InstructionSelector::VisitF32x4Max(Node* node) { UNIMPLEMENTED(); }
2116 2108
2117 void InstructionSelector::VisitF32x4Min(Node* node) { UNIMPLEMENTED(); } 2109 void InstructionSelector::VisitF32x4Min(Node* node) { UNIMPLEMENTED(); }
2118 2110
2119 void InstructionSelector::VisitF32x4RecipApprox(Node* node) { UNIMPLEMENTED(); } 2111 void InstructionSelector::VisitF32x4RecipApprox(Node* node) { UNIMPLEMENTED(); }
2120 2112
2121 void InstructionSelector::VisitF32x4RecipRefine(Node* node) { UNIMPLEMENTED(); }
2122
2123 void InstructionSelector::VisitF32x4Eq(Node* node) { UNIMPLEMENTED(); } 2113 void InstructionSelector::VisitF32x4Eq(Node* node) { UNIMPLEMENTED(); }
2124 2114
2125 void InstructionSelector::VisitF32x4Ne(Node* node) { UNIMPLEMENTED(); } 2115 void InstructionSelector::VisitF32x4Ne(Node* node) { UNIMPLEMENTED(); }
2126 2116
2127 void InstructionSelector::VisitF32x4Lt(Node* node) { UNIMPLEMENTED(); } 2117 void InstructionSelector::VisitF32x4Lt(Node* node) { UNIMPLEMENTED(); }
2128 2118
2129 void InstructionSelector::VisitF32x4Le(Node* node) { UNIMPLEMENTED(); } 2119 void InstructionSelector::VisitF32x4Le(Node* node) { UNIMPLEMENTED(); }
2130 #endif // V8_TARGET_ARCH_ARM && !V8_TARGET_ARCH_MIPS && !V8_TARGET_ARCH_MIPS64 2120 #endif // V8_TARGET_ARCH_ARM && !V8_TARGET_ARCH_MIPS && !V8_TARGET_ARCH_MIPS64
2131 2121
2132 #if !V8_TARGET_ARCH_X64 && !V8_TARGET_ARCH_ARM && !V8_TARGET_ARCH_IA32 && \ 2122 #if !V8_TARGET_ARCH_X64 && !V8_TARGET_ARCH_ARM && !V8_TARGET_ARCH_IA32 && \
(...skipping 674 matching lines...) Expand 10 before | Expand all | Expand 10 after
2807 return new (instruction_zone()) FrameStateDescriptor( 2797 return new (instruction_zone()) FrameStateDescriptor(
2808 instruction_zone(), state_info.type(), state_info.bailout_id(), 2798 instruction_zone(), state_info.type(), state_info.bailout_id(),
2809 state_info.state_combine(), parameters, locals, stack, 2799 state_info.state_combine(), parameters, locals, stack,
2810 state_info.shared_info(), outer_state); 2800 state_info.shared_info(), outer_state);
2811 } 2801 }
2812 2802
2813 2803
2814 } // namespace compiler 2804 } // namespace compiler
2815 } // namespace internal 2805 } // namespace internal
2816 } // namespace v8 2806 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/arm/instruction-selector-arm.cc ('k') | src/compiler/machine-operator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698