mirror of
https://github.com/RGBCube/serenity
synced 2025-06-01 02:18:12 +00:00

Objects can now be allocated via the interpreter's heap. Objects that are allocated in this way will need to be provably reachable from at least one of the known object graph roots. The roots are currently determined by Heap::collect_roots(). Anything that wants be collectable garbage should inherit from Cell, the fundamental atom of the GC heap. This is pretty neat! :^)
18 lines
347 B
Makefile
18 lines
347 B
Makefile
OBJS = \
|
|
AST.o \
|
|
Cell.o \
|
|
Function.o \
|
|
Heap.o \
|
|
HeapBlock.o \
|
|
Interpreter.o \
|
|
Object.o \
|
|
Value.o
|
|
|
|
LIBRARY = libjs.a
|
|
|
|
install:
|
|
mkdir -p $(SERENITY_BASE_DIR)/Root/usr/include/LibJS/
|
|
cp *.h $(SERENITY_BASE_DIR)/Root/usr/include/LibJS/
|
|
cp $(LIBRARY) $(SERENITY_BASE_DIR)/Root/usr/lib/
|
|
|
|
include ../../Makefile.common
|