| 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 412 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 423 | 423 |
| 424 int32_t GetInstanceMemorySize(Isolate* isolate, | 424 int32_t GetInstanceMemorySize(Isolate* isolate, |
| 425 Handle<WasmInstanceObject> instance); | 425 Handle<WasmInstanceObject> instance); |
| 426 | 426 |
| 427 int32_t GrowInstanceMemory(Isolate* isolate, | 427 int32_t GrowInstanceMemory(Isolate* isolate, |
| 428 Handle<WasmInstanceObject> instance, uint32_t pages); | 428 Handle<WasmInstanceObject> instance, uint32_t pages); |
| 429 | 429 |
| 430 Handle<JSArrayBuffer> NewArrayBuffer(Isolate* isolate, size_t size, | 430 Handle<JSArrayBuffer> NewArrayBuffer(Isolate* isolate, size_t size, |
| 431 bool enable_guard_regions); | 431 bool enable_guard_regions); |
| 432 | 432 |
| 433 int32_t GrowWebAssemblyMemory(Isolate* isolate, Handle<Object> receiver, | |
| 434 uint32_t pages); | |
| 435 | |
| 436 int32_t GrowMemory(Isolate* isolate, Handle<WasmInstanceObject> instance, | |
| 437 uint32_t pages); | |
| 438 | |
| 439 void UpdateDispatchTables(Isolate* isolate, Handle<FixedArray> dispatch_tables, | 433 void UpdateDispatchTables(Isolate* isolate, Handle<FixedArray> dispatch_tables, |
| 440 int index, Handle<JSFunction> js_function); | 434 int index, Handle<JSFunction> js_function); |
| 441 | 435 |
| 442 namespace testing { | 436 namespace testing { |
| 443 | 437 |
| 444 void ValidateInstancesChain(Isolate* isolate, | 438 void ValidateInstancesChain(Isolate* isolate, |
| 445 Handle<WasmModuleObject> module_obj, | 439 Handle<WasmModuleObject> module_obj, |
| 446 int instance_count); | 440 int instance_count); |
| 447 void ValidateModuleState(Isolate* isolate, Handle<WasmModuleObject> module_obj); | 441 void ValidateModuleState(Isolate* isolate, Handle<WasmModuleObject> module_obj); |
| 448 void ValidateOrphanedInstance(Isolate* isolate, | 442 void ValidateOrphanedInstance(Isolate* isolate, |
| 449 Handle<WasmInstanceObject> instance); | 443 Handle<WasmInstanceObject> instance); |
| 450 | 444 |
| 451 } // namespace testing | 445 } // namespace testing |
| 452 } // namespace wasm | 446 } // namespace wasm |
| 453 } // namespace internal | 447 } // namespace internal |
| 454 } // namespace v8 | 448 } // namespace v8 |
| 455 | 449 |
| 456 #endif // V8_WASM_MODULE_H_ | 450 #endif // V8_WASM_MODULE_H_ |
| OLD | NEW |