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

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

Issue 1009443002: Hide Symbol implementation in a closure. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 9 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/messages.js ('k') | src/string.js » ('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 "use strict"; 4 "use strict";
5 5
6 // Handle id counters. 6 // Handle id counters.
7 var next_handle_ = 0; 7 var next_handle_ = 0;
8 var next_transient_handle_ = -1; 8 var next_transient_handle_ = -1;
9 9
10 // Mirror cache. 10 // Mirror cache.
(...skipping 639 matching lines...) Expand 10 before | Expand all | Expand 10 after
650 } 650 }
651 inherits(SymbolMirror, ValueMirror); 651 inherits(SymbolMirror, ValueMirror);
652 652
653 653
654 SymbolMirror.prototype.description = function() { 654 SymbolMirror.prototype.description = function() {
655 return %SymbolDescription(%_ValueOf(this.value_)); 655 return %SymbolDescription(%_ValueOf(this.value_));
656 } 656 }
657 657
658 658
659 SymbolMirror.prototype.toText = function() { 659 SymbolMirror.prototype.toText = function() {
660 return %_CallFunction(this.value_, builtins.SymbolToString); 660 return %_CallFunction(this.value_, builtins.$symbolToString);
661 } 661 }
662 662
663 663
664 /** 664 /**
665 * Mirror object for objects. 665 * Mirror object for objects.
666 * @param {object} value The object reflected by this mirror 666 * @param {object} value The object reflected by this mirror
667 * @param {boolean} transient indicate whether this object is transient with a 667 * @param {boolean} transient indicate whether this object is transient with a
668 * transient handle 668 * transient handle
669 * @constructor 669 * @constructor
670 * @extends ValueMirror 670 * @extends ValueMirror
(...skipping 2391 matching lines...) Expand 10 before | Expand all | Expand 10 after
3062 } 3062 }
3063 if (!NUMBER_IS_FINITE(value)) { 3063 if (!NUMBER_IS_FINITE(value)) {
3064 if (value > 0) { 3064 if (value > 0) {
3065 return 'Infinity'; 3065 return 'Infinity';
3066 } else { 3066 } else {
3067 return '-Infinity'; 3067 return '-Infinity';
3068 } 3068 }
3069 } 3069 }
3070 return value; 3070 return value;
3071 } 3071 }
OLDNEW
« no previous file with comments | « src/messages.js ('k') | src/string.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698