| commit | 7d0ff863609f07a8bf994c948ec0803c05aaa6ac | [log] [tgz] |
|---|---|---|
| author | Natalie Weizenbaum <nweiz@google.com> | Wed Sep 02 11:44:06 2015 -0700 |
| committer | Natalie Weizenbaum <nweiz@google.com> | Wed Sep 02 11:44:06 2015 -0700 |
| tree | 9dcb8f5281466d32a4d3d3889ea859e9ed2ad635 | |
| parent | b7846b03244d6121735badb9009158cc4aa642cd [diff] |
Fix a performance bug with FileLocation. The bug was actually located in SourceLocation. The constructor accesses this.line and `this.column` in preference to the arguments it was passed, which was fine for normal SourceLocations but for FileLocations caused two binary searches to be performed every time a location was instantiated. R=rnystrom@google.com Review URL: https://codereview.chromium.org//1328613002 .