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 1220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1231 /** | 1231 /** |
1232 * Compiles a streamed script (bound to current context). | 1232 * Compiles a streamed script (bound to current context). |
1233 * | 1233 * |
1234 * This can only be called after the streaming has finished | 1234 * This can only be called after the streaming has finished |
1235 * (ScriptStreamingTask has been run). V8 doesn't construct the source string | 1235 * (ScriptStreamingTask has been run). V8 doesn't construct the source string |
1236 * during streaming, so the embedder needs to pass the full source here. | 1236 * during streaming, so the embedder needs to pass the full source here. |
1237 */ | 1237 */ |
1238 static Local<Script> Compile(Isolate* isolate, StreamedSource* source, | 1238 static Local<Script> Compile(Isolate* isolate, StreamedSource* source, |
1239 Handle<String> full_source_string, | 1239 Handle<String> full_source_string, |
1240 const ScriptOrigin& origin); | 1240 const ScriptOrigin& origin); |
| 1241 |
| 1242 /** |
| 1243 * Return a version tag for CachedData for the current V8 version & flags. |
| 1244 * |
| 1245 * This value is meant only for determining whether a previously generated |
| 1246 * CachedData instance is still valid; the tag has no other meaing. |
| 1247 * |
| 1248 * Background: The data carried by CachedData may depend on the exact |
| 1249 * V8 version number or currently compiler flags. This means when |
| 1250 * persisting CachedData, the embedder must take care to not pass in |
| 1251 * data from another V8 version, or the same version with different |
| 1252 * features enabled. |
| 1253 * |
| 1254 * The easiest way to do so is to clear the embedder's cache on any |
| 1255 * such change. |
| 1256 * |
| 1257 * Alternatively, this tag can be stored alongside the cached data and |
| 1258 * compared when it is being used. |
| 1259 */ |
| 1260 static uint32_t CachedDataVersionTag(); |
1241 }; | 1261 }; |
1242 | 1262 |
1243 | 1263 |
1244 /** | 1264 /** |
1245 * An error message. | 1265 * An error message. |
1246 */ | 1266 */ |
1247 class V8_EXPORT Message { | 1267 class V8_EXPORT Message { |
1248 public: | 1268 public: |
1249 Local<String> Get() const; | 1269 Local<String> Get() const; |
1250 Local<String> GetSourceLine() const; | 1270 Local<String> GetSourceLine() const; |
(...skipping 6156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7407 */ | 7427 */ |
7408 | 7428 |
7409 | 7429 |
7410 } // namespace v8 | 7430 } // namespace v8 |
7411 | 7431 |
7412 | 7432 |
7413 #undef TYPE_CHECK | 7433 #undef TYPE_CHECK |
7414 | 7434 |
7415 | 7435 |
7416 #endif // V8_H_ | 7436 #endif // V8_H_ |
OLD | NEW |