This is the mail archive of the java-patches@sourceware.cygnus.com mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Use of pointer casts in the interpreter


Kresten Krab Thorup <krab@gnu.org> writes:
>  #define PUSHA(V)  \
> - ({ jobject __v=(V); *(jobject*)sp++ = __v; })
> + ({ jobject __v=(V); (sp++)->o = __v; })

I'm curious as to why you use the temporary variable __v.
To me it seems like nothing but overhead (more verbose, harder to
read, more work for the compiler, more variables to emit in
the debugging symbols).
-- 
	--Per Bothner
bothner@pacbell.net  per@bothner.com   http://home.pacbell.net/bothner/

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]