Index: src/wasm/ast-decoder.cc |
diff --git a/src/wasm/ast-decoder.cc b/src/wasm/ast-decoder.cc |
index b8a86c357badb86cda8244c2ecb9c4d878a3cafb..fccf29e9ee9dd56a2681182a96a5c6f655c73f9b 100644 |
--- a/src/wasm/ast-decoder.cc |
+++ b/src/wasm/ast-decoder.cc |
@@ -534,6 +534,8 @@ class SR_WasmDecoder : public WasmDecoder { |
return builder_->Float32Constant(0); |
case kAstF64: |
return builder_->Float64Constant(0); |
+ case kAstS128: |
+ return builder_->DefaultS128Value(); |
default: |
UNREACHABLE(); |
return nullptr; |
@@ -602,6 +604,7 @@ class SR_WasmDecoder : public WasmDecoder { |
while (true) { // decoding loop. |
int len = 1; |
WasmOpcode opcode = static_cast<WasmOpcode>(*pc_); |
+ if (builder_) builder_->set_is_simd_function(WasmOpcodes::IsSimd(opcode)); |
TRACE(" @%-6d #%02x:%-20s|", startrel(pc_), opcode, |
WasmOpcodes::ShortOpcodeName(opcode)); |