mirror of
https://github.com/SerenityOS/serenity.git
synced 2025-01-25 19:02:07 -05:00
5ae9419a06
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.
61 lines
1.6 KiB
CMake
61 lines
1.6 KiB
CMake
set(SOURCES
|
|
AST.cpp
|
|
Console.cpp
|
|
Heap/Handle.cpp
|
|
Heap/HeapBlock.cpp
|
|
Heap/Heap.cpp
|
|
Interpreter.cpp
|
|
Lexer.cpp
|
|
MarkupGenerator.cpp
|
|
Parser.cpp
|
|
Runtime/ArrayConstructor.cpp
|
|
Runtime/Array.cpp
|
|
Runtime/ArrayPrototype.cpp
|
|
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
|
|
Runtime/Exception.cpp
|
|
Runtime/FunctionConstructor.cpp
|
|
Runtime/Function.cpp
|
|
Runtime/FunctionPrototype.cpp
|
|
Runtime/GlobalObject.cpp
|
|
Runtime/IndexedProperties.cpp
|
|
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
|
|
Runtime/Reference.cpp
|
|
Runtime/ReflectObject.cpp
|
|
Runtime/ScriptFunction.cpp
|
|
Runtime/Shape.cpp
|
|
Runtime/StringConstructor.cpp
|
|
Runtime/StringObject.cpp
|
|
Runtime/StringPrototype.cpp
|
|
Runtime/Symbol.cpp
|
|
Runtime/SymbolConstructor.cpp
|
|
Runtime/SymbolObject.cpp
|
|
Runtime/SymbolPrototype.cpp
|
|
Runtime/Uint8ClampedArray.cpp
|
|
Runtime/Value.cpp
|
|
Token.cpp
|
|
)
|
|
|
|
serenity_lib(LibJS js)
|
|
target_link_libraries(LibJS LibM LibCore)
|