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 1266 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1277 public: | 1277 public: |
1278 virtual ~ScriptStreamingTask() {} | 1278 virtual ~ScriptStreamingTask() {} |
1279 virtual void Run() = 0; | 1279 virtual void Run() = 0; |
1280 }; | 1280 }; |
1281 | 1281 |
1282 enum CompileOptions { | 1282 enum CompileOptions { |
1283 kNoCompileOptions = 0, | 1283 kNoCompileOptions = 0, |
1284 kProduceParserCache, | 1284 kProduceParserCache, |
1285 kConsumeParserCache, | 1285 kConsumeParserCache, |
1286 kProduceCodeCache, | 1286 kProduceCodeCache, |
1287 kConsumeCodeCache, | 1287 kConsumeCodeCache |
1288 | |
1289 // Support the previous API for a transition period. | |
1290 kProduceDataToCache | |
1291 }; | 1288 }; |
1292 | 1289 |
1293 /** | 1290 /** |
1294 * Compiles the specified script (context-independent). | 1291 * Compiles the specified script (context-independent). |
1295 * Cached data as part of the source object can be optionally produced to be | 1292 * Cached data as part of the source object can be optionally produced to be |
1296 * consumed later to speed up compilation of identical source scripts. | 1293 * consumed later to speed up compilation of identical source scripts. |
1297 * | 1294 * |
1298 * Note that when producing cached data, the source must point to NULL for | 1295 * Note that when producing cached data, the source must point to NULL for |
1299 * cached data. When consuming cached data, the cached data must have been | 1296 * cached data. When consuming cached data, the cached data must have been |
1300 * produced by the same version of V8. | 1297 * produced by the same version of V8. |
(...skipping 7063 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8364 */ | 8361 */ |
8365 | 8362 |
8366 | 8363 |
8367 } // namespace v8 | 8364 } // namespace v8 |
8368 | 8365 |
8369 | 8366 |
8370 #undef TYPE_CHECK | 8367 #undef TYPE_CHECK |
8371 | 8368 |
8372 | 8369 |
8373 #endif // V8_H_ | 8370 #endif // V8_H_ |
OLD | NEW |