| 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 380 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 391 // it's of type TYPE_WASM. | 391 // it's of type TYPE_WASM. |
| 392 Handle<Script> GetScript(Handle<JSObject> instance); | 392 Handle<Script> GetScript(Handle<JSObject> instance); |
| 393 | 393 |
| 394 V8_EXPORT_PRIVATE MaybeHandle<WasmModuleObject> CreateModuleObjectFromBytes( | 394 V8_EXPORT_PRIVATE MaybeHandle<WasmModuleObject> CreateModuleObjectFromBytes( |
| 395 Isolate* isolate, const byte* start, const byte* end, ErrorThrower* thrower, | 395 Isolate* isolate, const byte* start, const byte* end, ErrorThrower* thrower, |
| 396 ModuleOrigin origin, Handle<Script> asm_js_script, | 396 ModuleOrigin origin, Handle<Script> asm_js_script, |
| 397 Vector<const byte> asm_offset_table); | 397 Vector<const byte> asm_offset_table); |
| 398 | 398 |
| 399 V8_EXPORT_PRIVATE Handle<JSArray> GetImports(Isolate* isolate, | 399 V8_EXPORT_PRIVATE Handle<JSArray> GetImports(Isolate* isolate, |
| 400 Handle<WasmModuleObject> module); | 400 Handle<WasmModuleObject> module); |
| 401 V8_EXPORT_PRIVATE Handle<JSArray> GetExports(Isolate* isolate, |
| 402 Handle<WasmModuleObject> module); |
| 401 | 403 |
| 402 V8_EXPORT_PRIVATE Handle<JSArray> GetExports(Isolate* isolate, | 404 V8_EXPORT_PRIVATE Handle<JSArray> GetExports(Isolate* isolate, |
| 403 Handle<WasmModuleObject> module); | 405 Handle<WasmModuleObject> module); |
| 404 | 406 |
| 405 V8_EXPORT_PRIVATE bool ValidateModuleBytes(Isolate* isolate, const byte* start, | 407 V8_EXPORT_PRIVATE bool ValidateModuleBytes(Isolate* isolate, const byte* start, |
| 406 const byte* end, | 408 const byte* end, |
| 407 ErrorThrower* thrower, | 409 ErrorThrower* thrower, |
| 408 ModuleOrigin origin); | 410 ModuleOrigin origin); |
| 409 | 411 |
| 410 // Get the offset of the code of a function within a module. | 412 // Get the offset of the code of a function within a module. |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 445 void ValidateModuleState(Isolate* isolate, Handle<WasmModuleObject> module_obj); | 447 void ValidateModuleState(Isolate* isolate, Handle<WasmModuleObject> module_obj); |
| 446 void ValidateOrphanedInstance(Isolate* isolate, | 448 void ValidateOrphanedInstance(Isolate* isolate, |
| 447 Handle<WasmInstanceObject> instance); | 449 Handle<WasmInstanceObject> instance); |
| 448 | 450 |
| 449 } // namespace testing | 451 } // namespace testing |
| 450 } // namespace wasm | 452 } // namespace wasm |
| 451 } // namespace internal | 453 } // namespace internal |
| 452 } // namespace v8 | 454 } // namespace v8 |
| 453 | 455 |
| 454 #endif // V8_WASM_MODULE_H_ | 456 #endif // V8_WASM_MODULE_H_ |
| OLD | NEW |