(bytes)
| 5957 | |
| 5958 | |
| 5959 | function _malloc(bytes) { |
| 5960 | /* Over-allocate to make sure it is byte-aligned by 8. |
| 5961 | * This will leak memory, but this is only the dummy |
| 5962 | * implementation (replaced by dlmalloc normally) so |
| 5963 | * not an issue. |
| 5964 | */ |
| 5965 | var ptr = Runtime.dynamicAlloc(bytes + 8); |
| 5966 | return (ptr+8) & 0xFFFFFFF8; |
| 5967 | } |
| 5968 | Module["_malloc"] = _malloc;function ___cxa_allocate_exception(size) { |
| 5969 | return _malloc(size); |
| 5970 | } |
no test coverage detected