Index: src/wasm/ast-decoder.cc |
diff --git a/src/wasm/ast-decoder.cc b/src/wasm/ast-decoder.cc |
index df52ede32fa62147bbb2eb127d3ed25e00fec406..bf5eba655689d10965876c4d7a1dceb07b6a7c4e 100644 |
--- a/src/wasm/ast-decoder.cc |
+++ b/src/wasm/ast-decoder.cc |
@@ -1331,8 +1331,9 @@ class WasmFullDecoder : public WasmDecoder { |
unsigned ExtractLane(WasmOpcode opcode, LocalType type) { |
LaneOperand operand(this, pc_); |
if (Validate(pc_, operand)) { |
- TFNode* input = Pop(0, LocalType::kSimd128).node; |
- TFNode* node = BUILD(SimdExtractLane, opcode, operand.lane, input); |
+ compiler::NodeVector inputs(1, zone_); |
+ inputs[0] = Pop(0, LocalType::kSimd128).node; |
+ TFNode* node = BUILD(SimdLaneOp, opcode, operand.lane, inputs); |
Push(type, node); |
} |
return operand.length; |
@@ -1341,10 +1342,10 @@ class WasmFullDecoder : public WasmDecoder { |
unsigned ReplaceLane(WasmOpcode opcode, LocalType type) { |
LaneOperand operand(this, pc_); |
if (Validate(pc_, operand)) { |
- TFNode* input = Pop(0, LocalType::kSimd128).node; |
- TFNode* replacement = Pop(1, type).node; |
- TFNode* node = |
- BUILD(SimdReplaceLane, opcode, operand.lane, input, replacement); |
+ compiler::NodeVector inputs(2, zone_); |
+ inputs[1] = Pop(1, type).node; |
+ inputs[0] = Pop(0, LocalType::kSimd128).node; |
+ TFNode* node = BUILD(SimdLaneOp, opcode, operand.lane, inputs); |
Push(LocalType::kSimd128, node); |
} |
return operand.length; |