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 770 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
781 * Returns the script id value. | 781 * Returns the script id value. |
782 */ | 782 */ |
783 Local<Value> Id(); | 783 Local<Value> Id(); |
784 | 784 |
785 /** | 785 /** |
786 * Associate an additional data object with the script. This is mainly used | 786 * Associate an additional data object with the script. This is mainly used |
787 * with the debugger as this data object is only available through the | 787 * with the debugger as this data object is only available through the |
788 * debugger API. | 788 * debugger API. |
789 */ | 789 */ |
790 void SetData(Handle<String> data); | 790 void SetData(Handle<String> data); |
| 791 |
| 792 /** |
| 793 * Returns the name value of one Script. |
| 794 */ |
| 795 Handle<Value> GetScriptName(); |
| 796 |
| 797 /** |
| 798 * Returns zero based line number of the code_pos location in the script. |
| 799 * -1 will be returned if no information available. |
| 800 */ |
| 801 int GetLineNumber(int code_pos); |
791 }; | 802 }; |
792 | 803 |
793 | 804 |
794 /** | 805 /** |
795 * An error message. | 806 * An error message. |
796 */ | 807 */ |
797 class V8EXPORT Message { | 808 class V8EXPORT Message { |
798 public: | 809 public: |
799 Local<String> Get() const; | 810 Local<String> Get() const; |
800 Local<String> GetSourceLine() const; | 811 Local<String> GetSourceLine() const; |
(...skipping 4357 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5158 | 5169 |
5159 | 5170 |
5160 } // namespace v8 | 5171 } // namespace v8 |
5161 | 5172 |
5162 | 5173 |
5163 #undef V8EXPORT | 5174 #undef V8EXPORT |
5164 #undef TYPE_CHECK | 5175 #undef TYPE_CHECK |
5165 | 5176 |
5166 | 5177 |
5167 #endif // V8_H_ | 5178 #endif // V8_H_ |
OLD | NEW |