mirror of
https://github.com/corda/corda.git
synced 2025-01-05 20:54:13 +00:00
remove redundant Compiler::initLocal footprint parameter
This commit is contained in:
parent
b6a3ed763c
commit
9273d5ca39
@ -93,10 +93,9 @@ class Compiler {
|
||||
virtual void return_(ir::Value* value) = 0;
|
||||
virtual void return_() = 0;
|
||||
|
||||
virtual void initLocal(unsigned size, unsigned index, ir::Type type) = 0;
|
||||
virtual void initLocal(unsigned index, ir::Type type) = 0;
|
||||
virtual void initLocalsFromLogicalIp(unsigned logicalIp) = 0;
|
||||
virtual void storeLocal(ir::Value* src, unsigned index)
|
||||
= 0;
|
||||
virtual void storeLocal(ir::Value* src, unsigned index) = 0;
|
||||
virtual ir::Value* loadLocal(ir::Type type, unsigned index) = 0;
|
||||
virtual void saveLocals() = 0;
|
||||
|
||||
|
@ -2490,9 +2490,10 @@ class MyCompiler: public Compiler {
|
||||
v->home = frameIndex(&c, index);
|
||||
}
|
||||
|
||||
virtual void initLocal(unsigned footprint, unsigned index, ir::Type type)
|
||||
virtual void initLocal(unsigned index, ir::Type type)
|
||||
{
|
||||
assert(&c, footprint == typeFootprint(&c, type));
|
||||
unsigned footprint = typeFootprint(&c, type);
|
||||
|
||||
assert(&c, index + footprint <= c.localFootprint);
|
||||
|
||||
Value* v = value(&c, type);
|
||||
|
@ -7030,7 +7030,7 @@ compile(MyThread* t, Context* context)
|
||||
unsigned index = methodParameterFootprint(t, context->method);
|
||||
if ((methodFlags(t, context->method) & ACC_STATIC) == 0) {
|
||||
frame.set(--index, Frame::Object);
|
||||
c->initLocal(1, index, frame.types.object);
|
||||
c->initLocal(index, frame.types.object);
|
||||
}
|
||||
|
||||
for (MethodSpecIterator it
|
||||
@ -7042,29 +7042,29 @@ compile(MyThread* t, Context* context)
|
||||
case 'L':
|
||||
case '[':
|
||||
frame.set(--index, Frame::Object);
|
||||
c->initLocal(1, index, frame.types.object);
|
||||
c->initLocal(index, frame.types.object);
|
||||
break;
|
||||
|
||||
case 'J':
|
||||
frame.set(--index, Frame::Long);
|
||||
frame.set(--index, Frame::Long);
|
||||
c->initLocal(2, index, frame.types.i8);
|
||||
c->initLocal(index, frame.types.i8);
|
||||
break;
|
||||
|
||||
case 'D':
|
||||
frame.set(--index, Frame::Long);
|
||||
frame.set(--index, Frame::Long);
|
||||
c->initLocal(2, index, frame.types.f8);
|
||||
c->initLocal(index, frame.types.f8);
|
||||
break;
|
||||
|
||||
case 'F':
|
||||
frame.set(--index, Frame::Integer);
|
||||
c->initLocal(1, index, frame.types.f4);
|
||||
c->initLocal(index, frame.types.f4);
|
||||
break;
|
||||
|
||||
default:
|
||||
frame.set(--index, Frame::Integer);
|
||||
c->initLocal(1, index, frame.types.i4);
|
||||
c->initLocal(index, frame.types.i4);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user