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

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

Issue 2620263003: Implement Instance instances correctly; fix a few error cases (Closed)
Patch Set: Export flag 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-objects.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 380 matching lines...) Expand 10 before | Expand all | Expand 10 after
391 // it's of type TYPE_WASM. 391 // it's of type TYPE_WASM.
392 Handle<Script> GetScript(Handle<JSObject> instance); 392 Handle<Script> GetScript(Handle<JSObject> instance);
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,
402 Handle<WasmModuleObject> module);
401 403
402 V8_EXPORT_PRIVATE Handle<JSArray> GetExports(Isolate* isolate, 404 V8_EXPORT_PRIVATE Handle<JSArray> GetExports(Isolate* isolate,
403 Handle<WasmModuleObject> module); 405 Handle<WasmModuleObject> module);
404 406
405 V8_EXPORT_PRIVATE bool ValidateModuleBytes(Isolate* isolate, const byte* start, 407 V8_EXPORT_PRIVATE bool ValidateModuleBytes(Isolate* isolate, const byte* start,
406 const byte* end, 408 const byte* end,
407 ErrorThrower* thrower, 409 ErrorThrower* thrower,
408 ModuleOrigin origin); 410 ModuleOrigin origin);
409 411
410 // Get the offset of the code of a function within a module. 412 // Get the offset of the code of a function within a module.
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
445 void ValidateModuleState(Isolate* isolate, Handle<WasmModuleObject> module_obj); 447 void ValidateModuleState(Isolate* isolate, Handle<WasmModuleObject> module_obj);
446 void ValidateOrphanedInstance(Isolate* isolate, 448 void ValidateOrphanedInstance(Isolate* isolate,
447 Handle<WasmInstanceObject> instance); 449 Handle<WasmInstanceObject> instance);
448 450
449 } // namespace testing 451 } // namespace testing
450 } // namespace wasm 452 } // namespace wasm
451 } // namespace internal 453 } // namespace internal
452 } // namespace v8 454 } // namespace v8
453 455
454 #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-objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698