(bytes)
| 6359 | } |
| 6360 | |
| 6361 | function _malloc(bytes) { |
| 6362 | /* Over-allocate to make sure it is byte-aligned by 8. |
| 6363 | * This will leak memory, but this is only the dummy |
| 6364 | * implementation (replaced by dlmalloc normally) so |
| 6365 | * not an issue. |
| 6366 | */ |
| 6367 | var ptr = Runtime.dynamicAlloc(bytes + 8); |
| 6368 | return (ptr+8) & 0xFFFFFFF8; |
| 6369 | } |
| 6370 | Module["_malloc"] = _malloc; |
| 6371 | |
| 6372 | function _putenv(string) { |