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 // Handle id counters. | 5 // Handle id counters. |
6 var next_handle_ = 0; | 6 var next_handle_ = 0; |
7 var next_transient_handle_ = -1; | 7 var next_transient_handle_ = -1; |
8 | 8 |
9 // Mirror cache. | 9 // Mirror cache. |
10 var mirror_cache_ = []; | 10 var mirror_cache_ = []; |
(...skipping 779 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
790 * Return the internal properties for this object as an array of | 790 * Return the internal properties for this object as an array of |
791 * InternalPropertyMirror objects. | 791 * InternalPropertyMirror objects. |
792 * @return {Array} Property mirrors for this object | 792 * @return {Array} Property mirrors for this object |
793 */ | 793 */ |
794 ObjectMirror.prototype.internalProperties = function() { | 794 ObjectMirror.prototype.internalProperties = function() { |
795 return ObjectMirror.GetInternalProperties(this.value_); | 795 return ObjectMirror.GetInternalProperties(this.value_); |
796 } | 796 } |
797 | 797 |
798 | 798 |
799 ObjectMirror.prototype.property = function(name) { | 799 ObjectMirror.prototype.property = function(name) { |
800 var details = %DebugGetPropertyDetails(this.value_, %ToString(name)); | 800 var details = %DebugGetPropertyDetails(this.value_, %ToName(name)); |
801 if (details) { | 801 if (details) { |
802 return new PropertyMirror(this, name, details); | 802 return new PropertyMirror(this, name, details); |
803 } | 803 } |
804 | 804 |
805 // Nothing found. | 805 // Nothing found. |
806 return GetUndefinedMirror(); | 806 return GetUndefinedMirror(); |
807 }; | 807 }; |
808 | 808 |
809 | 809 |
810 | 810 |
(...skipping 2068 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2879 } | 2879 } |
2880 if (!NUMBER_IS_FINITE(value)) { | 2880 if (!NUMBER_IS_FINITE(value)) { |
2881 if (value > 0) { | 2881 if (value > 0) { |
2882 return 'Infinity'; | 2882 return 'Infinity'; |
2883 } else { | 2883 } else { |
2884 return '-Infinity'; | 2884 return '-Infinity'; |
2885 } | 2885 } |
2886 } | 2886 } |
2887 return value; | 2887 return value; |
2888 } | 2888 } |
OLD | NEW |