2020-05-06 15:40:06 +00:00
|
|
|
set(SOURCES
|
|
|
|
AST.cpp
|
|
|
|
Console.cpp
|
|
|
|
Heap/Handle.cpp
|
|
|
|
Heap/HeapBlock.cpp
|
|
|
|
Heap/Heap.cpp
|
|
|
|
Interpreter.cpp
|
|
|
|
Lexer.cpp
|
2020-05-25 19:24:46 +00:00
|
|
|
MarkupGenerator.cpp
|
2020-05-06 15:40:06 +00:00
|
|
|
Parser.cpp
|
|
|
|
Runtime/Array.cpp
|
2020-06-06 00:14:10 +00:00
|
|
|
Runtime/ArrayConstructor.cpp
|
2020-05-06 15:40:06 +00:00
|
|
|
Runtime/ArrayPrototype.cpp
|
2020-06-06 00:14:10 +00:00
|
|
|
Runtime/BigInt.cpp
|
|
|
|
Runtime/BigIntConstructor.cpp
|
|
|
|
Runtime/BigIntObject.cpp
|
|
|
|
Runtime/BigIntPrototype.cpp
|
2020-05-06 15:40:06 +00:00
|
|
|
Runtime/BooleanConstructor.cpp
|
|
|
|
Runtime/BooleanObject.cpp
|
|
|
|
Runtime/BooleanPrototype.cpp
|
|
|
|
Runtime/BoundFunction.cpp
|
|
|
|
Runtime/Cell.cpp
|
|
|
|
Runtime/ConsoleObject.cpp
|
|
|
|
Runtime/DateConstructor.cpp
|
|
|
|
Runtime/Date.cpp
|
|
|
|
Runtime/DatePrototype.cpp
|
|
|
|
Runtime/ErrorConstructor.cpp
|
|
|
|
Runtime/Error.cpp
|
|
|
|
Runtime/ErrorPrototype.cpp
|
2020-06-10 05:48:01 +00:00
|
|
|
Runtime/ErrorTypes.cpp
|
2020-05-06 15:40:06 +00:00
|
|
|
Runtime/Exception.cpp
|
|
|
|
Runtime/FunctionConstructor.cpp
|
|
|
|
Runtime/Function.cpp
|
|
|
|
Runtime/FunctionPrototype.cpp
|
|
|
|
Runtime/GlobalObject.cpp
|
LibJS: Object index properties have descriptors; Handle sparse indices
This patch adds an IndexedProperties object for storing indexed
properties within an Object. This accomplishes two goals: indexed
properties now have an associated descriptor, and objects now gracefully
handle sparse properties.
The IndexedProperties class is a wrapper around two other classes, one
for simple indexed properties storage, and one for general indexed
property storage. Simple indexed property storage is the common-case,
and is simply a vector of properties which all have attributes of
default_attributes (writable, enumerable, and configurable).
General indexed property storage is for a collection of indexed
properties where EITHER one or more properties have attributes other
than default_attributes OR there is a property with a large index (in
particular, large is '200' or higher).
Indexed properties are now treated relatively the same as storage within
the various Object methods. Additionally, there is a custom iterator
class for IndexedProperties which makes iteration easy. The iterator
skips empty values by default, but can be configured otherwise.
Likewise, it evaluates getters by default, but can be set not to.
2020-05-27 18:35:09 +00:00
|
|
|
Runtime/IndexedProperties.cpp
|
2020-06-10 18:01:00 +00:00
|
|
|
Runtime/JSONObject.cpp
|
2020-05-06 15:40:06 +00:00
|
|
|
Runtime/LexicalEnvironment.cpp
|
|
|
|
Runtime/MarkedValueList.cpp
|
|
|
|
Runtime/MathObject.cpp
|
|
|
|
Runtime/NativeFunction.cpp
|
|
|
|
Runtime/NativeProperty.cpp
|
|
|
|
Runtime/NumberConstructor.cpp
|
|
|
|
Runtime/NumberObject.cpp
|
|
|
|
Runtime/NumberPrototype.cpp
|
|
|
|
Runtime/ObjectConstructor.cpp
|
|
|
|
Runtime/Object.cpp
|
|
|
|
Runtime/ObjectPrototype.cpp
|
|
|
|
Runtime/PrimitiveString.cpp
|
2020-06-03 21:34:52 +00:00
|
|
|
Runtime/PropertyAttributes.cpp
|
|
|
|
Runtime/ProxyConstructor.cpp
|
|
|
|
Runtime/ProxyObject.cpp
|
|
|
|
Runtime/ProxyPrototype.cpp
|
2020-05-06 15:40:06 +00:00
|
|
|
Runtime/Reference.cpp
|
|
|
|
Runtime/ReflectObject.cpp
|
2020-06-03 23:05:49 +00:00
|
|
|
Runtime/RegExpConstructor.cpp
|
|
|
|
Runtime/RegExpObject.cpp
|
|
|
|
Runtime/RegExpPrototype.cpp
|
2020-05-06 15:40:06 +00:00
|
|
|
Runtime/ScriptFunction.cpp
|
|
|
|
Runtime/Shape.cpp
|
|
|
|
Runtime/StringConstructor.cpp
|
|
|
|
Runtime/StringObject.cpp
|
|
|
|
Runtime/StringPrototype.cpp
|
2020-04-30 06:25:21 +00:00
|
|
|
Runtime/Symbol.cpp
|
|
|
|
Runtime/SymbolConstructor.cpp
|
|
|
|
Runtime/SymbolObject.cpp
|
|
|
|
Runtime/SymbolPrototype.cpp
|
2020-05-06 15:40:06 +00:00
|
|
|
Runtime/Uint8ClampedArray.cpp
|
|
|
|
Runtime/Value.cpp
|
|
|
|
Token.cpp
|
|
|
|
)
|
|
|
|
|
|
|
|
serenity_lib(LibJS js)
|
2020-06-06 00:14:10 +00:00
|
|
|
target_link_libraries(LibJS LibM LibCore LibCrypto)
|