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 1180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1191 // Cached data from previous compilation (if a kConsume*Cache flag is | 1191 // Cached data from previous compilation (if a kConsume*Cache flag is |
1192 // set), or hold newly generated cache data (kProduce*Cache flags) are | 1192 // set), or hold newly generated cache data (kProduce*Cache flags) are |
1193 // set when calling a compile method. | 1193 // set when calling a compile method. |
1194 CachedData* cached_data; | 1194 CachedData* cached_data; |
1195 }; | 1195 }; |
1196 | 1196 |
1197 /** | 1197 /** |
1198 * For streaming incomplete script data to V8. The embedder should implement a | 1198 * For streaming incomplete script data to V8. The embedder should implement a |
1199 * subclass of this class. | 1199 * subclass of this class. |
1200 */ | 1200 */ |
1201 class ExternalSourceStream { | 1201 class V8_EXPORT ExternalSourceStream { |
1202 public: | 1202 public: |
1203 virtual ~ExternalSourceStream() {} | 1203 virtual ~ExternalSourceStream() {} |
1204 | 1204 |
1205 /** | 1205 /** |
1206 * V8 calls this to request the next chunk of data from the embedder. This | 1206 * V8 calls this to request the next chunk of data from the embedder. This |
1207 * function will be called on a background thread, so it's OK to block and | 1207 * function will be called on a background thread, so it's OK to block and |
1208 * wait for the data, if the embedder doesn't have data yet. Returns the | 1208 * wait for the data, if the embedder doesn't have data yet. Returns the |
1209 * length of the data returned. When the data ends, GetMoreData should | 1209 * length of the data returned. When the data ends, GetMoreData should |
1210 * return 0. Caller takes ownership of the data. | 1210 * return 0. Caller takes ownership of the data. |
1211 * | 1211 * |
(...skipping 7072 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8284 */ | 8284 */ |
8285 | 8285 |
8286 | 8286 |
8287 } // namespace v8 | 8287 } // namespace v8 |
8288 | 8288 |
8289 | 8289 |
8290 #undef TYPE_CHECK | 8290 #undef TYPE_CHECK |
8291 | 8291 |
8292 | 8292 |
8293 #endif // V8_H_ | 8293 #endif // V8_H_ |
OLD | NEW |