handle weak maps properly in hashMapResize, hashMapRemove, etc.; move Processor::parameterFootprint() into machine.h/machine.cpp

This commit is contained in:
Joel Dice
2007-11-20 15:24:02 -07:00
parent 6fe0c4636f
commit a017dab73a
5 changed files with 340 additions and 38 deletions

View File

@ -2870,29 +2870,6 @@ class MyProcessor: public Processor {
methodTable, staticTable, loader, 0, false);
}
virtual unsigned
parameterFootprint(vm::Thread* t, const char* s, bool static_)
{
unsigned footprint = 0;
for (MethodSpecIterator it(t, s); it.hasNext();) {
switch (*it.next()) {
case 'J':
case 'D':
footprint += 2;
break;
default:
++ footprint;
break;
}
}
if (not static_) {
++ footprint;
}
return footprint;
}
virtual void
initClass(vm::Thread* t, object c)
{