HELLO·Android
系统源代码
IT资讯
技术文章
我的收藏
注册
登录
-
我收藏的文章
创建代码块
我的代码块
我的账号
Android 10
|
10.0.0_r6
下载
查看原文件
收藏
根目录
external
v8
src
wasm
wasm-engine.h
// Copyright 2017 the V8 project authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef V8_WASM_WASM_ENGINE_H_ #define V8_WASM_WASM_ENGINE_H_ #include
#include "src/wasm/wasm-code-manager.h" #include "src/wasm/wasm-memory.h" #include "src/wasm/wasm-tier.h" #include "src/zone/accounting-allocator.h" namespace v8 { namespace internal { class CodeTracer; class CompilationStatistics; class WasmModuleObject; class WasmInstanceObject; namespace wasm { class ErrorThrower; struct WasmFeatures; struct ModuleWireBytes; class V8_EXPORT_PRIVATE CompilationResultResolver { public: virtual void OnCompilationSucceeded(Handle
result) = 0; virtual void OnCompilationFailed(Handle
error_reason) = 0; virtual ~CompilationResultResolver() {} }; class V8_EXPORT_PRIVATE InstantiationResultResolver { public: virtual void OnInstantiationSucceeded(Handle
result) = 0; virtual void OnInstantiationFailed(Handle
error_reason) = 0; virtual ~InstantiationResultResolver() {} }; // The central data structure that represents an engine instance capable of // loading, instantiating, and executing WASM code. class V8_EXPORT_PRIVATE WasmEngine { public: WasmEngine(); ~WasmEngine(); // Synchronously validates the given bytes that represent an encoded WASM // module. bool SyncValidate(Isolate* isolate, const WasmFeatures& enabled, const ModuleWireBytes& bytes); // Synchronously compiles the given bytes that represent a translated // asm.js module. MaybeHandle
SyncCompileTranslatedAsmJs( Isolate* isolate, ErrorThrower* thrower, const ModuleWireBytes& bytes, Handle
登录后可以享受更多权益
您还没有登录,登录后您可以:
收藏Android系统代码
收藏喜欢的文章
多个平台共享账号
去登录
首次使用?从这里
注册