| 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 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 109 } | 109 } |
| 110 | 110 |
| 111 | 111 |
| 112 function ClearMirrorCache(value) { | 112 function ClearMirrorCache(value) { |
| 113 next_handle_ = 0; | 113 next_handle_ = 0; |
| 114 mirror_cache_ = []; | 114 mirror_cache_ = []; |
| 115 } | 115 } |
| 116 | 116 |
| 117 | 117 |
| 118 function ObjectIsPromise(value) { | 118 function ObjectIsPromise(value) { |
| 119 return IS_SPEC_OBJECT(value) && | 119 return IS_RECEIVER(value) && |
| 120 !IS_UNDEFINED(%DebugGetProperty(value, promiseStatusSymbol)); | 120 !IS_UNDEFINED(%DebugGetProperty(value, promiseStatusSymbol)); |
| 121 } | 121 } |
| 122 | 122 |
| 123 | 123 |
| 124 /** | 124 /** |
| 125 * Returns the mirror for a specified value or object. | 125 * Returns the mirror for a specified value or object. |
| 126 * | 126 * |
| 127 * @param {value or Object} value the value or object to retreive the mirror for | 127 * @param {value or Object} value the value or object to retreive the mirror for |
| 128 * @param {boolean} transient indicate whether this object is transient and | 128 * @param {boolean} transient indicate whether this object is transient and |
| 129 * should not be added to the mirror cache. The default is not transient. | 129 * should not be added to the mirror cache. The default is not transient. |
| (...skipping 2916 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3046 // Functions needed by the debugger runtime. | 3046 // Functions needed by the debugger runtime. |
| 3047 utils.InstallFunctions(utils, DONT_ENUM, [ | 3047 utils.InstallFunctions(utils, DONT_ENUM, [ |
| 3048 "ClearMirrorCache", ClearMirrorCache | 3048 "ClearMirrorCache", ClearMirrorCache |
| 3049 ]); | 3049 ]); |
| 3050 | 3050 |
| 3051 // Export to debug.js | 3051 // Export to debug.js |
| 3052 utils.Export(function(to) { | 3052 utils.Export(function(to) { |
| 3053 to.MirrorType = MirrorType; | 3053 to.MirrorType = MirrorType; |
| 3054 }); | 3054 }); |
| 3055 }) | 3055 }) |
| OLD | NEW |