| 1090 | } |
| 1091 | |
| 1092 | void GDScriptByteCodeGenerator::write_call(const Address &p_target, const Address &p_base, const StringName &p_function_name, const Vector<Address> &p_arguments) { |
| 1093 | append_opcode_and_argcount(p_target.mode == Address::NIL ? GDScriptFunction::OPCODE_CALL : GDScriptFunction::OPCODE_CALL_RETURN, 2 + p_arguments.size()); |
| 1094 | for (int i = 0; i < p_arguments.size(); i++) { |
| 1095 | append(p_arguments[i]); |
| 1096 | } |
| 1097 | append(p_base); |
| 1098 | CallTarget ct = get_call_target(p_target); |
| 1099 | append(ct.target); |
| 1100 | append(p_arguments.size()); |
| 1101 | append(p_function_name); |
| 1102 | ct.cleanup(); |
| 1103 | } |
| 1104 | |
| 1105 | void GDScriptByteCodeGenerator::write_super_call(const Address &p_target, const StringName &p_function_name, const Vector<Address> &p_arguments) { |
| 1106 | append_opcode_and_argcount(GDScriptFunction::OPCODE_CALL_SELF_BASE, 1 + p_arguments.size()); |
no test coverage detected