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

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

Issue 2844163006: [wasm] Move Table.Grow implementation to wasm-objects.cc, cleanup (Closed)
Patch Set: Cleanup Created 3 years, 7 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 425 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 442
443 void UpdateDispatchTables(Isolate* isolate, Handle<FixedArray> dispatch_tables, 443 void UpdateDispatchTables(Isolate* isolate, Handle<FixedArray> dispatch_tables,
444 int index, Handle<JSFunction> js_function); 444 int index, Handle<JSFunction> js_function);
445 445
446 void GrowDispatchTables(Isolate* isolate, Handle<FixedArray> dispatch_tables,
447 uint32_t old_size, uint32_t count);
448
449 //============================================================================ 446 //============================================================================
450 //== Compilation and instantiation =========================================== 447 //== Compilation and instantiation ===========================================
451 //============================================================================ 448 //============================================================================
452 V8_EXPORT_PRIVATE bool SyncValidate(Isolate* isolate, 449 V8_EXPORT_PRIVATE bool SyncValidate(Isolate* isolate,
453 const ModuleWireBytes& bytes); 450 const ModuleWireBytes& bytes);
454 451
455 V8_EXPORT_PRIVATE MaybeHandle<WasmModuleObject> SyncCompileTranslatedAsmJs( 452 V8_EXPORT_PRIVATE MaybeHandle<WasmModuleObject> SyncCompileTranslatedAsmJs(
456 Isolate* isolate, ErrorThrower* thrower, const ModuleWireBytes& bytes, 453 Isolate* isolate, ErrorThrower* thrower, const ModuleWireBytes& bytes,
457 Handle<Script> asm_js_script, Vector<const byte> asm_js_offset_table_bytes); 454 Handle<Script> asm_js_script, Vector<const byte> asm_js_offset_table_bytes);
458 455
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
519 int instance_count); 516 int instance_count);
520 void ValidateModuleState(Isolate* isolate, Handle<WasmModuleObject> module_obj); 517 void ValidateModuleState(Isolate* isolate, Handle<WasmModuleObject> module_obj);
521 void ValidateOrphanedInstance(Isolate* isolate, 518 void ValidateOrphanedInstance(Isolate* isolate,
522 Handle<WasmInstanceObject> instance); 519 Handle<WasmInstanceObject> instance);
523 } // namespace testing 520 } // namespace testing
524 } // namespace wasm 521 } // namespace wasm
525 } // namespace internal 522 } // namespace internal
526 } // namespace v8 523 } // namespace v8
527 524
528 #endif // V8_WASM_MODULE_H_ 525 #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