Lines Matching defs:expected
214 "section was %s than expected size "
215 "(%u bytes expected, %zu decoded)",
351 "expected magic word %02x %02x %02x %02x, "
361 "expected version %02x %02x %02x %02x, "
552 "section was %s than expected size "
553 "(%zu bytes expected, %zu decoded)",
1134 errorf(error_offset, "function body count %u mismatch (%u expected)",
1157 errorf(pc(), "data segments count %u mismatch (%u expected)",
1566 ConstantExpression DecodeInitExprForTesting(ValueType expected) {
1567 return consume_init_expr(module_.get(), expected);
1847 // Consumes a byte, and emits an error if it does not equal {expected}.
1848 bool expect_u8(const char* name, uint8_t expected) {
1851 if (value != expected) {
1852 errorf(pos, "expected %s 0x%02x, got 0x%02x", name, expected, value);
1858 ConstantExpression consume_init_expr(WasmModule* module, ValueType expected) {
1863 if (V8_UNLIKELY(!IsSubtypeOf(found, expected, module_.get()))) { \
1865 "type error in init. expression[0] (expected %s, got %s)", \
1866 expected.name().c_str(), found.name().c_str()); \
1929 auto sig = FixedSizeSignature<ValueType>::Returns(expected);
1998 error(position, "expected reference type");
2202 uint32_t consume_element_func_index(ValueType expected) {
2211 if (V8_UNLIKELY(!IsSubtypeOf(entry_type, expected, module_.get()))) {
2213 "Invalid type in element entry: expected %s, got %s instead.",
2214 expected.name().c_str(), entry_type.name().c_str());
2345 ValueType expected) {
2349 return decoder.DecodeInitExprForTesting(expected);