| 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 1993 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2004 !!opt_ignore_nested_scopes); | 2004 !!opt_ignore_nested_scopes); |
| 2005 var result = []; | 2005 var result = []; |
| 2006 for (var i = 0; i < scopeDetails.length; ++i) { | 2006 for (var i = 0; i < scopeDetails.length; ++i) { |
| 2007 result.push(new ScopeMirror(this, UNDEFINED, UNDEFINED, i, | 2007 result.push(new ScopeMirror(this, UNDEFINED, UNDEFINED, i, |
| 2008 scopeDetails[i])); | 2008 scopeDetails[i])); |
| 2009 } | 2009 } |
| 2010 return result; | 2010 return result; |
| 2011 }; | 2011 }; |
| 2012 | 2012 |
| 2013 | 2013 |
| 2014 FrameMirror.prototype.evaluate = function(source, disable_break, | 2014 FrameMirror.prototype.evaluate = function(source) { |
| 2015 opt_context_object) { | |
| 2016 return MakeMirror(%DebugEvaluate(this.break_id_, | 2015 return MakeMirror(%DebugEvaluate(this.break_id_, |
| 2017 this.details_.frameId(), | 2016 this.details_.frameId(), |
| 2018 this.details_.inlinedFrameIndex(), | 2017 this.details_.inlinedFrameIndex(), |
| 2019 source, | 2018 source)); |
| 2020 TO_BOOLEAN(disable_break), | |
| 2021 opt_context_object)); | |
| 2022 }; | 2019 }; |
| 2023 | 2020 |
| 2024 | 2021 |
| 2025 FrameMirror.prototype.invocationText = function() { | 2022 FrameMirror.prototype.invocationText = function() { |
| 2026 // Format frame invoaction (receiver, function and arguments). | 2023 // Format frame invoaction (receiver, function and arguments). |
| 2027 var result = ''; | 2024 var result = ''; |
| 2028 var func = this.func(); | 2025 var func = this.func(); |
| 2029 var receiver = this.receiver(); | 2026 var receiver = this.receiver(); |
| 2030 if (this.isConstructCall()) { | 2027 if (this.isConstructCall()) { |
| 2031 // For constructor frames display new followed by the function name. | 2028 // For constructor frames display new followed by the function name. |
| (...skipping 1046 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3078 // Functions needed by the debugger runtime. | 3075 // Functions needed by the debugger runtime. |
| 3079 utils.InstallFunctions(utils, DONT_ENUM, [ | 3076 utils.InstallFunctions(utils, DONT_ENUM, [ |
| 3080 "ClearMirrorCache", ClearMirrorCache | 3077 "ClearMirrorCache", ClearMirrorCache |
| 3081 ]); | 3078 ]); |
| 3082 | 3079 |
| 3083 // Export to debug.js | 3080 // Export to debug.js |
| 3084 utils.Export(function(to) { | 3081 utils.Export(function(to) { |
| 3085 to.MirrorType = MirrorType; | 3082 to.MirrorType = MirrorType; |
| 3086 }); | 3083 }); |
| 3087 }) | 3084 }) |
| OLD | NEW |