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

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

Issue 2445683002: [modules] Add partial support for debug-scopes. (Closed)
Patch Set: Fix handle bug. Created 4 years, 1 month 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-scopes.cc ('k') | src/objects.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 239 matching lines...) Expand 10 before | Expand all | Expand 10 after
250 // NOTE: these constants should be backward-compatible, so 250 // NOTE: these constants should be backward-compatible, so
251 // add new ones to the end of this list. 251 // add new ones to the end of this list.
252 var ScopeType = { Global: 0, 252 var ScopeType = { Global: 0,
253 Local: 1, 253 Local: 1,
254 With: 2, 254 With: 2,
255 Closure: 3, 255 Closure: 3,
256 Catch: 4, 256 Catch: 4,
257 Block: 5, 257 Block: 5,
258 Script: 6, 258 Script: 6,
259 Eval: 7, 259 Eval: 7,
260 Module: 8,
260 }; 261 };
261 262
262 /** 263 /**
263 * Base class for all mirror objects. 264 * Base class for all mirror objects.
264 * @param {string} type The type of the mirror 265 * @param {string} type The type of the mirror
265 * @constructor 266 * @constructor
266 */ 267 */
267 function Mirror(type) { 268 function Mirror(type) {
268 this.type_ = type; 269 this.type_ = type;
269 } 270 }
(...skipping 2815 matching lines...) Expand 10 before | Expand all | Expand 10 after
3085 // Functions needed by the debugger runtime. 3086 // Functions needed by the debugger runtime.
3086 utils.InstallFunctions(utils, DONT_ENUM, [ 3087 utils.InstallFunctions(utils, DONT_ENUM, [
3087 "ClearMirrorCache", ClearMirrorCache 3088 "ClearMirrorCache", ClearMirrorCache
3088 ]); 3089 ]);
3089 3090
3090 // Export to debug.js 3091 // Export to debug.js
3091 utils.Export(function(to) { 3092 utils.Export(function(to) {
3092 to.MirrorType = MirrorType; 3093 to.MirrorType = MirrorType;
3093 }); 3094 });
3094 }) 3095 })
OLDNEW
« no previous file with comments | « src/debug/debug-scopes.cc ('k') | src/objects.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698