Lines Matching refs:wasm
30 namespace wasm {
45 WasmCompilationUnit(wasm::ErrorThrower* thrower, Isolate* isolate,
46 wasm::ModuleEnv* module_env,
47 const wasm::WasmFunction* function, uint32_t index);
55 static Handle<Code> CompileWasmFunction(wasm::ErrorThrower* thrower, in CompileWasmFunction()
57 wasm::ModuleEnv* module_env, in CompileWasmFunction()
58 const wasm::WasmFunction* function) { in CompileWasmFunction()
67 wasm::ErrorThrower* thrower_;
69 wasm::ModuleEnv* module_env_;
70 const wasm::WasmFunction* function_;
78 wasm::Result<wasm::DecodeStruct*> graph_construction_result_;
86 wasm::FunctionSig* sig, uint32_t index,
91 Handle<Code> CompileJSToWasmWrapper(Isolate* isolate, wasm::ModuleEnv* module,
101 Zone* z, JSGraph* g, wasm::FunctionSig* function_signature,
119 Node* Param(unsigned index, wasm::LocalType type);
123 Node* Phi(wasm::LocalType type, unsigned count, Node** vals, Node* control);
132 Node* Binop(wasm::WasmOpcode opcode, Node* left, Node* right,
133 wasm::WasmCodePosition position = wasm::kNoCodePosition);
134 Node* Unop(wasm::WasmOpcode opcode, Node* input,
135 wasm::WasmCodePosition position = wasm::kNoCodePosition);
138 Node* Catch(Node* input, wasm::WasmCodePosition position);
145 void StackCheck(wasm::WasmCodePosition position, Node** effect = nullptr,
160 Node* Unreachable(wasm::WasmCodePosition position);
163 wasm::WasmCodePosition position);
165 wasm::WasmCodePosition position);
167 void BuildJSToWasmWrapper(Handle<Code> wasm_code, wasm::FunctionSig* sig);
168 void BuildWasmToJSWrapper(Handle<JSReceiver> target, wasm::FunctionSig* sig);
170 Node* ToJS(Node* node, wasm::LocalType type);
171 Node* FromJS(Node* node, Node* context, wasm::LocalType type);
181 Node* LoadMem(wasm::LocalType type, MachineType memtype, Node* index,
183 wasm::WasmCodePosition position);
186 wasm::WasmCodePosition position);
193 void set_module(wasm::ModuleEnv* module) { this->module_ = module; } in set_module()
199 wasm::FunctionSig* GetFunctionSignature() { return function_signature_; } in GetFunctionSignature()
205 void SetSourcePosition(Node* node, wasm::WasmCodePosition position);
209 Node* SimdOp(wasm::WasmOpcode opcode, const NodeVector& inputs);
210 Node* SimdExtractLane(wasm::WasmOpcode opcode, uint8_t lane, Node* input);
218 wasm::ModuleEnv* module_;
230 wasm::FunctionSig* function_signature_;
243 wasm::WasmCodePosition position);
246 wasm::LocalType wasmtype = wasm::kAstStmt);
252 Node* BuildWasmCall(wasm::FunctionSig* sig, Node** args, Node*** rets,
253 wasm::WasmCodePosition position);
257 Node* BuildI32SConvertF32(Node* input, wasm::WasmCodePosition position);
258 Node* BuildI32SConvertF64(Node* input, wasm::WasmCodePosition position);
259 Node* BuildI32UConvertF32(Node* input, wasm::WasmCodePosition position);
260 Node* BuildI32UConvertF64(Node* input, wasm::WasmCodePosition position);
298 const MachineType result_type, wasm::WasmCodePosition position);
299 Node* BuildI64SConvertF32(Node* input, wasm::WasmCodePosition position);
300 Node* BuildI64UConvertF32(Node* input, wasm::WasmCodePosition position);
301 Node* BuildI64SConvertF64(Node* input, wasm::WasmCodePosition position);
302 Node* BuildI64UConvertF64(Node* input, wasm::WasmCodePosition position);
304 Node* BuildI32DivS(Node* left, Node* right, wasm::WasmCodePosition position);
305 Node* BuildI32RemS(Node* left, Node* right, wasm::WasmCodePosition position);
306 Node* BuildI32DivU(Node* left, Node* right, wasm::WasmCodePosition position);
307 Node* BuildI32RemU(Node* left, Node* right, wasm::WasmCodePosition position);
309 Node* BuildI64DivS(Node* left, Node* right, wasm::WasmCodePosition position);
310 Node* BuildI64RemS(Node* left, Node* right, wasm::WasmCodePosition position);
311 Node* BuildI64DivU(Node* left, Node* right, wasm::WasmCodePosition position);
312 Node* BuildI64RemU(Node* left, Node* right, wasm::WasmCodePosition position);
315 wasm::WasmCodePosition position);
354 wasm::FunctionSig* sig);