mirror of
https://github.com/simple64/simple64.git
synced 2026-11-12 22:38:44 +01:00
Merge commit '57999ac9b9d32775efc271e0edfed27b784ee1c6' as 'parallel-rsp'
This commit is contained in:
commit
d9155d3878
377 files changed
+137898
No files matched your search
@@ -0,0 +1,31 @@
|
||||
#ifndef DEBUG_JIT_HPP__
|
||||
#define DEBUG_JIT_HPP__
|
||||
|
||||
#include <memory>
|
||||
#include <stdint.h>
|
||||
#include <string>
|
||||
#include <unordered_map>
|
||||
|
||||
namespace JIT
|
||||
{
|
||||
using Func = void (*)(void *, void *);
|
||||
class DebugBlock
|
||||
{
|
||||
public:
|
||||
DebugBlock(const std::unordered_map<std::string, uint64_t> &symbol_table);
|
||||
~DebugBlock();
|
||||
|
||||
bool compile(uint64_t hash, const std::string &source);
|
||||
Func get_func() const
|
||||
{
|
||||
return block;
|
||||
}
|
||||
|
||||
private:
|
||||
struct Impl;
|
||||
std::unique_ptr<Impl> impl;
|
||||
Func block = nullptr;
|
||||
};
|
||||
} // namespace JIT
|
||||
|
||||
#endif
|
||||
Reference in new issue
Block a user