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

Side by Side Diff: src/debug/mirrors.js

Issue 1319133002: [es6] Implement spec compliant ToName (actually ToPropertyKey). (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@ToPrimitive
Patch Set: Created 5 years, 3 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
« no previous file with comments | « src/contexts.h ('k') | src/full-codegen/full-codegen.cc » ('j') | no next file with comments »
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 (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
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
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 })
OLDNEW
« no previous file with comments | « src/contexts.h ('k') | src/full-codegen/full-codegen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698