2020-05-06 15:40:06 +00:00
|
|
|
set(SOURCES
|
|
|
|
AST.cpp
|
|
|
|
Console.cpp
|
2020-10-06 16:50:47 +00:00
|
|
|
Heap/Allocator.cpp
|
2020-05-06 15:40:06 +00:00
|
|
|
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-07-09 21:58:20 +00:00
|
|
|
Runtime/ArrayIterator.cpp
|
|
|
|
Runtime/ArrayIteratorPrototype.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-07-09 21:58:20 +00:00
|
|
|
Runtime/IteratorOperations.cpp
|
|
|
|
Runtime/IteratorPrototype.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
|
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-11-28 15:02:27 +00:00
|
|
|
Runtime/ScopeObject.cpp
|
2020-05-06 15:40:06 +00:00
|
|
|
Runtime/ScriptFunction.cpp
|
|
|
|
Runtime/Shape.cpp
|
|
|
|
Runtime/StringConstructor.cpp
|
2020-07-12 03:23:01 +00:00
|
|
|
Runtime/StringIterator.cpp
|
|
|
|
Runtime/StringIteratorPrototype.cpp
|
2020-05-06 15:40:06 +00:00
|
|
|
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-12-01 20:05:25 +00:00
|
|
|
Runtime/TypedArray.cpp
|
2020-05-06 15:40:06 +00:00
|
|
|
Runtime/Uint8ClampedArray.cpp
|
2020-09-20 17:24:44 +00:00
|
|
|
Runtime/VM.cpp
|
2020-05-06 15:40:06 +00:00
|
|
|
Runtime/Value.cpp
|
2020-11-28 15:14:26 +00:00
|
|
|
Runtime/WithScope.cpp
|
2020-05-06 15:40:06 +00:00
|
|
|
Token.cpp
|
|
|
|
)
|
|
|
|
|
|
|
|
serenity_lib(LibJS js)
|
2020-11-18 22:20:00 +00:00
|
|
|
target_link_libraries(LibJS LibM LibCore LibCrypto LibRegex)
|