| OLD | NEW |
| 1 // Copyright 2007-2009 the V8 project authors. All rights reserved. | 1 // Copyright 2007-2009 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 740 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 751 * Flags that determine what information is placed captured for each | 751 * Flags that determine what information is placed captured for each |
| 752 * StackFrame when grabbing the current stack trace. | 752 * StackFrame when grabbing the current stack trace. |
| 753 */ | 753 */ |
| 754 enum StackTraceOptions { | 754 enum StackTraceOptions { |
| 755 kLineNumber = 1, | 755 kLineNumber = 1, |
| 756 kColumnOffset = 1 << 1 | kLineNumber, | 756 kColumnOffset = 1 << 1 | kLineNumber, |
| 757 kScriptName = 1 << 2, | 757 kScriptName = 1 << 2, |
| 758 kFunctionName = 1 << 3, | 758 kFunctionName = 1 << 3, |
| 759 kIsEval = 1 << 4, | 759 kIsEval = 1 << 4, |
| 760 kIsConstructor = 1 << 5, | 760 kIsConstructor = 1 << 5, |
| 761 kScriptNameOrSourceURL = 1 << 6, |
| 761 kOverview = kLineNumber | kColumnOffset | kScriptName | kFunctionName, | 762 kOverview = kLineNumber | kColumnOffset | kScriptName | kFunctionName, |
| 762 kDetailed = kOverview | kIsEval | kIsConstructor | 763 kDetailed = kOverview | kIsEval | kIsConstructor | kScriptNameOrSourceURL |
| 763 }; | 764 }; |
| 764 | 765 |
| 765 /** | 766 /** |
| 766 * Returns a StackFrame at a particular index. | 767 * Returns a StackFrame at a particular index. |
| 767 */ | 768 */ |
| 768 Local<StackFrame> GetFrame(uint32_t index) const; | 769 Local<StackFrame> GetFrame(uint32_t index) const; |
| 769 | 770 |
| 770 /** | 771 /** |
| 771 * Returns the number of StackFrames. | 772 * Returns the number of StackFrames. |
| 772 */ | 773 */ |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 812 */ | 813 */ |
| 813 int GetColumn() const; | 814 int GetColumn() const; |
| 814 | 815 |
| 815 /** | 816 /** |
| 816 * Returns the name of the resource that contains the script for the | 817 * Returns the name of the resource that contains the script for the |
| 817 * function for this StackFrame. | 818 * function for this StackFrame. |
| 818 */ | 819 */ |
| 819 Local<String> GetScriptName() const; | 820 Local<String> GetScriptName() const; |
| 820 | 821 |
| 821 /** | 822 /** |
| 823 * Returns the name of the resource that contains the script for the |
| 824 * function for this StackFrame or sourceURL value if the script name |
| 825 * is undefined and its source ends with //@ sourceURL=... string. |
| 826 */ |
| 827 Local<String> GetScriptNameOrSourceURL() const; |
| 828 |
| 829 /** |
| 822 * Returns the name of the function associated with this stack frame. | 830 * Returns the name of the function associated with this stack frame. |
| 823 */ | 831 */ |
| 824 Local<String> GetFunctionName() const; | 832 Local<String> GetFunctionName() const; |
| 825 | 833 |
| 826 /** | 834 /** |
| 827 * Returns whether or not the associated function is compiled via a call to | 835 * Returns whether or not the associated function is compiled via a call to |
| 828 * eval(). | 836 * eval(). |
| 829 */ | 837 */ |
| 830 bool IsEval() const; | 838 bool IsEval() const; |
| 831 | 839 |
| (...skipping 2883 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3715 | 3723 |
| 3716 | 3724 |
| 3717 } // namespace v8 | 3725 } // namespace v8 |
| 3718 | 3726 |
| 3719 | 3727 |
| 3720 #undef V8EXPORT | 3728 #undef V8EXPORT |
| 3721 #undef TYPE_CHECK | 3729 #undef TYPE_CHECK |
| 3722 | 3730 |
| 3723 | 3731 |
| 3724 #endif // V8_H_ | 3732 #endif // V8_H_ |
| OLD | NEW |