various bugfixes to get Tree.java to work

This commit is contained in:
Joel Dice
2007-10-16 11:21:26 -06:00
parent 5f6258045e
commit 96ed27c55c
4 changed files with 338 additions and 47 deletions

View File

@ -356,20 +356,6 @@ popFrame(Thread* t)
}
}
object
findInterfaceMethod(Thread* t, object method, object class_)
{
object interface = methodClass(t, method);
object itable = classInterfaceTable(t, class_);
for (unsigned i = 0; i < arrayLength(t, itable); i += 2) {
if (arrayBody(t, itable, i) == interface) {
return arrayBody(t, arrayBody(t, itable, i + 1),
methodOffset(t, method));
}
}
abort(t);
}
object
makeNativeMethodData(Thread* t, object method, void* function)
{