OLD | NEW |
1 // Copyright 2006-2012 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2012 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 (function(global, utils) { | 5 (function(global, utils) { |
6 "use strict"; | 6 "use strict"; |
7 | 7 |
8 // ---------------------------------------------------------------------------- | 8 // ---------------------------------------------------------------------------- |
9 // Imports | 9 // Imports |
10 | 10 |
(...skipping 1932 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1943 var location = this.sourceLocation(); | 1943 var location = this.sourceLocation(); |
1944 if (location) { | 1944 if (location) { |
1945 return location.column; | 1945 return location.column; |
1946 } | 1946 } |
1947 }; | 1947 }; |
1948 | 1948 |
1949 | 1949 |
1950 FrameMirror.prototype.sourceLineText = function() { | 1950 FrameMirror.prototype.sourceLineText = function() { |
1951 var location = this.sourceLocation(); | 1951 var location = this.sourceLocation(); |
1952 if (location) { | 1952 if (location) { |
1953 return location.sourceText; | 1953 return location.sourceText(); |
1954 } | 1954 } |
1955 }; | 1955 }; |
1956 | 1956 |
1957 | 1957 |
1958 FrameMirror.prototype.scopeCount = function() { | 1958 FrameMirror.prototype.scopeCount = function() { |
1959 return this.details_.scopeCount(); | 1959 return this.details_.scopeCount(); |
1960 }; | 1960 }; |
1961 | 1961 |
1962 | 1962 |
1963 FrameMirror.prototype.scope = function(index) { | 1963 FrameMirror.prototype.scope = function(index) { |
(...skipping 1076 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3040 // Functions needed by the debugger runtime. | 3040 // Functions needed by the debugger runtime. |
3041 utils.InstallFunctions(utils, DONT_ENUM, [ | 3041 utils.InstallFunctions(utils, DONT_ENUM, [ |
3042 "ClearMirrorCache", ClearMirrorCache | 3042 "ClearMirrorCache", ClearMirrorCache |
3043 ]); | 3043 ]); |
3044 | 3044 |
3045 // Export to debug.js | 3045 // Export to debug.js |
3046 utils.Export(function(to) { | 3046 utils.Export(function(to) { |
3047 to.MirrorType = MirrorType; | 3047 to.MirrorType = MirrorType; |
3048 }); | 3048 }); |
3049 }) | 3049 }) |
OLD | NEW |