godot/modules/gdscript
George Marques 102c312497
GDScript: Fix stack manipulation for await
The stack now contains three special addresses that should no be copied
to the state, since it contains references that creates cycles. They can
be recreated when the function is resumed.

This commit also removes the clearing of stack from the
GDScriptFunctionState destructor, since it should be cleared when the
function exits. The state stack should only be cleared manually if the
instance is freed before the state resumes (which is already being
done). Otherwise this would destruct the stack twice, causing crashes.
2022-05-13 20:15:34 -03:00
..
doc_classes Fix typo in GDScript::range doc 2022-04-20 19:38:49 +03:00
editor Remove RES and REF typedefs in favor of spelled out Ref<> 2022-05-03 01:43:50 +02:00
icons Make script type distinguishable by icon 2022-01-13 12:29:05 +01:00
language_server Remove RES and REF typedefs in favor of spelled out Ref<> 2022-05-03 01:43:50 +02:00
tests quote strings inside arrays and dictionaries 2022-05-03 13:37:13 -05:00
config.py Unregister GDScriptFunctionState class 2020-11-26 21:39:54 -03:00
gdscript_analyzer.cpp Merge pull request #60396 from vnen/gdscript-self-lambda 2022-04-27 13:11:24 +02:00
gdscript_analyzer.h GDScript: Allow using self in lambdas 2022-04-24 21:49:02 -03:00
gdscript_byte_codegen.cpp GDScript: Allow using self in lambdas 2022-04-24 21:49:02 -03:00
gdscript_byte_codegen.h GDScript: Allow using self in lambdas 2022-04-24 21:49:02 -03:00
gdscript_cache.cpp Make FileAccess and DirAccess classes reference counted. 2022-04-11 13:28:51 +03:00
gdscript_cache.h Update copyright statements to 2022 2022-01-03 21:27:34 +01:00
gdscript_codegen.h GDScript: Allow using self in lambdas 2022-04-24 21:49:02 -03:00
gdscript_compiler.cpp Remove RES and REF typedefs in favor of spelled out Ref<> 2022-05-03 01:43:50 +02:00
gdscript_compiler.h Update copyright statements to 2022 2022-01-03 21:27:34 +01:00
gdscript_disassembler.cpp GDScript: Allow using self in lambdas 2022-04-24 21:49:02 -03:00
gdscript_editor.cpp Remove RES and REF typedefs in favor of spelled out Ref<> 2022-05-03 01:43:50 +02:00
gdscript_function.cpp GDScript: Fix stack manipulation for await 2022-05-13 20:15:34 -03:00
gdscript_function.h GDScript: Allow using self in lambdas 2022-04-24 21:49:02 -03:00
gdscript_lambda_callable.cpp GDScript: Allow using self in lambdas 2022-04-24 21:49:02 -03:00
gdscript_lambda_callable.h GDScript: Allow using self in lambdas 2022-04-24 21:49:02 -03:00
gdscript_parser.cpp GDScript: Allow using self in lambdas 2022-04-24 21:49:02 -03:00
gdscript_parser.h GDScript: Allow using self in lambdas 2022-04-24 21:49:02 -03:00
gdscript_rpc_callable.cpp Remove VARIANT_ARG* macros 2022-03-09 18:39:13 +01:00
gdscript_rpc_callable.h [Net] Add type check to GDScriptRPCCallable. 2022-02-07 13:39:45 +01:00
gdscript_tokenizer.cpp improve OS.get_name classref, misc/scripts fixes, remove trailing quote 2022-04-22 17:13:08 -05:00
gdscript_tokenizer.h Update copyright statements to 2022 2022-01-03 21:27:34 +01:00
gdscript_utility_functions.cpp Style: Partially apply clang-tidy's cppcoreguidelines-pro-type-member-init 2022-05-02 16:28:25 +02:00
gdscript_utility_functions.h Update copyright statements to 2022 2022-01-03 21:27:34 +01:00
gdscript_vm.cpp GDScript: Fix stack manipulation for await 2022-05-13 20:15:34 -03:00
gdscript_warning.cpp GDScript: Consolidate behavior for assigning enum types 2022-02-03 13:32:16 -03:00
gdscript_warning.h GDScript: Consolidate behavior for assigning enum types 2022-02-03 13:32:16 -03:00
gdscript.cpp Remove RES and REF typedefs in favor of spelled out Ref<> 2022-05-03 01:43:50 +02:00
gdscript.h Remove RES and REF typedefs in favor of spelled out Ref<> 2022-05-03 01:43:50 +02:00
register_types.cpp Refactor module initialization 2022-05-04 17:34:51 +02:00
register_types.h Refactor module initialization 2022-05-04 17:34:51 +02:00
SCsub Refactor GDScript/C# script templates logic to be editor-only 2022-03-28 16:21:00 +02:00