mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-11-08 17:21:02 +00:00
24 lines
595 B
C++
24 lines
595 B
C++
|
|
/*
|
||
|
|
* Copyright (c) 2021, Ali Mohammad Pur <mpfard@serenityos.org>
|
||
|
|
*
|
||
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
||
|
|
*/
|
||
|
|
|
||
|
|
#include <LibWasm/AbstractMachine/AbstractMachine.h>
|
||
|
|
#include <LibWasm/AbstractMachine/Configuration.h>
|
||
|
|
#include <LibWasm/AbstractMachine/Interpreter.h>
|
||
|
|
#include <LibWasm/Opcode.h>
|
||
|
|
|
||
|
|
namespace Wasm {
|
||
|
|
|
||
|
|
void Interpreter::interpret(Configuration& configuration)
|
||
|
|
{
|
||
|
|
// FIXME: Interpret stuff
|
||
|
|
dbgln("FIXME: Interpret stuff!");
|
||
|
|
// Push some dummy values
|
||
|
|
for (size_t i = 0; i < configuration.frame()->arity(); ++i)
|
||
|
|
configuration.stack().push(make<Value>(0));
|
||
|
|
}
|
||
|
|
|
||
|
|
}
|