implement StringBuilder.delete() more efficiently

This commit is contained in:
Joel Dice
2007-10-29 15:40:05 -06:00
parent bcd2c75f41
commit 956106f518
3 changed files with 35 additions and 22 deletions

View File

@ -529,6 +529,16 @@ invokeNative(Thread* t, object method)
&byteArrayBody(t, methodName(t, method), 0));
}
// if (strcmp(reinterpret_cast<const char*>
// (&byteArrayBody(t, className(t, methodClass(t, method)), 0)),
// "org/eclipse/swt/internal/C") == 0
// and strcmp(reinterpret_cast<const char*>
// (&byteArrayBody(t, methodName(t, method), 0)),
// "memmove") == 0)
// {
// asm("int3");
// }
{ ENTER(t, Thread::IdleState);
result = t->m->system->call