Plan of action:
- Introduce SourceLocation, which encapsulates url/scriptId + lineNumber + columnNumber + stackTrace;
- Migrate clients of ScriptCallStack to SourceLocation, remove ScriptCallStack;
- Instead of creating and passing around ConsoleMessage, pass SourceLocation and only create message when adding to the storage;
- Move console message storage to v8_inspector, making ConsoleMessage a private entity of v8_inspector;
- Move console agent to v8_inspector.
Bonus: reuse SourceLocation in FetchInitiatorInfo.
Bonus*: reuse SourceLocation for async tasks, merging them with initiator info?
Comment 1 by dgozman@chromium.org
, May 23 2016