Commit 788cbf2
authored
Refine aot call_indirect opcode translation (#492)
Re-implement aot call_indirect opcode translation: when calling non-import function, translate it by LLVM call IR to call the function in AOTed code, so as to avoid calling runtime aot_call_indirect API which is much slower. For import function, keep calling aot_call_indirect API due to the possible pointer/string argument conversion.
And add prompt info while app heap is corrupted, change emit_leb to emit_uint32 inter fast-interp to refine footprint.
Signed-off-by: Wenyong Huang <wenyong.huang@intel.com>1 parent f2a63d8 commit 788cbf2
15 files changed
Lines changed: 529 additions & 191 deletions
File tree
- core
- iwasm
- aot
- common
- compilation
- interpreter
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1381 | 1381 | | |
1382 | 1382 | | |
1383 | 1383 | | |
1384 | | - | |
| 1384 | + | |
| 1385 | + | |
| 1386 | + | |
| 1387 | + | |
| 1388 | + | |
| 1389 | + | |
| 1390 | + | |
| 1391 | + | |
| 1392 | + | |
| 1393 | + | |
| 1394 | + | |
1385 | 1395 | | |
1386 | 1396 | | |
1387 | 1397 | | |
| |||
1804 | 1814 | | |
1805 | 1815 | | |
1806 | 1816 | | |
1807 | | - | |
1808 | 1817 | | |
1809 | 1818 | | |
1810 | 1819 | | |
| |||
1816 | 1825 | | |
1817 | 1826 | | |
1818 | 1827 | | |
1819 | | - | |
1820 | | - | |
| 1828 | + | |
1821 | 1829 | | |
1822 | 1830 | | |
1823 | 1831 | | |
| |||
1844 | 1852 | | |
1845 | 1853 | | |
1846 | 1854 | | |
1847 | | - | |
1848 | | - | |
1849 | | - | |
1850 | | - | |
1851 | | - | |
1852 | | - | |
1853 | | - | |
1854 | | - | |
1855 | | - | |
| 1855 | + | |
| 1856 | + | |
1856 | 1857 | | |
1857 | 1858 | | |
1858 | 1859 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
521 | 521 | | |
522 | 522 | | |
523 | 523 | | |
524 | | - | |
525 | 524 | | |
526 | 525 | | |
527 | 526 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3327 | 3327 | | |
3328 | 3328 | | |
3329 | 3329 | | |
3330 | | - | |
3331 | | - | |
3332 | | - | |
| 3330 | + | |
3333 | 3331 | | |
3334 | 3332 | | |
3335 | 3333 | | |
3336 | | - | |
3337 | | - | |
| 3334 | + | |
3338 | 3335 | | |
3339 | 3336 | | |
3340 | 3337 | | |
| |||
0 commit comments