diff options
author | Matthew Olsson <matthewcolsson@gmail.com> | 2023-02-26 16:09:02 -0700 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2023-03-15 08:48:49 +0100 |
commit | 7c0c1c8f4969abeec1436346f29081b3afbcdeab (patch) | |
tree | 985c294882161720a82dc54c70d0680e29700ec9 /Userland/Libraries/LibJS/Runtime/ExecutionContext.h | |
parent | 1df3652e272e1aa69b3a1f8d1730ec464242ada9 (diff) | |
download | serenity-7c0c1c8f4969abeec1436346f29081b3afbcdeab.zip |
LibJS+LibWeb: Wrap raw JS::Cell*/& fields in GCPtr/NonnullGCPtr
Diffstat (limited to 'Userland/Libraries/LibJS/Runtime/ExecutionContext.h')
-rw-r--r-- | Userland/Libraries/LibJS/Runtime/ExecutionContext.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/Userland/Libraries/LibJS/Runtime/ExecutionContext.h b/Userland/Libraries/LibJS/Runtime/ExecutionContext.h index aea4986160..180a91c12b 100644 --- a/Userland/Libraries/LibJS/Runtime/ExecutionContext.h +++ b/Userland/Libraries/LibJS/Runtime/ExecutionContext.h @@ -32,15 +32,15 @@ private: explicit ExecutionContext(MarkedVector<Value> existing_arguments); public: - FunctionObject* function { nullptr }; // [[Function]] - Realm* realm { nullptr }; // [[Realm]] - ScriptOrModule script_or_module; // [[ScriptOrModule]] - Environment* lexical_environment { nullptr }; // [[LexicalEnvironment]] - Environment* variable_environment { nullptr }; // [[VariableEnvironment]] - PrivateEnvironment* private_environment { nullptr }; // [[PrivateEnvironment]] + GCPtr<FunctionObject> function; // [[Function]] + GCPtr<Realm> realm; // [[Realm]] + ScriptOrModule script_or_module; // [[ScriptOrModule]] + GCPtr<Environment> lexical_environment; // [[LexicalEnvironment]] + GCPtr<Environment> variable_environment; // [[VariableEnvironment]] + GCPtr<PrivateEnvironment> private_environment; // [[PrivateEnvironment]] // Non-standard: This points at something that owns this ExecutionContext, in case it needs to be protected from GC. - Cell* context_owner { nullptr }; + GCPtr<Cell> context_owner; ASTNode const* current_node { nullptr }; DeprecatedFlyString function_name; |