mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 08:17:35 +00:00

This can be used to implement arbitrary functionality, callable from JavaScript. To make this work, I had to change the way CallExpression passes arguments to the callee. Instead of a HashMap<String, Value>, we now pass an ordered list of Argument { String name; Value value; }. This patch includes a native "print(argument)" function. :^)
24 lines
458 B
Makefile
24 lines
458 B
Makefile
OBJS = \
|
|
AST.o \
|
|
Cell.o \
|
|
Function.o \
|
|
Heap.o \
|
|
HeapBlock.o \
|
|
Interpreter.o \
|
|
Lexer.o \
|
|
NativeFunction.o \
|
|
Object.o \
|
|
Parser.o \
|
|
PrimitiveString.o \
|
|
StringObject.o \
|
|
Token.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
|