| OLD | NEW |
| 1 // Copyright 2015 the V8 project authors. All rights reserved. | 1 // Copyright 2015 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_H_ | 5 #ifndef V8_WASM_MODULE_H_ |
| 6 #define V8_WASM_MODULE_H_ | 6 #define V8_WASM_MODULE_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "src/api.h" | 10 #include "src/api.h" |
| (...skipping 392 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 403 | 403 |
| 404 namespace testing { | 404 namespace testing { |
| 405 | 405 |
| 406 // Decode, verify, and run the function labeled "main" in the | 406 // Decode, verify, and run the function labeled "main" in the |
| 407 // given encoded module. The module should have no imports. | 407 // given encoded module. The module should have no imports. |
| 408 int32_t CompileAndRunWasmModule(Isolate* isolate, const byte* module_start, | 408 int32_t CompileAndRunWasmModule(Isolate* isolate, const byte* module_start, |
| 409 const byte* module_end, bool asm_js = false); | 409 const byte* module_end, bool asm_js = false); |
| 410 | 410 |
| 411 int32_t CallFunction(Isolate* isolate, Handle<JSObject> instance, | 411 int32_t CallFunction(Isolate* isolate, Handle<JSObject> instance, |
| 412 ErrorThrower* thrower, const char* name, int argc, | 412 ErrorThrower* thrower, const char* name, int argc, |
| 413 Handle<Object> argv[]); | 413 Handle<Object> argv[], bool asm_js = false); |
| 414 } // namespace testing | 414 } // namespace testing |
| 415 } // namespace wasm | 415 } // namespace wasm |
| 416 } // namespace internal | 416 } // namespace internal |
| 417 } // namespace v8 | 417 } // namespace v8 |
| 418 | 418 |
| 419 #endif // V8_WASM_MODULE_H_ | 419 #endif // V8_WASM_MODULE_H_ |
| OLD | NEW |