| 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 1525 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1536 */ | 1536 */ |
| 1537 function FrameMirror(break_id, index) { | 1537 function FrameMirror(break_id, index) { |
| 1538 %_CallFunction(this, FRAME_TYPE, Mirror); | 1538 %_CallFunction(this, FRAME_TYPE, Mirror); |
| 1539 this.break_id_ = break_id; | 1539 this.break_id_ = break_id; |
| 1540 this.index_ = index; | 1540 this.index_ = index; |
| 1541 this.details_ = new FrameDetails(break_id, index); | 1541 this.details_ = new FrameDetails(break_id, index); |
| 1542 } | 1542 } |
| 1543 inherits(FrameMirror, Mirror); | 1543 inherits(FrameMirror, Mirror); |
| 1544 | 1544 |
| 1545 | 1545 |
| 1546 FrameMirror.prototype.details = function() { |
| 1547 return this.details_; |
| 1548 }; |
| 1549 |
| 1550 |
| 1546 FrameMirror.prototype.index = function() { | 1551 FrameMirror.prototype.index = function() { |
| 1547 return this.index_; | 1552 return this.index_; |
| 1548 }; | 1553 }; |
| 1549 | 1554 |
| 1550 | 1555 |
| 1551 FrameMirror.prototype.func = function() { | 1556 FrameMirror.prototype.func = function() { |
| 1552 if (this.func_) { | 1557 if (this.func_) { |
| 1553 return this.func_; | 1558 return this.func_; |
| 1554 } | 1559 } |
| 1555 | 1560 |
| (...skipping 401 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1957 this.frame_index_ = frame.index_; | 1962 this.frame_index_ = frame.index_; |
| 1958 } else { | 1963 } else { |
| 1959 this.frame_index_ = undefined; | 1964 this.frame_index_ = undefined; |
| 1960 } | 1965 } |
| 1961 this.scope_index_ = index; | 1966 this.scope_index_ = index; |
| 1962 this.details_ = new ScopeDetails(frame, function, index, opt_details); | 1967 this.details_ = new ScopeDetails(frame, function, index, opt_details); |
| 1963 } | 1968 } |
| 1964 inherits(ScopeMirror, Mirror); | 1969 inherits(ScopeMirror, Mirror); |
| 1965 | 1970 |
| 1966 | 1971 |
| 1972 ScopeMirror.prototype.details = function() { |
| 1973 return this.details_; |
| 1974 }; |
| 1975 |
| 1976 |
| 1967 ScopeMirror.prototype.frameIndex = function() { | 1977 ScopeMirror.prototype.frameIndex = function() { |
| 1968 return this.frame_index_; | 1978 return this.frame_index_; |
| 1969 }; | 1979 }; |
| 1970 | 1980 |
| 1971 | 1981 |
| 1972 ScopeMirror.prototype.scopeIndex = function() { | 1982 ScopeMirror.prototype.scopeIndex = function() { |
| 1973 return this.scope_index_; | 1983 return this.scope_index_; |
| 1974 }; | 1984 }; |
| 1975 | 1985 |
| 1976 | 1986 |
| (...skipping 696 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2673 } | 2683 } |
| 2674 if (!NUMBER_IS_FINITE(value)) { | 2684 if (!NUMBER_IS_FINITE(value)) { |
| 2675 if (value > 0) { | 2685 if (value > 0) { |
| 2676 return 'Infinity'; | 2686 return 'Infinity'; |
| 2677 } else { | 2687 } else { |
| 2678 return '-Infinity'; | 2688 return '-Infinity'; |
| 2679 } | 2689 } |
| 2680 } | 2690 } |
| 2681 return value; | 2691 return value; |
| 2682 } | 2692 } |
| OLD | NEW |