OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 /** \mainpage V8 API Reference Guide | 5 /** \mainpage V8 API Reference Guide |
6 * | 6 * |
7 * V8 is Google's open source JavaScript engine. | 7 * V8 is Google's open source JavaScript engine. |
8 * | 8 * |
9 * This set of documents provides reference material generated from the | 9 * This set of documents provides reference material generated from the |
10 * V8 header file, include/v8.h. | 10 * V8 header file, include/v8.h. |
(...skipping 929 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
940 public: | 940 public: |
941 /** | 941 /** |
942 * Binds the script to the currently entered context. | 942 * Binds the script to the currently entered context. |
943 */ | 943 */ |
944 Local<Script> BindToCurrentContext(); | 944 Local<Script> BindToCurrentContext(); |
945 | 945 |
946 int GetId(); | 946 int GetId(); |
947 Handle<Value> GetScriptName(); | 947 Handle<Value> GetScriptName(); |
948 | 948 |
949 /** | 949 /** |
| 950 * Data read from magic sourceURL comments. |
| 951 */ |
| 952 Handle<Value> GetSourceURL(); |
| 953 /** |
| 954 * Data read from magic sourceMappingURL comments. |
| 955 */ |
| 956 Handle<Value> GetSourceMappingURL(); |
| 957 |
| 958 /** |
950 * Returns zero based line number of the code_pos location in the script. | 959 * Returns zero based line number of the code_pos location in the script. |
951 * -1 will be returned if no information available. | 960 * -1 will be returned if no information available. |
952 */ | 961 */ |
953 int GetLineNumber(int code_pos); | 962 int GetLineNumber(int code_pos); |
954 | 963 |
955 static const int kNoScriptId = 0; | 964 static const int kNoScriptId = 0; |
956 }; | 965 }; |
957 | 966 |
958 | 967 |
959 /** | 968 /** |
(...skipping 5742 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6702 */ | 6711 */ |
6703 | 6712 |
6704 | 6713 |
6705 } // namespace v8 | 6714 } // namespace v8 |
6706 | 6715 |
6707 | 6716 |
6708 #undef TYPE_CHECK | 6717 #undef TYPE_CHECK |
6709 | 6718 |
6710 | 6719 |
6711 #endif // V8_H_ | 6720 #endif // V8_H_ |
OLD | NEW |