| 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 403 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 414 Handle<JSArrayBuffer> NewArrayBuffer(Isolate* isolate, size_t size, | 414 Handle<JSArrayBuffer> NewArrayBuffer(Isolate* isolate, size_t size, |
| 415 bool enable_guard_regions); | 415 bool enable_guard_regions); |
| 416 | 416 |
| 417 int32_t GrowWebAssemblyMemory(Isolate* isolate, | 417 int32_t GrowWebAssemblyMemory(Isolate* isolate, |
| 418 Handle<WasmMemoryObject> receiver, | 418 Handle<WasmMemoryObject> receiver, |
| 419 uint32_t pages); | 419 uint32_t pages); |
| 420 | 420 |
| 421 int32_t GrowMemory(Isolate* isolate, Handle<WasmInstanceObject> instance, | 421 int32_t GrowMemory(Isolate* isolate, Handle<WasmInstanceObject> instance, |
| 422 uint32_t pages); | 422 uint32_t pages); |
| 423 | 423 |
| 424 void DetachWebAssemblyMemoryBuffer(Isolate* isolate, |
| 425 Handle<JSArrayBuffer> buffer); |
| 426 |
| 424 void UpdateDispatchTables(Isolate* isolate, Handle<FixedArray> dispatch_tables, | 427 void UpdateDispatchTables(Isolate* isolate, Handle<FixedArray> dispatch_tables, |
| 425 int index, Handle<JSFunction> js_function); | 428 int index, Handle<JSFunction> js_function); |
| 426 | 429 |
| 427 void GrowDispatchTables(Isolate* isolate, Handle<FixedArray> dispatch_tables, | 430 void GrowDispatchTables(Isolate* isolate, Handle<FixedArray> dispatch_tables, |
| 428 uint32_t old_size, uint32_t count); | 431 uint32_t old_size, uint32_t count); |
| 429 | 432 |
| 430 //============================================================================ | 433 //============================================================================ |
| 431 //== Compilation and instantiation =========================================== | 434 //== Compilation and instantiation =========================================== |
| 432 //============================================================================ | 435 //============================================================================ |
| 433 V8_EXPORT_PRIVATE bool SyncValidate(Isolate* isolate, ErrorThrower* thrower, | 436 V8_EXPORT_PRIVATE bool SyncValidate(Isolate* isolate, ErrorThrower* thrower, |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 504 int instance_count); | 507 int instance_count); |
| 505 void ValidateModuleState(Isolate* isolate, Handle<WasmModuleObject> module_obj); | 508 void ValidateModuleState(Isolate* isolate, Handle<WasmModuleObject> module_obj); |
| 506 void ValidateOrphanedInstance(Isolate* isolate, | 509 void ValidateOrphanedInstance(Isolate* isolate, |
| 507 Handle<WasmInstanceObject> instance); | 510 Handle<WasmInstanceObject> instance); |
| 508 } // namespace testing | 511 } // namespace testing |
| 509 } // namespace wasm | 512 } // namespace wasm |
| 510 } // namespace internal | 513 } // namespace internal |
| 511 } // namespace v8 | 514 } // namespace v8 |
| 512 | 515 |
| 513 #endif // V8_WASM_MODULE_H_ | 516 #endif // V8_WASM_MODULE_H_ |
| OLD | NEW |