.
This commit is contained in:
16
src/vm/vm.cc
Normal file
16
src/vm/vm.cc
Normal file
@@ -0,0 +1,16 @@
|
||||
#include "vm.hh"
|
||||
|
||||
namespace tyche {
|
||||
|
||||
void VM::load_bytecode(ByteArray const& ba)
|
||||
{
|
||||
FunctionId f_id = code_.import_bytecode(ba);
|
||||
stack_.push(Value::CreateFunctionId(f_id));
|
||||
}
|
||||
|
||||
void VM::call(size_t n_params)
|
||||
{
|
||||
// TODO
|
||||
}
|
||||
|
||||
} // tyche
|
||||
Reference in New Issue
Block a user