Lines Matching defs:sig
100 WasmDecoder(ModuleEnv* module, FunctionSig* sig, const byte* start,
104 sig_(sig),
163 operand.sig = m->module->functions[operand.index].sig;
171 uint32_t expected = static_cast<uint32_t>(operand.sig->parameter_count());
187 operand.sig = m->module->signatures[operand.index];
195 uint32_t expected = static_cast<uint32_t>(operand.sig->parameter_count());
211 operand.sig = m->module->import_table[operand.index].sig;
219 uint32_t expected = static_cast<uint32_t>(operand.sig->parameter_count());
326 #define DECLARE_OPCODE_CASE(name, opcode, sig) \
328 return kArity_##sig;
345 #define DECLARE_OPCODE_CASE(name, opcode, sig) case kExpr##name:
416 : WasmDecoder(body.module, body.sig, body.start, body.end),
629 FunctionSig* sig = WasmOpcodes::Signature(opcode);
630 if (sig) {
633 switch (sig->parameter_count()) {
635 Value val = Pop(0, sig->GetParam(0));
640 Value rval = Pop(1, sig->GetParam(1));
641 Value lval = Pop(0, sig->GetParam(0));
650 Push(GetReturnType(sig), node);
1007 sig);
1010 Push(GetReturnType(operand.sig), call);
1018 TFNode** buffer = PopArgs(operand.sig);
1023 Push(GetReturnType(operand.sig), call);
1031 TFNode** buffer = PopArgs(operand.sig);
1034 Push(GetReturnType(operand.sig), call);
1085 TFNode** PopArgs(FunctionSig* sig) {
1087 int count = static_cast<int>(sig->parameter_count());
1091 buffer[i + 1] = Pop(i, sig->GetParam(i)).node;
1095 int count = static_cast<int>(sig->parameter_count());
1097 Pop(i, sig->GetParam(i));
1103 LocalType GetReturnType(FunctionSig* sig) {
1104 return sig->return_count() == 0 ? kAstStmt : sig->GetReturn();
1562 if (body.sig) {
1563 os << "// signature: " << *body.sig << std::endl;
1643 os << " // sig #" << operand.index << ": " << *operand.sig;
1645 os << " // arity=" << operand.arity << " sig #" << operand.index;
1652 os << " // import #" << operand.index << ": " << *operand.sig;
1661 os << " // function #" << operand.index << ": " << *operand.sig;