OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 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 746 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
757 * Returns the script id value. | 757 * Returns the script id value. |
758 */ | 758 */ |
759 Local<Value> Id(); | 759 Local<Value> Id(); |
760 | 760 |
761 /** | 761 /** |
762 * Associate an additional data object with the script. This is mainly used | 762 * Associate an additional data object with the script. This is mainly used |
763 * with the debugger as this data object is only available through the | 763 * with the debugger as this data object is only available through the |
764 * debugger API. | 764 * debugger API. |
765 */ | 765 */ |
766 void SetData(Handle<String> data); | 766 void SetData(Handle<String> data); |
| 767 |
| 768 /** |
| 769 * Returns the name value of one Script. |
| 770 */ |
| 771 Handle<Value> GetScriptName(); |
| 772 |
| 773 /** |
| 774 * Returns zero based line number of the code_pos location in the script. |
| 775 * -1 will be returned if no information available. |
| 776 */ |
| 777 int GetLineNumber(int code_pos); |
767 }; | 778 }; |
768 | 779 |
769 | 780 |
770 /** | 781 /** |
771 * An error message. | 782 * An error message. |
772 */ | 783 */ |
773 class V8EXPORT Message { | 784 class V8EXPORT Message { |
774 public: | 785 public: |
775 Local<String> Get() const; | 786 Local<String> Get() const; |
776 Local<String> GetSourceLine() const; | 787 Local<String> GetSourceLine() const; |
(...skipping 4273 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5050 | 5061 |
5051 | 5062 |
5052 } // namespace v8 | 5063 } // namespace v8 |
5053 | 5064 |
5054 | 5065 |
5055 #undef V8EXPORT | 5066 #undef V8EXPORT |
5056 #undef TYPE_CHECK | 5067 #undef TYPE_CHECK |
5057 | 5068 |
5058 | 5069 |
5059 #endif // V8_H_ | 5070 #endif // V8_H_ |
OLD | NEW |