re2: do not edit Regexp during IsAnchorStart, IsAnchorEnd

Must never edit existing regexps: they are logically immutable.
Was causing RE2::Regexp to give back the wrong answer.

R=r
CC=re2-dev
http://codereview.appspot.com/4626065
2 files changed