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 // 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 1674 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1685 FrameMirror.prototype.scopeCount = function() { | 1685 FrameMirror.prototype.scopeCount = function() { |
1686 return this.details_.scopeCount(); | 1686 return this.details_.scopeCount(); |
1687 }; | 1687 }; |
1688 | 1688 |
1689 | 1689 |
1690 FrameMirror.prototype.scope = function(index) { | 1690 FrameMirror.prototype.scope = function(index) { |
1691 return new ScopeMirror(this, UNDEFINED, index); | 1691 return new ScopeMirror(this, UNDEFINED, index); |
1692 }; | 1692 }; |
1693 | 1693 |
1694 | 1694 |
1695 FrameMirror.prototype.allScopes = function() { | 1695 FrameMirror.prototype.allScopes = function(opt_ignore_nested_scopes) { |
1696 var scopeDetails = %GetAllScopesDetails(this.break_id_, | 1696 var scopeDetails = %GetAllScopesDetails(this.break_id_, |
1697 this.details_.frameId(), | 1697 this.details_.frameId(), |
1698 this.details_.inlinedFrameIndex()); | 1698 this.details_.inlinedFrameIndex(), |
| 1699 !!opt_ignore_nested_scopes); |
1699 var result = []; | 1700 var result = []; |
1700 for (var i = 0; i < scopeDetails.length; ++i) { | 1701 for (var i = 0; i < scopeDetails.length; ++i) { |
1701 result.push(new ScopeMirror(this, UNDEFINED, i, scopeDetails[i])); | 1702 result.push(new ScopeMirror(this, UNDEFINED, i, scopeDetails[i])); |
1702 } | 1703 } |
1703 return result; | 1704 return result; |
1704 }; | 1705 }; |
1705 | 1706 |
1706 | 1707 |
1707 FrameMirror.prototype.stepInPositions = function() { | 1708 FrameMirror.prototype.stepInPositions = function() { |
1708 var script = this.func().script(); | 1709 var script = this.func().script(); |
(...skipping 974 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2683 } | 2684 } |
2684 if (!NUMBER_IS_FINITE(value)) { | 2685 if (!NUMBER_IS_FINITE(value)) { |
2685 if (value > 0) { | 2686 if (value > 0) { |
2686 return 'Infinity'; | 2687 return 'Infinity'; |
2687 } else { | 2688 } else { |
2688 return '-Infinity'; | 2689 return '-Infinity'; |
2689 } | 2690 } |
2690 } | 2691 } |
2691 return value; | 2692 return value; |
2692 } | 2693 } |
OLD | NEW |