diff options
Diffstat (limited to 'modules/gdscript/gdscript_function.h')
| -rw-r--r-- | modules/gdscript/gdscript_function.h | 19 | 
1 files changed, 8 insertions, 11 deletions
diff --git a/modules/gdscript/gdscript_function.h b/modules/gdscript/gdscript_function.h index 583eab744a..d1c98a5456 100644 --- a/modules/gdscript/gdscript_function.h +++ b/modules/gdscript/gdscript_function.h @@ -180,12 +180,11 @@ public:  		OPCODE_CONSTRUCT_DICTIONARY,  		OPCODE_CALL,  		OPCODE_CALL_RETURN, +		OPCODE_CALL_ASYNC,  		OPCODE_CALL_BUILT_IN, -		OPCODE_CALL_SELF,  		OPCODE_CALL_SELF_BASE, -		OPCODE_YIELD, -		OPCODE_YIELD_SIGNAL, -		OPCODE_YIELD_RESUME, +		OPCODE_AWAIT, +		OPCODE_AWAIT_RESUME,  		OPCODE_JUMP,  		OPCODE_JUMP_IF,  		OPCODE_JUMP_IF_NOT, @@ -224,6 +223,7 @@ public:  private:  	friend class GDScriptCompiler; +	friend class GDScriptByteCodeGenerator;  	StringName source; @@ -232,10 +232,6 @@ private:  	int _constant_count;  	const StringName *_global_names_ptr;  	int _global_names_count; -#ifdef TOOLS_ENABLED -	const StringName *_named_globals_ptr; -	int _named_globals_count; -#endif  	const int *_default_arg_ptr;  	int _default_arg_count;  	const int *_code_ptr; @@ -252,9 +248,6 @@ private:  	StringName name;  	Vector<Variant> constants;  	Vector<StringName> global_names; -#ifdef TOOLS_ENABLED -	Vector<StringName> named_globals; -#endif  	Vector<int> default_arguments;  	Vector<int> code;  	Vector<GDScriptDataType> argument_types; @@ -344,6 +337,10 @@ public:  	Variant call(GDScriptInstance *p_instance, const Variant **p_args, int p_argcount, Callable::CallError &r_err, CallState *p_state = nullptr); +#ifdef DEBUG_ENABLED +	void disassemble(const Vector<String> &p_code_lines) const; +#endif +  	_FORCE_INLINE_ MultiplayerAPI::RPCMode get_rpc_mode() const { return rpc_mode; }  	GDScriptFunction();  	~GDScriptFunction();  |