Andreas Kling
cccbe43056
LibJS: Use FlyString for identifiers
...
This makes variable and property lookups a lot faster since comparing
two FlyStrings is O(1).
2020-03-22 13:03:43 +01:00
Andreas Kling
324b92fd06
LibJS: Virtualize access to an Object's own properties
...
Object now has virtual get_own_property() and put_own_property() member
functions that can be overridden to provide custom behavior.
We use these virtuals to move Array-specific access behavior to Array.
2020-03-21 14:37:34 +01:00
Andreas Kling
a82f64d3d6
LibJS: Parse ArrayExpression and start implementing Array objects
...
Note that property lookup is not functional yet.
2020-03-20 21:56:40 +01:00
Andreas Kling
19452230cd
LibJS: Add "Heap" and "Runtime" subdirectories
...
Let's try to keep LibJS tidy as it expands. :^)
2020-03-16 14:37:19 +01:00