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

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

Issue 2806073002: [wasm] instantiate expressed in terms of compile (Closed)
Patch Set: feedback 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
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
479 #if V8_TARGET_ARCH_64_BIT 475 #if V8_TARGET_ARCH_64_BIT
480 const bool kGuardRegionsSupported = true; 476 const bool kGuardRegionsSupported = true;
481 #else 477 #else
482 const bool kGuardRegionsSupported = false; 478 const bool kGuardRegionsSupported = false;
483 #endif 479 #endif
484 480
485 inline bool EnableGuardRegions() { 481 inline bool EnableGuardRegions() {
486 return FLAG_wasm_guard_pages && kGuardRegionsSupported; 482 return FLAG_wasm_guard_pages && kGuardRegionsSupported;
487 } 483 }
488 484
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
523 int instance_count); 519 int instance_count);
524 void ValidateModuleState(Isolate* isolate, Handle<WasmModuleObject> module_obj); 520 void ValidateModuleState(Isolate* isolate, Handle<WasmModuleObject> module_obj);
525 void ValidateOrphanedInstance(Isolate* isolate, 521 void ValidateOrphanedInstance(Isolate* isolate,
526 Handle<WasmInstanceObject> instance); 522 Handle<WasmInstanceObject> instance);
527 } // namespace testing 523 } // namespace testing
528 } // namespace wasm 524 } // namespace wasm
529 } // namespace internal 525 } // namespace internal
530 } // namespace v8 526 } // namespace v8
531 527
532 #endif // V8_WASM_MODULE_H_ 528 #endif // V8_WASM_MODULE_H_
OLDNEW
« src/wasm/wasm-js.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