Introduce MemoryBuffer, a memory backing store that uses mmap to reserve the full wasm32 address space (4 GiB + guard pages) upfront, growing without a copy and falling back to a ByteBuffer when mmap fails. Also let Frame know how to handle non-owned locals (to e.g. allow allocating them on the native stack.)
23 lines
300 B
C++
23 lines
300 B
C++
/*
|
|
* Copyright (c) 2021, Ali Mohammad Pur <mpfard@serenityos.org>
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
namespace Wasm {
|
|
|
|
class AbstractMachine;
|
|
class Validator;
|
|
struct ValidationError;
|
|
struct Interpreter;
|
|
class MemoryBuffer;
|
|
|
|
namespace Wasi {
|
|
|
|
struct Implementation;
|
|
|
|
}
|
|
|
|
}
|