Chromium Code Reviews| Index: runtime/vm/coverage.cc |
| =================================================================== |
| --- runtime/vm/coverage.cc (revision 37119) |
| +++ runtime/vm/coverage.cc (working copy) |
| @@ -88,6 +88,8 @@ |
| function ^= functions.At(i); |
| JSONObject jsobj(&jsarr); |
| script = function.script(); |
| + // Makes token_pos to line-number lookup faster. |
| + script.ComputeTokenPosToLineNumberArray(); |
|
Ivan Posva
2014/06/10 00:14:58
As discussed we might want to cache this array onl
|
| saved_url = script.url(); |
| jsobj.AddProperty("source", saved_url.ToCString()); |
| jsobj.AddProperty("script", script); |