| 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 1290 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1301 * data from another V8 version, or the same version with different | 1301 * data from another V8 version, or the same version with different |
| 1302 * features enabled. | 1302 * features enabled. |
| 1303 * | 1303 * |
| 1304 * The easiest way to do so is to clear the embedder's cache on any | 1304 * The easiest way to do so is to clear the embedder's cache on any |
| 1305 * such change. | 1305 * such change. |
| 1306 * | 1306 * |
| 1307 * Alternatively, this tag can be stored alongside the cached data and | 1307 * Alternatively, this tag can be stored alongside the cached data and |
| 1308 * compared when it is being used. | 1308 * compared when it is being used. |
| 1309 */ | 1309 */ |
| 1310 static uint32_t CachedDataVersionTag(); | 1310 static uint32_t CachedDataVersionTag(); |
| 1311 |
| 1312 /** |
| 1313 * Compile an ES6 module. |
| 1314 * |
| 1315 * This is an experimental feature. |
| 1316 * |
| 1317 * TODO(adamk): Script is likely the wrong return value for this; |
| 1318 * should return some new Module type. |
| 1319 */ |
| 1320 static Local<Script> CompileModule( |
| 1321 Isolate* isolate, Source* source, |
| 1322 CompileOptions options = kNoCompileOptions); |
| 1323 |
| 1324 private: |
| 1325 static Local<UnboundScript> CompileUnboundInternal(Isolate* isolate, |
| 1326 Source* source, |
| 1327 CompileOptions options, |
| 1328 bool is_module); |
| 1311 }; | 1329 }; |
| 1312 | 1330 |
| 1313 | 1331 |
| 1314 /** | 1332 /** |
| 1315 * An error message. | 1333 * An error message. |
| 1316 */ | 1334 */ |
| 1317 class V8_EXPORT Message { | 1335 class V8_EXPORT Message { |
| 1318 public: | 1336 public: |
| 1319 Local<String> Get() const; | 1337 Local<String> Get() const; |
| 1320 Local<String> GetSourceLine() const; | 1338 Local<String> GetSourceLine() const; |
| (...skipping 6181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7502 */ | 7520 */ |
| 7503 | 7521 |
| 7504 | 7522 |
| 7505 } // namespace v8 | 7523 } // namespace v8 |
| 7506 | 7524 |
| 7507 | 7525 |
| 7508 #undef TYPE_CHECK | 7526 #undef TYPE_CHECK |
| 7509 | 7527 |
| 7510 | 7528 |
| 7511 #endif // V8_H_ | 7529 #endif // V8_H_ |
| OLD | NEW |