Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'deps/v8/src/wasm/wasm-engine.h')
-rw-r--r--deps/v8/src/wasm/wasm-engine.h21
1 files changed, 12 insertions, 9 deletions
diff --git a/deps/v8/src/wasm/wasm-engine.h b/deps/v8/src/wasm/wasm-engine.h
index 7d14fef5061..8e59b3f5df6 100644
--- a/deps/v8/src/wasm/wasm-engine.h
+++ b/deps/v8/src/wasm/wasm-engine.h
@@ -31,15 +31,17 @@ class JSArrayBuffer;
namespace wasm {
+#ifdef V8_ENABLE_WASM_GDB_REMOTE_DEBUGGING
+namespace gdb_server {
+class GdbServer;
+}
+#endif // V8_ENABLE_WASM_GDB_REMOTE_DEBUGGING
+
class AsyncCompileJob;
class ErrorThrower;
struct ModuleWireBytes;
class WasmFeatures;
-namespace gdb_server {
-class GdbServer;
-}
-
class V8_EXPORT_PRIVATE CompilationResultResolver {
public:
virtual void OnCompilationSucceeded(Handle<WasmModuleObject> result) = 0;
@@ -193,10 +195,6 @@ class V8_EXPORT_PRIVATE WasmEngine {
void CompileFunction(Isolate* isolate, NativeModule* native_module,
uint32_t function_index, ExecutionTier tier);
- // Recompiles all functions at a specific compilation tier.
- void RecompileAllFunctions(Isolate* isolate, NativeModule* native_module,
- ExecutionTier tier);
-
void TierDownAllModulesPerIsolate(Isolate* isolate);
void TierUpAllModulesPerIsolate(Isolate* isolate);
@@ -208,7 +206,8 @@ class V8_EXPORT_PRIVATE WasmEngine {
// Imports the shared part of a module from a different Context/Isolate using
// the the same engine, recreating a full module object in the given Isolate.
Handle<WasmModuleObject> ImportNativeModule(
- Isolate* isolate, std::shared_ptr<NativeModule> shared_module);
+ Isolate* isolate, std::shared_ptr<NativeModule> shared_module,
+ Vector<const char> source_url);
WasmCodeManager* code_manager() { return &code_manager_; }
@@ -335,6 +334,10 @@ class V8_EXPORT_PRIVATE WasmEngine {
void FreeDeadCode(const DeadCodeMap&);
void FreeDeadCodeLocked(const DeadCodeMap&);
+ Handle<Script> GetOrCreateScript(Isolate*,
+ const std::shared_ptr<NativeModule>&,
+ Vector<const char> source_url = {});
+
// Call on process start and exit.
static void InitializeOncePerProcess();
static void GlobalTearDown();