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

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

Issue 2626263004: [wasm] Implement WebAssembly.Module.customSections. (Closed)
Patch Set: 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
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 382 matching lines...) Expand 10 before | Expand all | Expand 10 after
393 393
394 V8_EXPORT_PRIVATE MaybeHandle<WasmModuleObject> CreateModuleObjectFromBytes( 394 V8_EXPORT_PRIVATE MaybeHandle<WasmModuleObject> CreateModuleObjectFromBytes(
395 Isolate* isolate, const byte* start, const byte* end, ErrorThrower* thrower, 395 Isolate* isolate, const byte* start, const byte* end, ErrorThrower* thrower,
396 ModuleOrigin origin, Handle<Script> asm_js_script, 396 ModuleOrigin origin, Handle<Script> asm_js_script,
397 Vector<const byte> asm_offset_table); 397 Vector<const byte> asm_offset_table);
398 398
399 V8_EXPORT_PRIVATE Handle<JSArray> GetImports(Isolate* isolate, 399 V8_EXPORT_PRIVATE Handle<JSArray> GetImports(Isolate* isolate,
400 Handle<WasmModuleObject> module); 400 Handle<WasmModuleObject> module);
401 V8_EXPORT_PRIVATE Handle<JSArray> GetExports(Isolate* isolate, 401 V8_EXPORT_PRIVATE Handle<JSArray> GetExports(Isolate* isolate,
402 Handle<WasmModuleObject> module); 402 Handle<WasmModuleObject> module);
403 403 V8_EXPORT_PRIVATE Handle<JSArray> GetCustomSections(
404 V8_EXPORT_PRIVATE Handle<JSArray> GetExports(Isolate* isolate, 404 Isolate* isolate, Handle<WasmModuleObject> module);
405 Handle<WasmModuleObject> module);
406 405
407 V8_EXPORT_PRIVATE bool ValidateModuleBytes(Isolate* isolate, const byte* start, 406 V8_EXPORT_PRIVATE bool ValidateModuleBytes(Isolate* isolate, const byte* start,
408 const byte* end, 407 const byte* end,
409 ErrorThrower* thrower, 408 ErrorThrower* thrower,
410 ModuleOrigin origin); 409 ModuleOrigin origin);
411 410
412 // Get the offset of the code of a function within a module. 411 // Get the offset of the code of a function within a module.
413 int GetFunctionCodeOffset(Handle<WasmCompiledModule> compiled_module, 412 int GetFunctionCodeOffset(Handle<WasmCompiledModule> compiled_module,
414 int func_index); 413 int func_index);
415 414
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
447 void ValidateModuleState(Isolate* isolate, Handle<WasmModuleObject> module_obj); 446 void ValidateModuleState(Isolate* isolate, Handle<WasmModuleObject> module_obj);
448 void ValidateOrphanedInstance(Isolate* isolate, 447 void ValidateOrphanedInstance(Isolate* isolate,
449 Handle<WasmInstanceObject> instance); 448 Handle<WasmInstanceObject> instance);
450 449
451 } // namespace testing 450 } // namespace testing
452 } // namespace wasm 451 } // namespace wasm
453 } // namespace internal 452 } // namespace internal
454 } // namespace v8 453 } // namespace v8
455 454
456 #endif // V8_WASM_MODULE_H_ 455 #endif // V8_WASM_MODULE_H_
OLDNEW
« src/wasm/module-decoder.cc ('K') | « 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