Index: include/v8.h |
diff --git a/include/v8.h b/include/v8.h |
index 88e9a611cc142277eac35ed717f3e390b2ba09d1..3e5e19a72b86bee78881df78283e3bd7a68edee2 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 by the same version of V8. |
* |
* \param source Script source code. |
* \return Compiled script object (context independent; for running it must be |