mirror of
https://github.com/godotengine/godot.git
synced 2025-10-30 13:11:13 +00:00
GDScript: Perform validated calls with static methods
When the types are validated at compile time, this type of call runs faster. It is already used for instance methods, this adds this optimization to native static methods as well.
This commit is contained in:
parent
11d3768132
commit
7ca038effa
9 changed files with 330 additions and 165 deletions
|
|
@ -264,6 +264,8 @@ public:
|
|||
OPCODE_CALL_METHOD_BIND_RET,
|
||||
OPCODE_CALL_BUILTIN_STATIC,
|
||||
OPCODE_CALL_NATIVE_STATIC,
|
||||
OPCODE_CALL_NATIVE_STATIC_VALIDATED_RETURN,
|
||||
OPCODE_CALL_NATIVE_STATIC_VALIDATED_NO_RETURN,
|
||||
OPCODE_CALL_METHOD_BIND_VALIDATED_RETURN,
|
||||
OPCODE_CALL_METHOD_BIND_VALIDATED_NO_RETURN,
|
||||
OPCODE_AWAIT,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue