1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 05:08:13 +00:00
serenity/Userland/Libraries/LibWasm/AbstractMachine
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.cpp LibWasm: Make Interpreter a virtual interface 2021-05-27 17:28:41 +04:30
AbstractMachine.h AK: Replace ByteBuffer::grow with resize()/ensure_capacity() 2021-05-31 14:49:00 +04:30
Configuration.cpp LibWasm: Make Interpreter a virtual interface 2021-05-27 17:28:41 +04:30
Configuration.h LibWasm: Make Interpreter a virtual interface 2021-05-27 17:28:41 +04:30
Interpreter.cpp LibWasm: Make f32-add/sub actually perform addition/subtraction 2021-05-30 01:34:28 +04:30
Interpreter.h LibWasm: Avoid excessive pop()-then-push() on the stack 2021-05-27 17:28:41 +04:30