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 "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 Loading... |
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 Loading... |
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 } |
OLD | NEW |