Chromium Code Reviews| Index: include/v8.h |
| diff --git a/include/v8.h b/include/v8.h |
| index 88e9a611cc142277eac35ed717f3e390b2ba09d1..46264a3d2973307c9c7b792f179118044f266c8d 100644 |
| --- a/include/v8.h |
| +++ b/include/v8.h |
| @@ -1087,6 +1087,12 @@ class V8_EXPORT ScriptCompiler { |
| /** |
| * Compiles the specified script (context-independent). |
| + * Cached data as part of the source object can be optionally produced to be |
| + * consumed later to speed up compilation of identical source scripts. |
| + * |
| + * Note that when producing cached data, the source must point to NULL for |
| + * cached data. When consuming cached data, the cached data must have been |
| + * produced the the same version of V8. |
|
marja
2014/07/10 08:48:10
Nit: the the -> by the
Yang
2014/07/10 10:27:58
Done.
|
| * |
| * \param source Script source code. |
| * \return Compiled script object (context independent; for running it must be |