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

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

Issue 2810203002: Revert of [wasm] instantiate expressed in terms of compile (Closed)
Patch Set: Created 3 years, 8 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 454 matching lines...) Expand 10 before | Expand all | Expand 10 after
465 MaybeHandle<JSArrayBuffer> memory); 465 MaybeHandle<JSArrayBuffer> memory);
466 466
467 V8_EXPORT_PRIVATE void AsyncCompile(Isolate* isolate, Handle<JSPromise> promise, 467 V8_EXPORT_PRIVATE void AsyncCompile(Isolate* isolate, Handle<JSPromise> promise,
468 const ModuleWireBytes& bytes); 468 const ModuleWireBytes& bytes);
469 469
470 V8_EXPORT_PRIVATE void AsyncInstantiate(Isolate* isolate, 470 V8_EXPORT_PRIVATE void AsyncInstantiate(Isolate* isolate,
471 Handle<JSPromise> promise, 471 Handle<JSPromise> promise,
472 Handle<WasmModuleObject> module_object, 472 Handle<WasmModuleObject> module_object,
473 MaybeHandle<JSReceiver> imports); 473 MaybeHandle<JSReceiver> imports);
474 474
475 V8_EXPORT_PRIVATE void AsyncCompileAndInstantiate(
476 Isolate* isolate, Handle<JSPromise> promise, const ModuleWireBytes& bytes,
477 MaybeHandle<JSReceiver> imports);
478
475 #if V8_TARGET_ARCH_64_BIT 479 #if V8_TARGET_ARCH_64_BIT
476 const bool kGuardRegionsSupported = true; 480 const bool kGuardRegionsSupported = true;
477 #else 481 #else
478 const bool kGuardRegionsSupported = false; 482 const bool kGuardRegionsSupported = false;
479 #endif 483 #endif
480 484
481 inline bool EnableGuardRegions() { 485 inline bool EnableGuardRegions() {
482 return FLAG_wasm_guard_pages && kGuardRegionsSupported; 486 return FLAG_wasm_guard_pages && kGuardRegionsSupported;
483 } 487 }
484 488
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
519 int instance_count); 523 int instance_count);
520 void ValidateModuleState(Isolate* isolate, Handle<WasmModuleObject> module_obj); 524 void ValidateModuleState(Isolate* isolate, Handle<WasmModuleObject> module_obj);
521 void ValidateOrphanedInstance(Isolate* isolate, 525 void ValidateOrphanedInstance(Isolate* isolate,
522 Handle<WasmInstanceObject> instance); 526 Handle<WasmInstanceObject> instance);
523 } // namespace testing 527 } // namespace testing
524 } // namespace wasm 528 } // namespace wasm
525 } // namespace internal 529 } // namespace internal
526 } // namespace v8 530 } // namespace v8
527 531
528 #endif // V8_WASM_MODULE_H_ 532 #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