From b00fcd446390997a304da22580335967b3819e87 Mon Sep 17 00:00:00 2001 From: Joel Dice Date: Wed, 25 Jul 2007 18:52:10 -0600 Subject: [PATCH] superficial tweaks --- src/run.cpp | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/run.cpp b/src/run.cpp index db334a3f46..106fcdf5f4 100644 --- a/src/run.cpp +++ b/src/run.cpp @@ -369,9 +369,8 @@ resolveNativeMethodData(Thread* t, object method) inline void checkStack(Thread* t, object method) { - unsigned parameterFootprint = methodParameterFootprint(t, method); - unsigned base = t->sp - parameterFootprint; - if (UNLIKELY(base + if (UNLIKELY(t->sp + + methodParameterFootprint(t, method) + codeMaxLocals(t, methodCode(t, method)) + FrameFootprint + codeMaxStack(t, methodCode(t, method)) @@ -406,15 +405,15 @@ invokeNative(Thread* t, object method) args[offset++] = reinterpret_cast(t); - unsigned start = 0; + unsigned i = 0; if (methodFlags(t, method) & ACC_STATIC) { - start = 1; + ++ i; args[offset++] = reinterpret_cast (pushReference(t, methodClass(t, method))); } unsigned sp = frameBase(t, t->frame); - for (unsigned i = start; i < count; ++i) { + for (; i < count; ++i) { unsigned type = nativeMethodDataParameterTypes(t, data, i + 1); switch (type) {