GetFunctionCode(uint32_t index) { DCHECK_NOT_NULL(instance); return instance->function_code[index]; } // TODO(titzer): move these into src/compiler/wasm-compiler.cc static compiler::CallDescriptor* GetWasmCallDescriptor(Zone* zone, FunctionSig* sig); static compiler::CallDescriptor* GetI32WasmCallDescriptor( Zone* zone, compiler::CallDescriptor* descriptor); static compiler::CallDescriptor* GetI32WasmCallDescriptorForSimd( Zone* zone, compiler::CallDescriptor* descriptor); }; // A ModuleEnv together with ModuleWireBytes. struct ModuleBytesEnv { ModuleBytesEnv(const WasmModule* module, WasmInstance* instance, Vector module_bytes) : module_env(module, instance), wire_bytes(module_bytes) {} ModuleBytesEnv(const WasmModule* module, WasmInstance* instance, const ModuleWireBytes& wire_bytes) : module_env(module, instance), wire_bytes(wire_bytes) {} ModuleEnv module_env; ModuleWireBytes wire_bytes; }; // A helper for printing out the names of functions. struct WasmFunctionName { WasmFunctionName(const WasmFunction* function, WasmName name) : function_(function), name_(name) {} const WasmFunction* function_; WasmName name_; }; std::ostream& operator<<(std::ostream& os, const WasmModule& module); std::ostream& operator<<(std::ostream& os, const WasmFunction& function); std::ostream& operator<<(std::ostream& os, const WasmFunctionName& name); // Get the debug info associated with the given wasm object. // If no debug info exists yet, it is created automatically. Handle GetDebugInfo(Handle wasm); // Check whether the given object represents a WebAssembly.Instance instance. // This checks the number and type of internal fields, so it's not 100 percent // secure. If it turns out that we need more complete checks, we could add a // special marker as internal field, which will definitely never occur anywhere // else. bool IsWasmInstance(Object* instance); // Get the script of the wasm module. If the origin of the module is asm.js, the // returned Script will be a JavaScript Script of Script::TYPE_NORMAL, otherwise // it's of type TYPE_WASM. Handle 登录后可以享受更多权益 您还没有登录,登录后您可以: 收藏Android系统代码 收藏喜欢的文章 多个平台共享账号 去登录 首次使用?从这里 注册
您还没有登录,登录后您可以:
首次使用?从这里 注册