From 8d27477acf59b7a15b2cf78c957e3fd1dc3245f5 Mon Sep 17 00:00:00 2001 From: Yang Guo Date: Wed, 30 May 2018 09:08:12 +0200 Subject: deps: V8: cherry-pick a440efb27f from upstream MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Commit-Queue: Yang Guo Cr-Commit-Position: refs/heads/master@{#52614} PR-URL: https://github.com/nodejs/node/pull/21022 Reviewed-By: Ben Noordhuis Reviewed-By: Michaƫl Zasso Reviewed-By: Gus Caplan Reviewed-By: Tiancheng "Timothy" Gu --- deps/v8/include/v8.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'deps/v8/include') 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 unbound_script); + + // Deprecated. static CachedData* CreateCodeCache(Local unbound_script, Local 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); + + // Deprecated. static CachedData* CreateCodeCacheForFunction(Local function, Local source); -- cgit v1.2.3