mirror of
https://git.suyu.dev/suyu/dynarmic.git
synced 2026-01-11 00:48:03 +01:00
Common: Add a memory pool implementation, remove use of boost::pool
This commit is contained in:
parent
411e804b0d
commit
4d127c19dd
6 changed files with 85 additions and 5 deletions
|
|
@ -352,7 +352,7 @@ void IREmitter::SetTerm(const IR::Terminal& terminal) {
|
|||
}
|
||||
|
||||
IR::Value IREmitter::Inst(IR::Opcode op, std::initializer_list<IR::Value> args) {
|
||||
IR::Inst* inst = new(block.instruction_alloc_pool->malloc()) IR::Inst(op);
|
||||
IR::Inst* inst = new(block.instruction_alloc_pool->Alloc()) IR::Inst(op);
|
||||
DEBUG_ASSERT(args.size() == inst->NumArgs());
|
||||
|
||||
std::for_each(args.begin(), args.end(), [&inst, op, index = size_t(0)](const auto& v) mutable {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue