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 1367 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1378 * such change. | 1378 * such change. |
1379 * | 1379 * |
1380 * Alternatively, this tag can be stored alongside the cached data and | 1380 * Alternatively, this tag can be stored alongside the cached data and |
1381 * compared when it is being used. | 1381 * compared when it is being used. |
1382 */ | 1382 */ |
1383 static uint32_t CachedDataVersionTag(); | 1383 static uint32_t CachedDataVersionTag(); |
1384 | 1384 |
1385 /** | 1385 /** |
1386 * Compile an ES6 module. | 1386 * Compile an ES6 module. |
1387 * | 1387 * |
1388 * This is an experimental feature. | 1388 * This is an unfinished experimental feature, and is only exposed |
| 1389 * here for internal testing purposes. |
| 1390 * Only parsing works at the moment. Do not use. |
1389 * | 1391 * |
1390 * TODO(adamk): Script is likely the wrong return value for this; | 1392 * TODO(adamk): Script is likely the wrong return value for this; |
1391 * should return some new Module type. | 1393 * should return some new Module type. |
1392 */ | 1394 */ |
1393 static V8_DEPRECATE_SOON( | |
1394 "Use maybe version", | |
1395 Local<Script> CompileModule(Isolate* isolate, Source* source, | |
1396 CompileOptions options = kNoCompileOptions)); | |
1397 static V8_WARN_UNUSED_RESULT MaybeLocal<Script> CompileModule( | 1395 static V8_WARN_UNUSED_RESULT MaybeLocal<Script> CompileModule( |
1398 Local<Context> context, Source* source, | 1396 Local<Context> context, Source* source, |
1399 CompileOptions options = kNoCompileOptions); | 1397 CompileOptions options = kNoCompileOptions); |
1400 | 1398 |
1401 /** | 1399 /** |
1402 * Compile a function for a given context. This is equivalent to running | 1400 * Compile a function for a given context. This is equivalent to running |
1403 * | 1401 * |
1404 * with (obj) { | 1402 * with (obj) { |
1405 * return function(args) { ... } | 1403 * return function(args) { ... } |
1406 * } | 1404 * } |
(...skipping 6912 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8319 */ | 8317 */ |
8320 | 8318 |
8321 | 8319 |
8322 } // namespace v8 | 8320 } // namespace v8 |
8323 | 8321 |
8324 | 8322 |
8325 #undef TYPE_CHECK | 8323 #undef TYPE_CHECK |
8326 | 8324 |
8327 | 8325 |
8328 #endif // V8_H_ | 8326 #endif // V8_H_ |
OLD | NEW |