1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-20 17:55:08 +00:00
serenity/Libraries/LibJS
Florian Stellbrink 17705d23fb LibJS: Fix string roots not being collected
Previously objects were the only heap
allocated value. Now there are also strings.

This replaces a usage of is_object with is_cell.
Without this change strings could be garbage
collected while still being used in an active scope.
2020-03-12 07:50:49 +01:00
..
AST.cpp LibJS: Allow the choice of a scope of declaration for a variable (#1408) 2020-03-11 20:09:20 +01:00
AST.h LibJS: Allow the choice of a scope of declaration for a variable (#1408) 2020-03-11 20:09:20 +01:00
Cell.cpp LibJS: Support "hello friends".length 2020-03-11 19:00:26 +01:00
Cell.h LibJS: Add a convenience helper for visiting a JS::Value 2020-03-09 22:19:06 +01:00
Forward.h LibJS: Allow the choice of a scope of declaration for a variable (#1408) 2020-03-11 20:09:20 +01:00
Function.cpp LibJS: Start building a JavaScript engine for SerenityOS :^) 2020-03-07 19:42:11 +01:00
Function.h LibJS: Start building a JavaScript engine for SerenityOS :^) 2020-03-07 19:42:11 +01:00
Heap.cpp LibJS: Make the GC marking phase cycle-proof 2020-03-09 22:18:03 +01:00
Heap.h LibJS: Make the GC marking phase cycle-proof 2020-03-09 22:18:03 +01:00
HeapBlock.cpp LibJS: Add a basic mark&sweep garbage collector :^) 2020-03-08 19:23:58 +01:00
HeapBlock.h LibJS: Add a basic mark&sweep garbage collector :^) 2020-03-08 19:23:58 +01:00
Interpreter.cpp LibJS: Fix string roots not being collected 2020-03-12 07:50:49 +01:00
Interpreter.h LibJS: Allow the choice of a scope of declaration for a variable (#1408) 2020-03-11 20:09:20 +01:00
Makefile LibJS: Add StringObject, an Object wrapper around primitive strings 2020-03-11 19:00:26 +01:00
Object.cpp LibJS: Add a convenience helper for visiting a JS::Value 2020-03-09 22:19:06 +01:00
Object.h LibJS: Make the GC marking phase cycle-proof 2020-03-09 22:18:03 +01:00
PrimitiveString.cpp LibJS: Add a new PrimitiveString class to hold GC-allocated strings 2020-03-11 19:00:22 +01:00
PrimitiveString.h LibJS: Add a new PrimitiveString class to hold GC-allocated strings 2020-03-11 19:00:22 +01:00
StringObject.cpp LibJS: Add StringObject, an Object wrapper around primitive strings 2020-03-11 19:00:26 +01:00
StringObject.h LibJS: Add StringObject, an Object wrapper around primitive strings 2020-03-11 19:00:26 +01:00
Value.cpp LibJS: Support "hello friends".length 2020-03-11 19:00:26 +01:00
Value.h LibJS: Support "hello friends".length 2020-03-11 19:00:26 +01:00