diff options
author | Yang Guo <yangguo@chromium.org> | 2018-05-30 09:08:12 +0200 |
---|---|---|
committer | Yang Guo <yangguo@chromium.org> | 2018-06-07 20:35:40 +0200 |
commit | 8d27477acf59b7a15b2cf78c957e3fd1dc3245f5 (patch) | |
tree | 0de43ef216942b1058ae8e3a727a05b50248ecf1 /deps/v8/include | |
parent | 44d1a46a4277083803024eed2fb37d70c7d2bbcc (diff) | |
download | android-node-v8-8d27477acf59b7a15b2cf78c957e3fd1dc3245f5.tar.gz android-node-v8-8d27477acf59b7a15b2cf78c957e3fd1dc3245f5.tar.bz2 android-node-v8-8d27477acf59b7a15b2cf78c957e3fd1dc3245f5.zip |
deps: V8: cherry-pick a440efb27f from upstream
Original commit message:
[api] do not require source string for producing code cache.
The embedder should not need to keep track of the source string.
R=jgruber@chromium.org
Cq-Include-Trybots: luci.chromium.try:linux_chromium_rel_ng
Change-Id: Ie27df755a22fbcae7b6e87a435419d2d8f545558
Reviewed-on: https://chromium-review.googlesource.com/1013482
Reviewed-by: Jakob Gruber <jgruber@chromium.org>
Commit-Queue: Yang Guo <yangguo@chromium.org>
Cr-Commit-Position: refs/heads/master@{#52614}
PR-URL: https://github.com/nodejs/node/pull/21022
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Michaƫl Zasso <targos@protonmail.com>
Reviewed-By: Gus Caplan <me@gus.host>
Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com>
Diffstat (limited to 'deps/v8/include')
-rw-r--r-- | deps/v8/include/v8.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/deps/v8/include/v8.h b/deps/v8/include/v8.h index ed1a6d4af1..6fb5e50dbe 100644 --- a/deps/v8/include/v8.h +++ b/deps/v8/include/v8.h @@ -1578,6 +1578,9 @@ class V8_EXPORT ScriptCompiler { * This will return nullptr if the script cannot be serialized. The * CachedData returned by this function should be owned by the caller. */ + static CachedData* CreateCodeCache(Local<UnboundScript> unbound_script); + + // Deprecated. static CachedData* CreateCodeCache(Local<UnboundScript> unbound_script, Local<String> source); @@ -1587,6 +1590,9 @@ class V8_EXPORT ScriptCompiler { * This will return nullptr if the script cannot be serialized. The * CachedData returned by this function should be owned by the caller. */ + static CachedData* CreateCodeCacheForFunction(Local<Function> function); + + // Deprecated. static CachedData* CreateCodeCacheForFunction(Local<Function> function, Local<String> source); |