mirror of
https://github.com/corda/corda.git
synced 2025-06-09 19:01:44 +00:00
remove redundant Compiler::storeLocal footprint parameter
This commit is contained in:
parent
cc4525c31c
commit
91c5599fc0
@ -95,7 +95,7 @@ class Compiler {
|
|||||||
|
|
||||||
virtual void initLocal(unsigned size, unsigned index, ir::Type type) = 0;
|
virtual void initLocal(unsigned size, unsigned index, ir::Type type) = 0;
|
||||||
virtual void initLocalsFromLogicalIp(unsigned logicalIp) = 0;
|
virtual void initLocalsFromLogicalIp(unsigned logicalIp) = 0;
|
||||||
virtual void storeLocal(unsigned footprint, ir::Value* src, unsigned index)
|
virtual void storeLocal(ir::Value* src, unsigned index)
|
||||||
= 0;
|
= 0;
|
||||||
virtual ir::Value* loadLocal(ir::Type type, unsigned index) = 0;
|
virtual ir::Value* loadLocal(ir::Type type, unsigned index) = 0;
|
||||||
virtual void saveLocals() = 0;
|
virtual void saveLocals() = 0;
|
||||||
|
@ -2534,10 +2534,9 @@ class MyCompiler: public Compiler {
|
|||||||
linkLocals(&c, e->locals(), newLocals);
|
linkLocals(&c, e->locals(), newLocals);
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual void storeLocal(unsigned footprint, ir::Value* src, unsigned index)
|
virtual void storeLocal(ir::Value* src, unsigned index)
|
||||||
{
|
{
|
||||||
assert(&c, typeFootprint(src->type) == footprint);
|
compiler::storeLocal(&c, typeFootprint(&c, src->type), static_cast<Value*>(src), index, true);
|
||||||
compiler::storeLocal(&c, footprint, static_cast<Value*>(src), index, true);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual ir::Value* loadLocal(ir::Type type, unsigned index)
|
virtual ir::Value* loadLocal(ir::Type type, unsigned index)
|
||||||
|
@ -1295,8 +1295,8 @@ void storeLocal(Context* context,
|
|||||||
|| value->type.flavor() == ir::Type::Address))
|
|| value->type.flavor() == ir::Type::Address))
|
||||||
// TODO Temporary hack for Subroutine test!!!
|
// TODO Temporary hack for Subroutine test!!!
|
||||||
|| value->type.flavor() == ir::Type::Integer);
|
|| value->type.flavor() == ir::Type::Integer);
|
||||||
context->compiler->storeLocal
|
context->compiler->storeLocal(value,
|
||||||
(footprint, value, translateLocalIndex(context, footprint, index));
|
translateLocalIndex(context, footprint, index));
|
||||||
}
|
}
|
||||||
|
|
||||||
avian::util::FixedAllocator* codeAllocator(MyThread* t);
|
avian::util::FixedAllocator* codeAllocator(MyThread* t);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user