1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 02:17:35 +00:00
serenity/Libraries/LibJS
Andreas Kling c3fe9b4df8 LibJS: Add a scope object abstraction
Both GlobalObject and LexicalEnvironment now inherit from ScopeObject,
and the VM's call frames point to a ScopeObject chain rather than just
a LexicalEnvironment chain.

This gives us much more flexibility to implement things like "with",
and also unifies some of the code paths that previously required
special handling of the global object.

There's a bunch of more cleanup that can be done in the wake of this
change, and there might be some oversights in the handling of the
"super" keyword, but this generally seems like a good architectural
improvement. :^)
2020-11-28 17:16:48 +01:00
..
Heap LibJS: Rename Cell::visit_children() => Cell::visit_edges() 2020-11-28 17:16:48 +01:00
Runtime LibJS: Add a scope object abstraction 2020-11-28 17:16:48 +01:00
Tests LibJS: Make RegExp.prototype.source spec-compliant 2020-11-28 01:20:11 +01:00
AST.cpp LibJS: Add a scope object abstraction 2020-11-28 17:16:48 +01:00
AST.h LibJS: Parse "with" statements :^) 2020-11-28 17:16:48 +01:00
CMakeLists.txt LibJS: Add a scope object abstraction 2020-11-28 17:16:48 +01:00
Console.cpp LibJS: Use regular stack for VM call frames instead of Vector storage 2020-11-07 13:58:28 +01:00
Console.h LibJS: Move Console from Interpreter to GlobalObject 2020-09-29 21:15:06 +02:00
Forward.h LibJS: Add a scope object abstraction 2020-11-28 17:16:48 +01:00
Interpreter.cpp LibJS: Add a scope object abstraction 2020-11-28 17:16:48 +01:00
Interpreter.h LibJS: Add a scope object abstraction 2020-11-28 17:16:48 +01:00
Lexer.cpp LibJS: Fix possible OOB read during Lexer construction 2020-11-25 22:43:30 +01:00
Lexer.h LibJS: "-->" preceded by token on same line isn't start of HTML-like comment 2020-10-29 22:28:15 +01:00
MarkupGenerator.cpp LibJS: Handle multi-line source code in MarkupGenerator 2020-10-31 20:52:54 +01:00
MarkupGenerator.h Meta: Add a script check the presence of "#pragma once" in header files 2020-05-29 07:59:45 +02:00
Parser.cpp LibJS: Parse "with" statements :^) 2020-11-28 17:16:48 +01:00
Parser.h LibJS: Parse "with" statements :^) 2020-11-28 17:16:48 +01:00
Token.cpp LibJS: Use GenericLexer for Token::string_value() 2020-10-29 11:52:31 +01:00
Token.h LibJS: Add message string to Token 2020-10-26 21:38:34 +01:00