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

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

Issue 2580323002: [debug-wrapper] remove last uses of --expose-debug-as (Closed)
Patch Set: address comment Created 4 years 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 | « src/debug/debug-evaluate.cc ('k') | src/inspector/debugger-script.js » ('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 1993 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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 })
OLDNEW
« no previous file with comments | « src/debug/debug-evaluate.cc ('k') | src/inspector/debugger-script.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698