| ... | ... | @@ -6544,6 +6544,12 @@ pub const FuncGen = struct { |
| 6544 | 6544 | |
| 6545 | 6545 | const jmp_table: ?SwitchDispatchInfo.JmpTable = jmp_table: { |
| 6546 | 6546 | if (!is_dispatch_loop) break :jmp_table null; |
| 6547 | |
| 6548 | // Workaround for: |
| 6549 | // * https://github.com/llvm/llvm-project/blob/56905dab7da50bccfcceaeb496b206ff476127e1/llvm/lib/MC/WasmObjectWriter.cpp#L560 |
| 6550 | // * https://github.com/llvm/llvm-project/blob/56905dab7da50bccfcceaeb496b206ff476127e1/llvm/test/MC/WebAssembly/blockaddress.ll |
| 6551 | if (zcu.comp.getTarget().isWasm()) break :jmp_table null; |
| 6552 | |
| 6547 | 6553 | // On a 64-bit target, 1024 pointers in our jump table is about 8K of pointers. This seems just |
| 6548 | 6554 | // about acceptable - it won't fill L1d cache on most CPUs. |
| 6549 | 6555 | const max_table_len = 1024; |