Check if this is a well-known leaf stub with a constant size frame
| 80 | |
| 81 | // Check if this is a well-known leaf stub with a constant size frame |
| 82 | static inline bool isFixedSizeFrame(const char* name) { |
| 83 | // Dispatch by the first character to optimize lookup |
| 84 | switch (name[0]) { |
| 85 | case 'i': |
| 86 | return startsWith(name, "indexof_linear_"); |
| 87 | case 'm': |
| 88 | return startsWith(name, "md5_implCompress"); |
| 89 | case 's': |
| 90 | return startsWith(name, "sha256_implCompress") |
| 91 | || startsWith(name, "string_indexof_linear_") |
| 92 | || startsWith(name, "slow_subtype_check"); |
| 93 | default: |
| 94 | return false; |
| 95 | } |
| 96 | } |
| 97 | |
| 98 | // Check if this is a well-known leaf stub that does not change stack pointer |
| 99 | static inline bool isZeroSizeFrame(const char* name) { |
no test coverage detected