summaryrefslogtreecommitdiff
path: root/doc/api/v8.md
diff options
context:
space:
mode:
Diffstat (limited to 'doc/api/v8.md')
-rw-r--r--doc/api/v8.md11
1 files changed, 11 insertions, 0 deletions
diff --git a/doc/api/v8.md b/doc/api/v8.md
index be222bbabf..173d0abeef 100644
--- a/doc/api/v8.md
+++ b/doc/api/v8.md
@@ -9,6 +9,16 @@ const v8 = require('v8');
*Note*: The APIs and implementation are subject to change at any time.
+## v8.cachedDataVersionTag()
+<!-- YAML
+added: REPLACEME
+-->
+
+Returns an integer representing a "version tag" derived from the V8 version,
+command line flags and detected CPU features. This is useful for determining
+whether a [`vm.Script`][] `cachedData` buffer is compatible with this instance
+of V8.
+
## v8.getHeapSpaceStatistics()
<!-- YAML
added: v6.0.0
@@ -144,5 +154,6 @@ setTimeout(function() { v8.setFlagsFromString('--notrace_gc'); }, 60e3);
```
[V8]: https://developers.google.com/v8/
+[`vm.Script`]: vm.html#vm_new_vm_script_code_options
[here]: https://github.com/thlorenz/v8-flags/blob/master/flags-0.11.md
[`GetHeapSpaceStatistics`]: https://v8docs.nodesource.com/node-5.0/d5/dda/classv8_1_1_isolate.html#ac673576f24fdc7a33378f8f57e1d13a4