MCPcopy Create free account
hub / github.com/WebAssembly/wabt / OnOpcode

Method OnOpcode

src/binary-reader-ir.cc:837–846  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

835}
836
837Result BinaryReaderIR::OnOpcode(Opcode opcode) {
838 std::unique_ptr<CodeMetadataExpr> metadata =
839 code_metadata_queue_.pop_match(current_func_, GetLocation().offset - 1);
840 if (metadata) {
841 return AppendExpr(std::move(metadata));
842 }
843 module_->features_used.simd |= (opcode.GetResultType() == Type::V128);
844 module_->features_used.threads |= (opcode.GetPrefix() == 0xfe);
845 return Result::Ok;
846}
847
848Result BinaryReaderIR::OnAtomicLoadExpr(Opcode opcode,
849 Index memidx,

Callers

nothing calls this directly

Calls 3

pop_matchMethod · 0.80
GetPrefixMethod · 0.80
GetResultTypeMethod · 0.45

Tested by

no test coverage detected