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 2338 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2349 return this.script_.type; | 2349 return this.script_.type; |
2350 }; | 2350 }; |
2351 | 2351 |
2352 | 2352 |
2353 ScriptMirror.prototype.compilationType = function() { | 2353 ScriptMirror.prototype.compilationType = function() { |
2354 return this.script_.compilation_type; | 2354 return this.script_.compilation_type; |
2355 }; | 2355 }; |
2356 | 2356 |
2357 | 2357 |
2358 ScriptMirror.prototype.lineCount = function() { | 2358 ScriptMirror.prototype.lineCount = function() { |
2359 return this.script_.lineCount(); | 2359 return %ScriptLineCount(this.script_); |
2360 }; | 2360 }; |
2361 | 2361 |
2362 | 2362 |
2363 ScriptMirror.prototype.locationFromPosition = function( | 2363 ScriptMirror.prototype.locationFromPosition = function( |
2364 position, include_resource_offset) { | 2364 position, include_resource_offset) { |
2365 return this.script_.locationFromPosition(position, include_resource_offset); | 2365 return this.script_.locationFromPosition(position, include_resource_offset); |
2366 }; | 2366 }; |
2367 | 2367 |
2368 | 2368 |
2369 ScriptMirror.prototype.sourceSlice = function (opt_from_line, opt_to_line) { | |
2370 return this.script_.sourceSlice(opt_from_line, opt_to_line); | |
2371 }; | |
2372 | |
2373 | |
2374 ScriptMirror.prototype.context = function() { | 2369 ScriptMirror.prototype.context = function() { |
2375 return this.context_; | 2370 return this.context_; |
2376 }; | 2371 }; |
2377 | 2372 |
2378 | 2373 |
2379 ScriptMirror.prototype.evalFromScript = function() { | 2374 ScriptMirror.prototype.evalFromScript = function() { |
2380 return MakeMirror(this.script_.eval_from_script); | 2375 return MakeMirror(this.script_.eval_from_script); |
2381 }; | 2376 }; |
2382 | 2377 |
2383 | 2378 |
(...skipping 656 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3040 // Functions needed by the debugger runtime. | 3035 // Functions needed by the debugger runtime. |
3041 utils.InstallFunctions(utils, DONT_ENUM, [ | 3036 utils.InstallFunctions(utils, DONT_ENUM, [ |
3042 "ClearMirrorCache", ClearMirrorCache | 3037 "ClearMirrorCache", ClearMirrorCache |
3043 ]); | 3038 ]); |
3044 | 3039 |
3045 // Export to debug.js | 3040 // Export to debug.js |
3046 utils.Export(function(to) { | 3041 utils.Export(function(to) { |
3047 to.MirrorType = MirrorType; | 3042 to.MirrorType = MirrorType; |
3048 }); | 3043 }); |
3049 }) | 3044 }) |
OLD | NEW |