| 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 |
| 11 var ErrorToString; | 11 var ErrorToString; |
| 12 var FunctionSourceString; | 12 var FunctionSourceString; |
| 13 var GlobalArray = global.Array; | 13 var GlobalArray = global.Array; |
| 14 var IsNaN = global.isNaN; | 14 var IsNaN = global.isNaN; |
| 15 var JSONStringify = global.JSON.stringify; | 15 var JSONStringify = global.JSON.stringify; |
| 16 var MakeError; |
| 16 var MapEntries; | 17 var MapEntries; |
| 17 var MapIteratorNext; | 18 var MapIteratorNext; |
| 18 var MathMin = global.Math.min; | 19 var MathMin = global.Math.min; |
| 19 var promiseStatusSymbol = utils.ImportNow("promise_status_symbol"); | 20 var promiseStatusSymbol = utils.ImportNow("promise_status_symbol"); |
| 20 var promiseValueSymbol = utils.ImportNow("promise_value_symbol"); | 21 var promiseValueSymbol = utils.ImportNow("promise_value_symbol"); |
| 21 var SetIteratorNext; | 22 var SetIteratorNext; |
| 22 var SetValues; | 23 var SetValues; |
| 23 var SymbolToString; | 24 var SymbolToString; |
| 24 | 25 |
| 25 utils.Import(function(from) { | 26 utils.Import(function(from) { |
| 26 ErrorToString = from.ErrorToString; | 27 ErrorToString = from.ErrorToString; |
| 27 FunctionSourceString = from.FunctionSourceString; | 28 FunctionSourceString = from.FunctionSourceString; |
| 29 MakeError = from.MakeError; |
| 28 MapEntries = from.MapEntries; | 30 MapEntries = from.MapEntries; |
| 29 MapIteratorNext = from.MapIteratorNext; | 31 MapIteratorNext = from.MapIteratorNext; |
| 30 SetIteratorNext = from.SetIteratorNext; | 32 SetIteratorNext = from.SetIteratorNext; |
| 31 SetValues = from.SetValues; | 33 SetValues = from.SetValues; |
| 32 SymbolToString = from.SymbolToString; | 34 SymbolToString = from.SymbolToString; |
| 33 }); | 35 }); |
| 34 | 36 |
| 35 // ---------------------------------------------------------------------------- | 37 // ---------------------------------------------------------------------------- |
| 36 | 38 |
| 37 // Mirror hierarchy: | 39 // Mirror hierarchy: |
| (...skipping 3082 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3120 // Functions needed by the debugger runtime. | 3122 // Functions needed by the debugger runtime. |
| 3121 utils.InstallFunctions(utils, DONT_ENUM, [ | 3123 utils.InstallFunctions(utils, DONT_ENUM, [ |
| 3122 "ClearMirrorCache", ClearMirrorCache | 3124 "ClearMirrorCache", ClearMirrorCache |
| 3123 ]); | 3125 ]); |
| 3124 | 3126 |
| 3125 // Export to debug.js | 3127 // Export to debug.js |
| 3126 utils.Export(function(to) { | 3128 utils.Export(function(to) { |
| 3127 to.MirrorType = MirrorType; | 3129 to.MirrorType = MirrorType; |
| 3128 }); | 3130 }); |
| 3129 }) | 3131 }) |
| OLD | NEW |