1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-24 12:57:35 +00:00
serenity/Userland/Libraries/LibWasm
Gunnar Beutner 5f18cf75c5 AK: Replace ByteBuffer::grow with resize()/ensure_capacity()
Previously ByteBuffer::grow() behaved like Vector<T>::resize().
However the function name was somewhat ambiguous - and so this patch
updates ByteBuffer to behave more like Vector<T> by replacing grow()
with resize() and adding an ensure_capacity() method.

This also lets the user change the buffer's capacity without affecting
the size which was not previously possible.

Additionally this patch makes the capacity() method public (again).
2021-05-31 14:49:00 +04:30
..
AbstractMachine AK: Replace ByteBuffer::grow with resize()/ensure_capacity() 2021-05-31 14:49:00 +04:30
Parser LibWasm: Fix logic error in Limits::parse() 2021-05-29 23:03:18 +04:30
Printer LibWasm: Print instruction arguments too 2021-05-21 00:15:23 +01:00
Tests LibWasm+Meta: Add test-wasm and optionally test the conformance tests 2021-05-21 00:15:23 +01:00
CMakeLists.txt LibWasm: Add basic support for module instantiation and execution stubs 2021-05-13 19:44:32 +01:00
Constants.h LibWasm: Implement memory.grow, memory.size and drop 2021-05-17 23:25:30 +02:00
Opcode.h LibWasm: Un-nest the structured instructions 2021-05-13 19:44:32 +01:00
Types.h LibWasm+LibWeb: Implement (a very basic version of) the JS link/import 2021-05-26 15:34:13 +04:30