Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(638)

Side by Side Diff: src/mirror-debugger.js

Issue 443843004: Mirror object properties are always names (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Minimal change Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | test/mjsunit/mirror-object.js » ('j') | test/mjsunit/mirror-object.js » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « no previous file | test/mjsunit/mirror-object.js » ('j') | test/mjsunit/mirror-object.js » ('J')

Powered by Google App Engine
This is Rietveld 408576698