Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(31)

Side by Side Diff: src/wasm/wasm-module.h

Issue 2471883003: [wasm] WebAssembly.Memory object can be referenced by multiple Instance objects. (Closed)
Patch Set: Andreas's review Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/wasm/wasm-js.cc ('k') | src/wasm/wasm-module.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
433 void UpdateDispatchTables(Isolate* isolate, Handle<FixedArray> dispatch_tables, 439 void UpdateDispatchTables(Isolate* isolate, Handle<FixedArray> dispatch_tables,
434 int index, Handle<JSFunction> js_function); 440 int index, Handle<JSFunction> js_function);
435 441
436 namespace testing { 442 namespace testing {
437 443
438 void ValidateInstancesChain(Isolate* isolate, 444 void ValidateInstancesChain(Isolate* isolate,
439 Handle<WasmModuleObject> module_obj, 445 Handle<WasmModuleObject> module_obj,
440 int instance_count); 446 int instance_count);
441 void ValidateModuleState(Isolate* isolate, Handle<WasmModuleObject> module_obj); 447 void ValidateModuleState(Isolate* isolate, Handle<WasmModuleObject> module_obj);
442 void ValidateOrphanedInstance(Isolate* isolate, 448 void ValidateOrphanedInstance(Isolate* isolate,
443 Handle<WasmInstanceObject> instance); 449 Handle<WasmInstanceObject> instance);
444 450
445 } // namespace testing 451 } // namespace testing
446 } // namespace wasm 452 } // namespace wasm
447 } // namespace internal 453 } // namespace internal
448 } // namespace v8 454 } // namespace v8
449 455
450 #endif // V8_WASM_MODULE_H_ 456 #endif // V8_WASM_MODULE_H_
OLDNEW
« no previous file with comments | « src/wasm/wasm-js.cc ('k') | src/wasm/wasm-module.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698