| OLD | NEW |
| 1 // Copyright 2006-2008 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2008 the V8 project authors. All rights reserved. |
| 2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
| 3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
| 4 // met: | 4 // met: |
| 5 // | 5 // |
| 6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
| 7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
| 8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
| 9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
| 10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
| (...skipping 562 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 573 * @constructor | 573 * @constructor |
| 574 * @extends ValueMirror | 574 * @extends ValueMirror |
| 575 */ | 575 */ |
| 576 function ObjectMirror(value, type, transient) { | 576 function ObjectMirror(value, type, transient) { |
| 577 ValueMirror.call(this, type || OBJECT_TYPE, value, transient); | 577 ValueMirror.call(this, type || OBJECT_TYPE, value, transient); |
| 578 } | 578 } |
| 579 inherits(ObjectMirror, ValueMirror); | 579 inherits(ObjectMirror, ValueMirror); |
| 580 | 580 |
| 581 | 581 |
| 582 ObjectMirror.prototype.className = function() { | 582 ObjectMirror.prototype.className = function() { |
| 583 return %ClassOf(this.value_); | 583 return %_ClassOf(this.value_); |
| 584 }; | 584 }; |
| 585 | 585 |
| 586 | 586 |
| 587 ObjectMirror.prototype.constructorFunction = function() { | 587 ObjectMirror.prototype.constructorFunction = function() { |
| 588 return MakeMirror(%DebugGetProperty(this.value_, 'constructor')); | 588 return MakeMirror(%DebugGetProperty(this.value_, 'constructor')); |
| 589 }; | 589 }; |
| 590 | 590 |
| 591 | 591 |
| 592 ObjectMirror.prototype.prototypeObject = function() { | 592 ObjectMirror.prototype.prototypeObject = function() { |
| 593 return MakeMirror(%DebugGetProperty(this.value_, 'prototype')); | 593 return MakeMirror(%DebugGetProperty(this.value_, 'prototype')); |
| (...skipping 1675 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2269 } | 2269 } |
| 2270 if (!isFinite(value)) { | 2270 if (!isFinite(value)) { |
| 2271 if (value > 0) { | 2271 if (value > 0) { |
| 2272 return 'Infinity'; | 2272 return 'Infinity'; |
| 2273 } else { | 2273 } else { |
| 2274 return '-Infinity'; | 2274 return '-Infinity'; |
| 2275 } | 2275 } |
| 2276 } | 2276 } |
| 2277 return value; | 2277 return value; |
| 2278 } | 2278 } |
| OLD | NEW |