summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-10-03 23:58:21 +0200
committerAndreas Kling <kling@serenityos.org>2021-10-03 23:58:21 +0200
commit0cb4d482834c3150e99587f571f95c12823f773e (patch)
treed805dc3028717a1919e5c400914a16fd2266e00c
parentf8354c5503fe9dee41d9e73b09576f699b0dbedc (diff)
downloadserenity-0cb4d482834c3150e99587f571f95c12823f773e.zip
LibJS: Remove unused ExecutionContext::arguments_object
-rw-r--r--Userland/Libraries/LibJS/Runtime/ExecutionContext.h1
-rw-r--r--Userland/Libraries/LibJS/Runtime/VM.cpp1
2 files changed, 0 insertions, 2 deletions
diff --git a/Userland/Libraries/LibJS/Runtime/ExecutionContext.h b/Userland/Libraries/LibJS/Runtime/ExecutionContext.h
index 9a7fa0ef04..6b0270b8af 100644
--- a/Userland/Libraries/LibJS/Runtime/ExecutionContext.h
+++ b/Userland/Libraries/LibJS/Runtime/ExecutionContext.h
@@ -30,7 +30,6 @@ struct ExecutionContext {
FlyString function_name;
Value this_value;
MarkedValueList arguments;
- Object* arguments_object { nullptr };
bool is_strict_mode { false };
};
diff --git a/Userland/Libraries/LibJS/Runtime/VM.cpp b/Userland/Libraries/LibJS/Runtime/VM.cpp
index b96f4fb77d..82e19cdea6 100644
--- a/Userland/Libraries/LibJS/Runtime/VM.cpp
+++ b/Userland/Libraries/LibJS/Runtime/VM.cpp
@@ -103,7 +103,6 @@ void VM::gather_roots(HashTable<Cell*>& roots)
for (auto& execution_context : stack) {
if (execution_context->this_value.is_cell())
roots.set(&execution_context->this_value.as_cell());
- roots.set(execution_context->arguments_object);
for (auto& argument : execution_context->arguments) {
if (argument.is_cell())
roots.set(&argument.as_cell());