| Index: src/compiler/wasm-compiler.cc
|
| diff --git a/src/compiler/wasm-compiler.cc b/src/compiler/wasm-compiler.cc
|
| index 45929b34dd846782097b260561047314ebde42df..a5d03bb90812359d2a77f008d8f2ad4730878308 100644
|
| --- a/src/compiler/wasm-compiler.cc
|
| +++ b/src/compiler/wasm-compiler.cc
|
| @@ -3107,15 +3107,24 @@ Node* WasmGraphBuilder::SimdOp(wasm::WasmOpcode opcode,
|
| case wasm::kExprI32x4Splat:
|
| return graph()->NewNode(jsgraph()->machine()->CreateInt32x4(), inputs[0],
|
| inputs[0], inputs[0], inputs[0]);
|
| + case wasm::kExprI32x4ExtractLane:
|
| + return graph()->NewNode(jsgraph()->machine()->Int32x4ExtractLane(),
|
| + inputs[0], inputs[1]);
|
| + case wasm::kExprI32x4ReplaceLane:
|
| + return graph()->NewNode(jsgraph()->machine()->Int32x4ReplaceLane(),
|
| + inputs[0], inputs[1], inputs[2]);
|
| case wasm::kExprI32x4Add:
|
| return graph()->NewNode(jsgraph()->machine()->Int32x4Add(), inputs[0],
|
| inputs[1]);
|
| - case wasm::kExprF32x4ExtractLane:
|
| - return graph()->NewNode(jsgraph()->machine()->Float32x4ExtractLane(),
|
| - inputs[0], inputs[1]);
|
| + case wasm::kExprI32x4Sub:
|
| + return graph()->NewNode(jsgraph()->machine()->Int32x4Sub(), inputs[0],
|
| + inputs[1]);
|
| case wasm::kExprF32x4Splat:
|
| return graph()->NewNode(jsgraph()->machine()->CreateFloat32x4(),
|
| inputs[0], inputs[0], inputs[0], inputs[0]);
|
| + case wasm::kExprF32x4ExtractLane:
|
| + return graph()->NewNode(jsgraph()->machine()->Float32x4ExtractLane(),
|
| + inputs[0], inputs[1]);
|
| case wasm::kExprF32x4Add:
|
| return graph()->NewNode(jsgraph()->machine()->Float32x4Add(), inputs[0],
|
| inputs[1]);
|
| @@ -3124,20 +3133,6 @@ Node* WasmGraphBuilder::SimdOp(wasm::WasmOpcode opcode,
|
| }
|
| }
|
|
|
| -Node* WasmGraphBuilder::SimdExtractLane(wasm::WasmOpcode opcode, uint8_t lane,
|
| - Node* input) {
|
| - switch (opcode) {
|
| - case wasm::kExprI32x4ExtractLane:
|
| - return graph()->NewNode(jsgraph()->machine()->Int32x4ExtractLane(), input,
|
| - Int32Constant(lane));
|
| - case wasm::kExprF32x4ExtractLane:
|
| - return graph()->NewNode(jsgraph()->machine()->Float32x4ExtractLane(),
|
| - input, Int32Constant(lane));
|
| - default:
|
| - return graph()->NewNode(UnsupportedOpcode(opcode), nullptr);
|
| - }
|
| -}
|
| -
|
| static void RecordFunctionCompilation(CodeEventListener::LogEventsAndTags tag,
|
| Isolate* isolate, Handle<Code> code,
|
| const char* message, uint32_t index,
|
|
|