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 239 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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, | |
261 }; | 260 }; |
262 | 261 |
263 /** | 262 /** |
264 * Base class for all mirror objects. | 263 * Base class for all mirror objects. |
265 * @param {string} type The type of the mirror | 264 * @param {string} type The type of the mirror |
266 * @constructor | 265 * @constructor |
267 */ | 266 */ |
268 function Mirror(type) { | 267 function Mirror(type) { |
269 this.type_ = type; | 268 this.type_ = type; |
270 } | 269 } |
(...skipping 2815 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3086 // Functions needed by the debugger runtime. | 3085 // Functions needed by the debugger runtime. |
3087 utils.InstallFunctions(utils, DONT_ENUM, [ | 3086 utils.InstallFunctions(utils, DONT_ENUM, [ |
3088 "ClearMirrorCache", ClearMirrorCache | 3087 "ClearMirrorCache", ClearMirrorCache |
3089 ]); | 3088 ]); |
3090 | 3089 |
3091 // Export to debug.js | 3090 // Export to debug.js |
3092 utils.Export(function(to) { | 3091 utils.Export(function(to) { |
3093 to.MirrorType = MirrorType; | 3092 to.MirrorType = MirrorType; |
3094 }); | 3093 }); |
3095 }) | 3094 }) |
OLD | NEW |