From 7b2ffa587235a47d4094787d72f38102089f402a Mon Sep 17 00:00:00 2001 From: Allan Sandfeld Jensen Date: Wed, 31 Jul 2019 15:50:41 +0200 Subject: BASELINE: Update Chromium to 76.0.3809.94 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I321c3f5f929c105aec0f98c5091ef6108822e647 Reviewed-by: Michael BrĂ¼ning --- chromium/v8/src/wasm/module-compiler.h | 26 +++++++++++++++++++++----- 1 file changed, 21 insertions(+), 5 deletions(-) (limited to 'chromium/v8/src/wasm/module-compiler.h') diff --git a/chromium/v8/src/wasm/module-compiler.h b/chromium/v8/src/wasm/module-compiler.h index cf5098f6130..d465d6a3221 100644 --- a/chromium/v8/src/wasm/module-compiler.h +++ b/chromium/v8/src/wasm/module-compiler.h @@ -9,10 +9,11 @@ #include #include -#include "src/cancelable-task.h" -#include "src/globals.h" +#include "src/common/globals.h" +#include "src/tasks/cancelable-task.h" #include "src/wasm/compilation-environment.h" #include "src/wasm/wasm-features.h" +#include "src/wasm/wasm-import-wrapper-cache.h" #include "src/wasm/wasm-module.h" namespace v8 { @@ -46,12 +47,25 @@ V8_EXPORT_PRIVATE void CompileJsToWasmWrappers(Isolate* isolate, const WasmModule* module, Handle export_wrappers); +// Compiles the wrapper for this (kind, sig) pair and sets the corresponding +// cache entry. Assumes the key already exists in the cache but has not been +// compiled yet. +V8_EXPORT_PRIVATE +WasmCode* CompileImportWrapper( + WasmEngine* wasm_engine, NativeModule* native_module, Counters* counters, + compiler::WasmImportCallKind kind, FunctionSig* sig, + WasmImportWrapperCache::ModificationScope* cache_scope); + V8_EXPORT_PRIVATE Handle