| OLD | NEW |
| 1 // Copyright 2006-2008 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2012 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 |
| 11 // with the distribution. | 11 // with the distribution. |
| (...skipping 1731 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1743 result += ' = '; | 1743 result += ' = '; |
| 1744 result += this.localValue(i).toText(); | 1744 result += this.localValue(i).toText(); |
| 1745 if (i < locals_count - 1) result += '\n'; | 1745 if (i < locals_count - 1) result += '\n'; |
| 1746 } | 1746 } |
| 1747 } | 1747 } |
| 1748 | 1748 |
| 1749 return result; | 1749 return result; |
| 1750 }; | 1750 }; |
| 1751 | 1751 |
| 1752 | 1752 |
| 1753 FrameMirror.prototype.restart = function() { |
| 1754 var result = %LiveEditRestartFrame(this.break_id_, this.index_); |
| 1755 if (IS_UNDEFINED(result)) { |
| 1756 result = "Failed to find requested frame"; |
| 1757 } |
| 1758 return result; |
| 1759 }; |
| 1760 |
| 1761 |
| 1753 FrameMirror.prototype.toText = function(opt_locals) { | 1762 FrameMirror.prototype.toText = function(opt_locals) { |
| 1754 var result = ''; | 1763 var result = ''; |
| 1755 result += '#' + (this.index() <= 9 ? '0' : '') + this.index(); | 1764 result += '#' + (this.index() <= 9 ? '0' : '') + this.index(); |
| 1756 result += ' '; | 1765 result += ' '; |
| 1757 result += this.invocationText(); | 1766 result += this.invocationText(); |
| 1758 result += ' '; | 1767 result += ' '; |
| 1759 result += this.sourceAndPositionText(); | 1768 result += this.sourceAndPositionText(); |
| 1760 if (opt_locals) { | 1769 if (opt_locals) { |
| 1761 result += '\n'; | 1770 result += '\n'; |
| 1762 result += this.localsText(); | 1771 result += this.localsText(); |
| (...skipping 727 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2490 } | 2499 } |
| 2491 if (!NUMBER_IS_FINITE(value)) { | 2500 if (!NUMBER_IS_FINITE(value)) { |
| 2492 if (value > 0) { | 2501 if (value > 0) { |
| 2493 return 'Infinity'; | 2502 return 'Infinity'; |
| 2494 } else { | 2503 } else { |
| 2495 return '-Infinity'; | 2504 return '-Infinity'; |
| 2496 } | 2505 } |
| 2497 } | 2506 } |
| 2498 return value; | 2507 return value; |
| 2499 } | 2508 } |
| OLD | NEW |