Make Script.prototype.nameOrSourceURL use indexOf search first before trying...
Make Script.prototype.nameOrSourceURL use indexOf search first before trying to match with a RegExp. This should use Boyer-Moore search with a long string, which is potentially faster than RegExp search. The target string is typically, but not guaranteed, at the end of the source, so for long sources, there will be a lot of characters to skip. Review URL: http://codereview.chromium.org/6709027 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@7263 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
Showing
Please
register
or
sign in
to comment