Web Inspector: implement reverse mapping for compiler source maps.
authorpodivilov@chromium.org <podivilov@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 20 Sep 2011 10:22:59 +0000 (10:22 +0000)
committerpodivilov@chromium.org <podivilov@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 20 Sep 2011 10:22:59 +0000 (10:22 +0000)
commit202113582f4f0cdede6ccf7fac7b1964f4b5fca7
tree7f92ca54af54af7f13e935f975a5ad1e434e4b97
parentffb7d5ea089b3e5722fbb2e0d377675f4f21833f
Web Inspector: implement reverse mapping for compiler source maps.
https://bugs.webkit.org/show_bug.cgi?id=67850

Source/WebCore:

Implement the mapping from source code to compiled code. It will be used for
setting breakpoints on source code.

Reviewed by Pavel Feldman.

* inspector/front-end/CompilerSourceMapping.js:
(WebInspector.ClosureCompilerSourceMapping):
(WebInspector.ClosureCompilerSourceMapping.prototype.compiledLocationToSourceLocation):
(WebInspector.ClosureCompilerSourceMapping.prototype.sourceLocationToCompiledLocation):
(WebInspector.ClosureCompilerSourceMapping.prototype._parseMappings):

LayoutTests:

Reviewed by Pavel Feldman.

* inspector/debugger/compiler-source-mapping.html:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@95524 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/inspector/debugger/compiler-source-mapping.html
Source/WebCore/ChangeLog
Source/WebCore/inspector/front-end/CompilerSourceMapping.js
Source/WebCore/inspector/front-end/DebuggerPresentationModel.js