Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(129)

Side by Side Diff: src/debug/mirrors.js

Issue 2002993002: Refactor script position calculation (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | src/heap-symbols.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 })
OLDNEW
« no previous file with comments | « no previous file | src/heap-symbols.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698