final java patch for --enable-mapped-location; simplified lexer

Per Bothner per@bothner.com
Thu Sep 30 23:47:00 GMT 2004


Ok, this completes the changes for java to support USE_MAPPED_LOCATION.
This also includes other major changes, primarily to the lexer.
The lexer should now be quite a bit simpler and faster, partly
because we got rid of the buffered lines, partly because of
reduced function call overhead (I hope), and partly because of
less overhead backing and maintaining column numbers.
It is possible that we may get worse diagnostics in some cases.
That's because I don't fully understand the purpose of some of the
code I ripped out, and when they would make a difference. I'm
confident I can restore equally good or better diagnostics, but
it's hard until I can see actual cases where there is a regression.
So far I've fixed the ones I've come accross, and improved some.
Let me know if you see a regression. One possible mode maybe
when there are blank lines, since the old code handled blank
lines specially.
Note the new lexer applies when when --disable-mapped-location.
-- 
	--Per Bothner
per@bothner.com http://per.bothner.com/
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: jv-loc3.patch
URL: <http://gcc.gnu.org/pipermail/java/attachments/20040930/bcbc5e7b/attachment.ksh>


More information about the Java mailing list

AltStyle によって変換されたページ (->オリジナル) /