Home | History | Annotate | Download | only in wasm

Lines Matching defs:function

33 std::ostream& operator<<(std::ostream& os, const WasmFunction& function) {
34 os << "WASM function with signature ";
37 if (function.sig->return_count() == 0) os << "v";
38 for (size_t i = 0; i < function.sig->return_count(); i++) {
39 os << WasmOpcodes::ShortNameOf(function.sig->GetReturn(i));
42 if (function.sig->parameter_count() == 0) os << "v";
43 for (size_t i = 0; i < function.sig->parameter_count(); i++) {
44 os << WasmOpcodes::ShortNameOf(function.sig->GetParam(i));
47 if (function.local_int32_count)
48 os << function.local_int32_count << " int32s ";
49 if (function.local_int64_count)
50 os << function.local_int64_count << " int64s ";
51 if (function.local_float32_count)
52 os << function.local_float32_count << " float32s ";
53 if (function.local_float64_count)
54 os << function.local_float64_count << " float64s ";
57 << (function.code_end_offset - function.code_start_offset);
69 // Get the code object for a function, allocating a placeholder if it has
189 WasmFunction* function =
191 fixed->set(i, Smi::FromInt(function->sig_index));
331 // First pass: compile each function and initialize the code table.
338 Handle<JSFunction> function = Handle<JSFunction>::null();
340 // Lookup external function in FFI object.
346 function = Handle<JSFunction>::cast(obj);
348 function, index);
350 thrower.Error("FFI function #%d:%s is not a JSFunction.", index,
355 thrower.Error("FFI function #%d:%s not found.", index, cstr);
363 // Compile the function.
371 function = compiler::CompileJSToWasmWrapper(isolate, &module_env, name,
382 JSObject::AddProperty(module, name, function, READ_ONLY);
409 WasmFunction* function = &module->functions->at(index);
410 return GetWasmCallDescriptor(zone, function->sig);
418 // Decode the module, but don't verify function bodies, since we'll
471 // Compile the function and install it in the code table.