| 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 843 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 854 * Return the internal properties for this object as an array of | 854 * Return the internal properties for this object as an array of |
| 855 * InternalPropertyMirror objects. | 855 * InternalPropertyMirror objects. |
| 856 * @return {Array} Property mirrors for this object | 856 * @return {Array} Property mirrors for this object |
| 857 */ | 857 */ |
| 858 ObjectMirror.prototype.internalProperties = function() { | 858 ObjectMirror.prototype.internalProperties = function() { |
| 859 return ObjectMirror.GetInternalProperties(this.value_); | 859 return ObjectMirror.GetInternalProperties(this.value_); |
| 860 } | 860 } |
| 861 | 861 |
| 862 | 862 |
| 863 ObjectMirror.prototype.property = function(name) { | 863 ObjectMirror.prototype.property = function(name) { |
| 864 var details = %DebugGetPropertyDetails(this.value_, builtins.$toName(name)); | 864 var details = %DebugGetPropertyDetails(this.value_, TO_NAME(name)); |
| 865 if (details) { | 865 if (details) { |
| 866 return new PropertyMirror(this, name, details); | 866 return new PropertyMirror(this, name, details); |
| 867 } | 867 } |
| 868 | 868 |
| 869 // Nothing found. | 869 // Nothing found. |
| 870 return GetUndefinedMirror(); | 870 return GetUndefinedMirror(); |
| 871 }; | 871 }; |
| 872 | 872 |
| 873 | 873 |
| 874 | 874 |
| (...skipping 2234 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3109 // Functions needed by the debugger runtime. | 3109 // Functions needed by the debugger runtime. |
| 3110 utils.InstallFunctions(utils, DONT_ENUM, [ | 3110 utils.InstallFunctions(utils, DONT_ENUM, [ |
| 3111 "ClearMirrorCache", ClearMirrorCache | 3111 "ClearMirrorCache", ClearMirrorCache |
| 3112 ]); | 3112 ]); |
| 3113 | 3113 |
| 3114 // Export to debug.js | 3114 // Export to debug.js |
| 3115 utils.Export(function(to) { | 3115 utils.Export(function(to) { |
| 3116 to.MirrorType = MirrorType; | 3116 to.MirrorType = MirrorType; |
| 3117 }); | 3117 }); |
| 3118 }) | 3118 }) |
| OLD | NEW |