1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-22 15:05:07 +00:00
serenity/Libraries/LibJS/Heap
Andreas Kling 64513f3c23 LibJS: Move native objects towards two-pass construction
To make sure that everything is set up correctly in objects before we
start adding properties to them, we split cell allocation into 3 steps:

1. Allocate a cell of appropriate size from the Heap
2. Call the C++ constructor on the cell
3. Call initialize() on the constructed object

The job of initialize() is to define all the initial properties.
Doing it in a second pass guarantees that the Object has a valid Shape
and can find its own GlobalObject.
2020-06-20 15:46:30 +02:00
..
DeferGC.h LibJS: Add DeferGC, a RAII way to prevent GC temporarily 2020-04-19 12:09:32 +02:00
Handle.cpp LibJS: Add missing copyright headers 2020-03-18 20:21:06 +01:00
Handle.h LibJS: Add missing copyright headers 2020-03-18 20:21:06 +01:00
Heap.cpp LibJS: Use __APPLE__ instead of __MACH__ for MacOS build 2020-05-23 18:09:07 +02:00
Heap.h LibJS: Move native objects towards two-pass construction 2020-06-20 15:46:30 +02:00
HeapBlock.cpp LibJS: Fix undefined behavior in HeapBlock 2020-06-01 17:37:44 +02:00
HeapBlock.h LibJS: Fix undefined behavior in HeapBlock 2020-06-01 17:37:44 +02:00