| // 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_ |
| #include "include/v8-metrics.h" |
| #include "include/v8config.h" |
| class WasmInstanceObject; |
| MaybeHandle<WasmInstanceObject> InstantiateToInstanceObject( |
| Isolate* isolate, ErrorThrower* thrower, |
| Handle<WasmModuleObject> module_object, MaybeHandle<JSReceiver> imports, |
| MaybeHandle<JSArrayBuffer> memory); |
| bool LoadElemSegment(Isolate* isolate, Handle<WasmInstanceObject> instance, |
| uint32_t table_index, uint32_t segment_index, uint32_t dst, |
| uint32_t src, uint32_t count) V8_WARN_UNUSED_RESULT; |
| #endif // V8_WASM_MODULE_INSTANTIATE_H_ |