1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 06:58:11 +00:00
serenity/Libraries/LibJS
Andreas Kling 90ba0145f6 LibJS: Add a number-indexed property storage to all Objects
Objects can have both named and indexed properties. Previously we kept
all property names as strings. This patch separates named and indexed
properties and splits them between Object::m_storage and m_elements.

This allows us to do much faster array-style access using numeric
indices. It also makes the Array class much less special, since all
Objects now have number-indexed storage. :^)
2020-04-06 18:09:26 +02:00
..
Heap LibJS: Do a garbage collection every N allocations (N=10'000) 2020-04-06 15:54:46 +02:00
Runtime LibJS: Add a number-indexed property storage to all Objects 2020-04-06 18:09:26 +02:00
Tests LibJS: Fix some tests for Math.min() 2020-04-06 15:14:34 +02:00
AST.cpp LibJS: Remove unnecessary malloc+free in AssignmentExpression::execute 2020-04-06 08:26:26 +02:00
AST.h LibJS: Implement exponentiation (** operator) 2020-04-05 15:32:06 +02:00
Forward.h LibJS: Correctly forward declare "Argument" as a struct 2020-04-04 10:46:00 +02:00
Interpreter.cpp LibJS: Don't return the "last computed value" from Interpreter::run() 2020-04-04 23:45:13 +02:00
Interpreter.h LibJS: Add support for "continue" inside "for" statements :^) 2020-04-05 00:22:42 +02:00
Lexer.cpp LibJS: Report the start position of a token as its line column 2020-04-05 16:11:13 +02:00
Lexer.h LibJS: Allow lexer to run without logging errors 2020-04-05 16:11:13 +02:00
Makefile LibJS: Add NumberObject and make to_object() on number values create it 2020-04-04 23:13:13 +02:00
Parser.cpp LibJS: Fix do..while parsing by consuming parentheses explicitly (#1652) 2020-04-05 16:57:01 +02:00
Parser.h LibJS: Add support for "continue" inside "for" statements :^) 2020-04-05 00:22:42 +02:00
Token.cpp LibJS: Add numeric literal parsing for different bases and exponents 2020-04-05 16:01:22 +02:00
Token.h LibJS: Plumb line and column information through Lexer / Parser 2020-04-05 12:43:39 +02:00