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