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

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

Issue 2637643002: [wasm] Table.Grow should grow dispatch tables (Closed)
Patch Set: Rebase + review Created 3 years, 11 months 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 422 matching lines...) Expand 10 before | Expand all | Expand 10 after
433 433
434 int32_t GrowWebAssemblyMemory(Isolate* isolate, Handle<Object> receiver, 434 int32_t GrowWebAssemblyMemory(Isolate* isolate, Handle<Object> receiver,
435 uint32_t pages); 435 uint32_t pages);
436 436
437 int32_t GrowMemory(Isolate* isolate, Handle<WasmInstanceObject> instance, 437 int32_t GrowMemory(Isolate* isolate, Handle<WasmInstanceObject> instance,
438 uint32_t pages); 438 uint32_t pages);
439 439
440 void UpdateDispatchTables(Isolate* isolate, Handle<FixedArray> dispatch_tables, 440 void UpdateDispatchTables(Isolate* isolate, Handle<FixedArray> dispatch_tables,
441 int index, Handle<JSFunction> js_function); 441 int index, Handle<JSFunction> js_function);
442 442
443 void GrowDispatchTables(Isolate* isolate, Handle<FixedArray> dispatch_tables,
444 uint32_t old_size, uint32_t count);
445
443 namespace testing { 446 namespace testing {
444 447
445 void ValidateInstancesChain(Isolate* isolate, 448 void ValidateInstancesChain(Isolate* isolate,
446 Handle<WasmModuleObject> module_obj, 449 Handle<WasmModuleObject> module_obj,
447 int instance_count); 450 int instance_count);
448 void ValidateModuleState(Isolate* isolate, Handle<WasmModuleObject> module_obj); 451 void ValidateModuleState(Isolate* isolate, Handle<WasmModuleObject> module_obj);
449 void ValidateOrphanedInstance(Isolate* isolate, 452 void ValidateOrphanedInstance(Isolate* isolate,
450 Handle<WasmInstanceObject> instance); 453 Handle<WasmInstanceObject> instance);
451 454
452 } // namespace testing 455 } // namespace testing
453 } // namespace wasm 456 } // namespace wasm
454 } // namespace internal 457 } // namespace internal
455 } // namespace v8 458 } // namespace v8
456 459
457 #endif // V8_WASM_MODULE_H_ 460 #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