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 401 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
412 ModuleOrigin origin, Handle<Script> asm_js_script, | 412 ModuleOrigin origin, Handle<Script> asm_js_script, |
413 Vector<const byte> asm_offset_table); | 413 Vector<const byte> asm_offset_table); |
414 | 414 |
415 V8_EXPORT_PRIVATE bool IsWasmCodegenAllowed(Isolate* isolate, | 415 V8_EXPORT_PRIVATE bool IsWasmCodegenAllowed(Isolate* isolate, |
416 Handle<Context> context); | 416 Handle<Context> context); |
417 | 417 |
418 V8_EXPORT_PRIVATE Handle<JSArray> GetImports(Isolate* isolate, | 418 V8_EXPORT_PRIVATE Handle<JSArray> GetImports(Isolate* isolate, |
419 Handle<WasmModuleObject> module); | 419 Handle<WasmModuleObject> module); |
420 V8_EXPORT_PRIVATE Handle<JSArray> GetExports(Isolate* isolate, | 420 V8_EXPORT_PRIVATE Handle<JSArray> GetExports(Isolate* isolate, |
421 Handle<WasmModuleObject> module); | 421 Handle<WasmModuleObject> module); |
422 | 422 V8_EXPORT_PRIVATE Handle<JSArray> GetCustomSections( |
423 V8_EXPORT_PRIVATE Handle<JSArray> GetExports(Isolate* isolate, | 423 Isolate* isolate, Handle<WasmModuleObject> module, Handle<String> name, |
424 Handle<WasmModuleObject> module); | 424 ErrorThrower* thrower); |
425 | 425 |
426 V8_EXPORT_PRIVATE bool ValidateModuleBytes(Isolate* isolate, const byte* start, | 426 V8_EXPORT_PRIVATE bool ValidateModuleBytes(Isolate* isolate, const byte* start, |
427 const byte* end, | 427 const byte* end, |
428 ErrorThrower* thrower, | 428 ErrorThrower* thrower, |
429 ModuleOrigin origin); | 429 ModuleOrigin origin); |
430 | 430 |
431 // Get the offset of the code of a function within a module. | 431 // Get the offset of the code of a function within a module. |
432 int GetFunctionCodeOffset(Handle<WasmCompiledModule> compiled_module, | 432 int GetFunctionCodeOffset(Handle<WasmCompiledModule> compiled_module, |
433 int func_index); | 433 int func_index); |
434 | 434 |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
470 void ValidateModuleState(Isolate* isolate, Handle<WasmModuleObject> module_obj); | 470 void ValidateModuleState(Isolate* isolate, Handle<WasmModuleObject> module_obj); |
471 void ValidateOrphanedInstance(Isolate* isolate, | 471 void ValidateOrphanedInstance(Isolate* isolate, |
472 Handle<WasmInstanceObject> instance); | 472 Handle<WasmInstanceObject> instance); |
473 | 473 |
474 } // namespace testing | 474 } // namespace testing |
475 } // namespace wasm | 475 } // namespace wasm |
476 } // namespace internal | 476 } // namespace internal |
477 } // namespace v8 | 477 } // namespace v8 |
478 | 478 |
479 #endif // V8_WASM_MODULE_H_ | 479 #endif // V8_WASM_MODULE_H_ |
OLD | NEW |