mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 15:27:35 +00:00
LibJS: Make Value::as_cell() return a Cell&
This commit is contained in:
parent
0de954e86b
commit
47a4b2ba9f
3 changed files with 7 additions and 7 deletions
|
@ -93,15 +93,15 @@ void VM::gather_roots(HashTable<Cell*>& roots)
|
|||
roots.set(m_exception);
|
||||
|
||||
if (m_last_value.is_cell())
|
||||
roots.set(m_last_value.as_cell());
|
||||
roots.set(&m_last_value.as_cell());
|
||||
|
||||
for (auto& call_frame : m_call_stack) {
|
||||
if (call_frame->this_value.is_cell())
|
||||
roots.set(call_frame->this_value.as_cell());
|
||||
roots.set(&call_frame->this_value.as_cell());
|
||||
roots.set(call_frame->arguments_object);
|
||||
for (auto& argument : call_frame->arguments) {
|
||||
if (argument.is_cell())
|
||||
roots.set(argument.as_cell());
|
||||
roots.set(&argument.as_cell());
|
||||
}
|
||||
roots.set(call_frame->scope);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue