| 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 238 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 249 var PropertyAttribute = {}; | 249 var PropertyAttribute = {}; |
| 250 PropertyAttribute.None = NONE; | 250 PropertyAttribute.None = NONE; |
| 251 PropertyAttribute.ReadOnly = READ_ONLY; | 251 PropertyAttribute.ReadOnly = READ_ONLY; |
| 252 PropertyAttribute.DontEnum = DONT_ENUM; | 252 PropertyAttribute.DontEnum = DONT_ENUM; |
| 253 PropertyAttribute.DontDelete = DONT_DELETE; | 253 PropertyAttribute.DontDelete = DONT_DELETE; |
| 254 | 254 |
| 255 | 255 |
| 256 // A copy of the scope types from runtime-debug.cc. | 256 // A copy of the scope types from runtime-debug.cc. |
| 257 // NOTE: these constants should be backward-compatible, so | 257 // NOTE: these constants should be backward-compatible, so |
| 258 // add new ones to the end of this list. | 258 // add new ones to the end of this list. |
| 259 var ScopeType = { Global: 0, | 259 var ScopeType = { Global: 0, |
| 260 Local: 1, | 260 Local: 1, |
| 261 With: 2, | 261 With: 2, |
| 262 Closure: 3, | 262 Closure: 3, |
| 263 Catch: 4, | 263 Catch: 4, |
| 264 Block: 5, | 264 Block: 5, |
| 265 Script: 6 }; | 265 Script: 6, |
| 266 Eval: 7, |
| 267 }; |
| 266 | 268 |
| 267 /** | 269 /** |
| 268 * Base class for all mirror objects. | 270 * Base class for all mirror objects. |
| 269 * @param {string} type The type of the mirror | 271 * @param {string} type The type of the mirror |
| 270 * @constructor | 272 * @constructor |
| 271 */ | 273 */ |
| 272 function Mirror(type) { | 274 function Mirror(type) { |
| 273 this.type_ = type; | 275 this.type_ = type; |
| 274 } | 276 } |
| 275 | 277 |
| (...skipping 2762 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3038 // Functions needed by the debugger runtime. | 3040 // Functions needed by the debugger runtime. |
| 3039 utils.InstallFunctions(utils, DONT_ENUM, [ | 3041 utils.InstallFunctions(utils, DONT_ENUM, [ |
| 3040 "ClearMirrorCache", ClearMirrorCache | 3042 "ClearMirrorCache", ClearMirrorCache |
| 3041 ]); | 3043 ]); |
| 3042 | 3044 |
| 3043 // Export to debug.js | 3045 // Export to debug.js |
| 3044 utils.Export(function(to) { | 3046 utils.Export(function(to) { |
| 3045 to.MirrorType = MirrorType; | 3047 to.MirrorType = MirrorType; |
| 3046 }); | 3048 }); |
| 3047 }) | 3049 }) |
| OLD | NEW |