| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |