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 420 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
431 WasmInstanceObject* GetOwningWasmInstance(Code* code); | 431 WasmInstanceObject* GetOwningWasmInstance(Code* code); |
432 | 432 |
433 Handle<JSArrayBuffer> NewArrayBuffer(Isolate*, size_t size, | 433 Handle<JSArrayBuffer> NewArrayBuffer(Isolate*, size_t size, |
434 bool enable_guard_regions); | 434 bool enable_guard_regions); |
435 | 435 |
436 Handle<JSArrayBuffer> SetupArrayBuffer(Isolate*, void* backing_store, | 436 Handle<JSArrayBuffer> SetupArrayBuffer(Isolate*, void* backing_store, |
437 size_t size, bool is_external, | 437 size_t size, bool is_external, |
438 bool enable_guard_regions); | 438 bool enable_guard_regions); |
439 | 439 |
440 void DetachWebAssemblyMemoryBuffer(Isolate* isolate, | 440 void DetachWebAssemblyMemoryBuffer(Isolate* isolate, |
441 Handle<JSArrayBuffer> buffer); | 441 Handle<JSArrayBuffer> buffer, |
| 442 bool free_memory); |
442 | 443 |
443 void UpdateDispatchTables(Isolate* isolate, Handle<FixedArray> dispatch_tables, | 444 void UpdateDispatchTables(Isolate* isolate, Handle<FixedArray> dispatch_tables, |
444 int index, Handle<JSFunction> js_function); | 445 int index, Handle<JSFunction> js_function); |
445 | 446 |
446 //============================================================================ | 447 //============================================================================ |
447 //== Compilation and instantiation =========================================== | 448 //== Compilation and instantiation =========================================== |
448 //============================================================================ | 449 //============================================================================ |
449 V8_EXPORT_PRIVATE bool SyncValidate(Isolate* isolate, | 450 V8_EXPORT_PRIVATE bool SyncValidate(Isolate* isolate, |
450 const ModuleWireBytes& bytes); | 451 const ModuleWireBytes& bytes); |
451 | 452 |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
515 int instance_count); | 516 int instance_count); |
516 void ValidateModuleState(Isolate* isolate, Handle<WasmModuleObject> module_obj); | 517 void ValidateModuleState(Isolate* isolate, Handle<WasmModuleObject> module_obj); |
517 void ValidateOrphanedInstance(Isolate* isolate, | 518 void ValidateOrphanedInstance(Isolate* isolate, |
518 Handle<WasmInstanceObject> instance); | 519 Handle<WasmInstanceObject> instance); |
519 } // namespace testing | 520 } // namespace testing |
520 } // namespace wasm | 521 } // namespace wasm |
521 } // namespace internal | 522 } // namespace internal |
522 } // namespace v8 | 523 } // namespace v8 |
523 | 524 |
524 #endif // V8_WASM_MODULE_H_ | 525 #endif // V8_WASM_MODULE_H_ |
OLD | NEW |