| 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 388 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 399 ModuleOrigin origin, Handle<Script> asm_js_script, | 399 ModuleOrigin origin, Handle<Script> asm_js_script, |
| 400 Vector<const byte> asm_offset_table); | 400 Vector<const byte> asm_offset_table); |
| 401 | 401 |
| 402 V8_EXPORT_PRIVATE bool IsWasmCodegenAllowed(Isolate* isolate, | 402 V8_EXPORT_PRIVATE bool IsWasmCodegenAllowed(Isolate* isolate, |
| 403 Handle<Context> context); | 403 Handle<Context> context); |
| 404 | 404 |
| 405 V8_EXPORT_PRIVATE Handle<JSArray> GetImports(Isolate* isolate, | 405 V8_EXPORT_PRIVATE Handle<JSArray> GetImports(Isolate* isolate, |
| 406 Handle<WasmModuleObject> module); | 406 Handle<WasmModuleObject> module); |
| 407 V8_EXPORT_PRIVATE Handle<JSArray> GetExports(Isolate* isolate, | 407 V8_EXPORT_PRIVATE Handle<JSArray> GetExports(Isolate* isolate, |
| 408 Handle<WasmModuleObject> module); | 408 Handle<WasmModuleObject> module); |
| 409 | 409 V8_EXPORT_PRIVATE Handle<JSArray> GetCustomSections( |
| 410 V8_EXPORT_PRIVATE Handle<JSArray> GetExports(Isolate* isolate, | 410 Isolate* isolate, Handle<WasmModuleObject> module, Handle<String> name); |
| 411 Handle<WasmModuleObject> module); | |
| 412 | 411 |
| 413 V8_EXPORT_PRIVATE bool ValidateModuleBytes(Isolate* isolate, const byte* start, | 412 V8_EXPORT_PRIVATE bool ValidateModuleBytes(Isolate* isolate, const byte* start, |
| 414 const byte* end, | 413 const byte* end, |
| 415 ErrorThrower* thrower, | 414 ErrorThrower* thrower, |
| 416 ModuleOrigin origin); | 415 ModuleOrigin origin); |
| 417 | 416 |
| 418 // Get the offset of the code of a function within a module. | 417 // Get the offset of the code of a function within a module. |
| 419 int GetFunctionCodeOffset(Handle<WasmCompiledModule> compiled_module, | 418 int GetFunctionCodeOffset(Handle<WasmCompiledModule> compiled_module, |
| 420 int func_index); | 419 int func_index); |
| 421 | 420 |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 457 void ValidateModuleState(Isolate* isolate, Handle<WasmModuleObject> module_obj); | 456 void ValidateModuleState(Isolate* isolate, Handle<WasmModuleObject> module_obj); |
| 458 void ValidateOrphanedInstance(Isolate* isolate, | 457 void ValidateOrphanedInstance(Isolate* isolate, |
| 459 Handle<WasmInstanceObject> instance); | 458 Handle<WasmInstanceObject> instance); |
| 460 | 459 |
| 461 } // namespace testing | 460 } // namespace testing |
| 462 } // namespace wasm | 461 } // namespace wasm |
| 463 } // namespace internal | 462 } // namespace internal |
| 464 } // namespace v8 | 463 } // namespace v8 |
| 465 | 464 |
| 466 #endif // V8_WASM_MODULE_H_ | 465 #endif // V8_WASM_MODULE_H_ |
| OLD | NEW |