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

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

Issue 2626263004: [wasm] Implement WebAssembly.Module.customSections. (Closed)
Patch Set: Remove DCHECKs again 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 401 matching lines...) Expand 10 before | Expand all | Expand 10 after
412 ModuleOrigin origin, Handle<Script> asm_js_script, 412 ModuleOrigin origin, Handle<Script> asm_js_script,
413 Vector<const byte> asm_offset_table); 413 Vector<const byte> asm_offset_table);
414 414
415 V8_EXPORT_PRIVATE bool IsWasmCodegenAllowed(Isolate* isolate, 415 V8_EXPORT_PRIVATE bool IsWasmCodegenAllowed(Isolate* isolate,
416 Handle<Context> context); 416 Handle<Context> context);
417 417
418 V8_EXPORT_PRIVATE Handle<JSArray> GetImports(Isolate* isolate, 418 V8_EXPORT_PRIVATE Handle<JSArray> GetImports(Isolate* isolate,
419 Handle<WasmModuleObject> module); 419 Handle<WasmModuleObject> module);
420 V8_EXPORT_PRIVATE Handle<JSArray> GetExports(Isolate* isolate, 420 V8_EXPORT_PRIVATE Handle<JSArray> GetExports(Isolate* isolate,
421 Handle<WasmModuleObject> module); 421 Handle<WasmModuleObject> module);
422 422 V8_EXPORT_PRIVATE Handle<JSArray> GetCustomSections(
423 V8_EXPORT_PRIVATE Handle<JSArray> GetExports(Isolate* isolate, 423 Isolate* isolate, Handle<WasmModuleObject> module, Handle<String> name,
424 Handle<WasmModuleObject> module); 424 ErrorThrower* thrower);
425 425
426 V8_EXPORT_PRIVATE bool ValidateModuleBytes(Isolate* isolate, const byte* start, 426 V8_EXPORT_PRIVATE bool ValidateModuleBytes(Isolate* isolate, const byte* start,
427 const byte* end, 427 const byte* end,
428 ErrorThrower* thrower, 428 ErrorThrower* thrower,
429 ModuleOrigin origin); 429 ModuleOrigin origin);
430 430
431 // Get the offset of the code of a function within a module. 431 // Get the offset of the code of a function within a module.
432 int GetFunctionCodeOffset(Handle<WasmCompiledModule> compiled_module, 432 int GetFunctionCodeOffset(Handle<WasmCompiledModule> compiled_module,
433 int func_index); 433 int func_index);
434 434
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
470 void ValidateModuleState(Isolate* isolate, Handle<WasmModuleObject> module_obj); 470 void ValidateModuleState(Isolate* isolate, Handle<WasmModuleObject> module_obj);
471 void ValidateOrphanedInstance(Isolate* isolate, 471 void ValidateOrphanedInstance(Isolate* isolate,
472 Handle<WasmInstanceObject> instance); 472 Handle<WasmInstanceObject> instance);
473 473
474 } // namespace testing 474 } // namespace testing
475 } // namespace wasm 475 } // namespace wasm
476 } // namespace internal 476 } // namespace internal
477 } // namespace v8 477 } // namespace v8
478 478
479 #endif // V8_WASM_MODULE_H_ 479 #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