| Index: src/compiler/wasm-compiler.cc
|
| diff --git a/src/compiler/wasm-compiler.cc b/src/compiler/wasm-compiler.cc
|
| index 59c9990e7d7e7e2a6837faf086e4e700bc384d13..ce872b4b8570d59978d22a85f0795d05c6e67d73 100644
|
| --- a/src/compiler/wasm-compiler.cc
|
| +++ b/src/compiler/wasm-compiler.cc
|
| @@ -3103,9 +3103,6 @@ Node* WasmGraphBuilder::SimdOp(wasm::WasmOpcode opcode,
|
| 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::kExprF32x4Splat:
|
| return graph()->NewNode(jsgraph()->machine()->CreateFloat32x4(),
|
| inputs[0], inputs[0], inputs[0], inputs[0]);
|
| @@ -3131,6 +3128,20 @@ Node* WasmGraphBuilder::SimdExtractLane(wasm::WasmOpcode opcode, uint8_t lane,
|
| }
|
| }
|
|
|
| +Node* WasmGraphBuilder::SimdReplaceLane(wasm::WasmOpcode opcode, uint8_t lane,
|
| + Node* input, Node* replacement) {
|
| + switch (opcode) {
|
| + case wasm::kExprI32x4ReplaceLane:
|
| + return graph()->NewNode(jsgraph()->machine()->Int32x4ReplaceLane(), input,
|
| + Int32Constant(lane), replacement);
|
| + case wasm::kExprF32x4ReplaceLane:
|
| + return graph()->NewNode(jsgraph()->machine()->Float32x4ReplaceLane(),
|
| + input, Int32Constant(lane), replacement);
|
| + default:
|
| + return graph()->NewNode(UnsupportedOpcode(opcode), nullptr);
|
| + }
|
| +}
|
| +
|
| static void RecordFunctionCompilation(CodeEventListener::LogEventsAndTags tag,
|
| Isolate* isolate, Handle<Code> code,
|
| const char* message, uint32_t index,
|
|
|