diff options
Diffstat (limited to 'deps/v8/src/wasm/module-instantiate.h')
-rw-r--r-- | deps/v8/src/wasm/module-instantiate.h | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/deps/v8/src/wasm/module-instantiate.h b/deps/v8/src/wasm/module-instantiate.h new file mode 100644 index 0000000000..15393969b9 --- /dev/null +++ b/deps/v8/src/wasm/module-instantiate.h @@ -0,0 +1,35 @@ +// Copyright 2019 the V8 project authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#ifndef V8_WASM_MODULE_INSTANTIATE_H_ +#define V8_WASM_MODULE_INSTANTIATE_H_ + +namespace v8 { +namespace internal { + +class Isolate; +class JSArrayBuffer; +class JSReceiver; +class WasmModuleObject; +class WasmInstanceObject; + +template <typename T> +class Handle; +template <typename T> +class MaybeHandle; + +namespace wasm { + +class ErrorThrower; + +MaybeHandle<WasmInstanceObject> InstantiateToInstanceObject( + Isolate* isolate, ErrorThrower* thrower, + Handle<WasmModuleObject> module_object, MaybeHandle<JSReceiver> imports, + MaybeHandle<JSArrayBuffer> memory); + +} // namespace wasm +} // namespace internal +} // namespace v8 + +#endif // V8_WASM_MODULE_INSTANTIATE_H_ |