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 767 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
778 * Return the internal properties for this object as an array of | 778 * Return the internal properties for this object as an array of |
779 * InternalPropertyMirror objects. | 779 * InternalPropertyMirror objects. |
780 * @return {Array} Property mirrors for this object | 780 * @return {Array} Property mirrors for this object |
781 */ | 781 */ |
782 ObjectMirror.prototype.internalProperties = function() { | 782 ObjectMirror.prototype.internalProperties = function() { |
783 return ObjectMirror.GetInternalProperties(this.value_); | 783 return ObjectMirror.GetInternalProperties(this.value_); |
784 } | 784 } |
785 | 785 |
786 | 786 |
787 ObjectMirror.prototype.property = function(name) { | 787 ObjectMirror.prototype.property = function(name) { |
788 var details = %DebugGetPropertyDetails(this.value_, TO_NAME(name)); | 788 var details = %DebugGetPropertyDetails(this.value_, name); |
789 if (details) { | 789 if (details) { |
790 return new PropertyMirror(this, name, details); | 790 return new PropertyMirror(this, name, details); |
791 } | 791 } |
792 | 792 |
793 // Nothing found. | 793 // Nothing found. |
794 return GetUndefinedMirror(); | 794 return GetUndefinedMirror(); |
795 }; | 795 }; |
796 | 796 |
797 | 797 |
798 | 798 |
(...skipping 2252 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3051 // Functions needed by the debugger runtime. | 3051 // Functions needed by the debugger runtime. |
3052 utils.InstallFunctions(utils, DONT_ENUM, [ | 3052 utils.InstallFunctions(utils, DONT_ENUM, [ |
3053 "ClearMirrorCache", ClearMirrorCache | 3053 "ClearMirrorCache", ClearMirrorCache |
3054 ]); | 3054 ]); |
3055 | 3055 |
3056 // Export to debug.js | 3056 // Export to debug.js |
3057 utils.Export(function(to) { | 3057 utils.Export(function(to) { |
3058 to.MirrorType = MirrorType; | 3058 to.MirrorType = MirrorType; |
3059 }); | 3059 }); |
3060 }) | 3060 }) |
OLD | NEW |