Home | History | Annotate | Download | only in wasm

Lines Matching defs:module

27 static uint32_t AddJsFunction(TestingModule* module, FunctionSig* sig,
31 module->AddFunction(sig, Handle<Code>::null());
32 uint32_t index = static_cast<uint32_t>(module->module->functions->size() - 1);
34 Handle<Code> code = CompileWasmToJSWrapper(isolate, module, jsfunc, index);
35 module->function_code->at(index) = code;
40 static Handle<JSFunction> WrapCode(ModuleEnv* module, uint32_t index) {
41 Isolate* isolate = module->module->shared_isolate;
45 Handle<Code> code = module->function_code->at(index);
47 return compiler::CompileJSToWasmWrapper(isolate, module, name, code,
74 TestingModule module;
77 Handle<JSFunction> jsfunc = WrapCode(&module, t.CompileAndAdd(&module));
86 TestingModule module;
89 Handle<JSFunction> jsfunc = WrapCode(&module, t.CompileAndAdd(&module));
98 TestingModule module;
101 Handle<JSFunction> jsfunc = WrapCode(&module, t.CompileAndAdd(&module));
110 TestingModule module;
113 Handle<JSFunction> jsfunc = WrapCode(&module, t.CompileAndAdd(&module));
128 TestingModule module;
129 WasmFunctionCompiler t(sigs.i_i(), &module);
131 AddJsFunction(&module, sigs.i_i(), "(function(a) { return a + 99; })");
134 Handle<JSFunction> jsfunc = WrapCode(&module, t.CompileAndAdd(&module));