| OLD | NEW |
| 1 // Copyright 2016 the V8 project authors. All rights reserved. | 1 // Copyright 2016 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef V8_WASM_MODULE_RUNNER_H_ | 5 #ifndef V8_WASM_MODULE_RUNNER_H_ |
| 6 #define V8_WASM_MODULE_RUNNER_H_ | 6 #define V8_WASM_MODULE_RUNNER_H_ |
| 7 | 7 |
| 8 #include "src/handles.h" | |
| 9 #include "src/isolate.h" | 8 #include "src/isolate.h" |
| 10 #include "src/objects.h" | 9 #include "src/objects.h" |
| 11 #include "src/wasm/wasm-interpreter.h" | 10 #include "src/wasm/wasm-interpreter.h" |
| 12 #include "src/wasm/wasm-module.h" | 11 #include "src/wasm/wasm-module.h" |
| 13 #include "src/wasm/wasm-objects.h" | 12 #include "src/wasm/wasm-objects.h" |
| 14 #include "src/wasm/wasm-result.h" | 13 #include "src/wasm/wasm-result.h" |
| 15 #include "src/zone/zone.h" | 14 #include "src/zone/zone.h" |
| 16 | 15 |
| 17 namespace v8 { | 16 namespace v8 { |
| 18 namespace internal { | 17 namespace internal { |
| 18 |
| 19 template <typename T> |
| 20 class Handle; |
| 21 |
| 19 namespace wasm { | 22 namespace wasm { |
| 20 namespace testing { | 23 namespace testing { |
| 21 | 24 |
| 22 // Decodes the given encoded module. | 25 // Decodes the given encoded module. |
| 23 const WasmModule* DecodeWasmModuleForTesting( | 26 const WasmModule* DecodeWasmModuleForTesting( |
| 24 Isolate* isolate, ErrorThrower* thrower, const byte* module_start, | 27 Isolate* isolate, ErrorThrower* thrower, const byte* module_start, |
| 25 const byte* module_end, ModuleOrigin origin, bool verify_functions = false); | 28 const byte* module_end, ModuleOrigin origin, bool verify_functions = false); |
| 26 | 29 |
| 27 // Instantiates a module without any imports and exports. | 30 // Instantiates a module without any imports and exports. |
| 28 const Handle<WasmInstanceObject> InstantiateModuleForTesting( | 31 const Handle<WasmInstanceObject> InstantiateModuleForTesting( |
| (...skipping 29 matching lines...) Expand all Loading... |
| 58 int argc, Handle<Object> argv[], | 61 int argc, Handle<Object> argv[], |
| 59 ModuleOrigin origin); | 62 ModuleOrigin origin); |
| 60 // Install function map, module symbol for testing | 63 // Install function map, module symbol for testing |
| 61 void SetupIsolateForWasmModule(Isolate* isolate); | 64 void SetupIsolateForWasmModule(Isolate* isolate); |
| 62 } // namespace testing | 65 } // namespace testing |
| 63 } // namespace wasm | 66 } // namespace wasm |
| 64 } // namespace internal | 67 } // namespace internal |
| 65 } // namespace v8 | 68 } // namespace v8 |
| 66 | 69 |
| 67 #endif // V8_WASM_MODULE_RUNNER_H_ | 70 #endif // V8_WASM_MODULE_RUNNER_H_ |
| OLD | NEW |