remove redundant Compiler::storeLocal footprint parameter

This commit is contained in:
Joshua Warner 2014-05-03 21:54:10 -06:00 committed by Joshua Warner
parent cc4525c31c
commit 91c5599fc0
3 changed files with 5 additions and 6 deletions

View File

@ -95,7 +95,7 @@ class Compiler {
virtual void initLocal(unsigned size, unsigned index, ir::Type type) = 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;
virtual ir::Value* loadLocal(ir::Type type, unsigned index) = 0;
virtual void saveLocals() = 0;

View File

@ -2534,10 +2534,9 @@ class MyCompiler: public Compiler {
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, footprint, static_cast<Value*>(src), index, true);
compiler::storeLocal(&c, typeFootprint(&c, src->type), static_cast<Value*>(src), index, true);
}
virtual ir::Value* loadLocal(ir::Type type, unsigned index)

View File

@ -1295,8 +1295,8 @@ void storeLocal(Context* context,
|| value->type.flavor() == ir::Type::Address))
// TODO Temporary hack for Subroutine test!!!
|| value->type.flavor() == ir::Type::Integer);
context->compiler->storeLocal
(footprint, value, translateLocalIndex(context, footprint, index));
context->compiler->storeLocal(value,
translateLocalIndex(context, footprint, index));
}
avian::util::FixedAllocator* codeAllocator(MyThread* t);