1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 07:58:11 +00:00
serenity/Libraries/LibJS
Andreas Kling 64513f3c23 LibJS: Move native objects towards two-pass construction
To make sure that everything is set up correctly in objects before we
start adding properties to them, we split cell allocation into 3 steps:

1. Allocate a cell of appropriate size from the Heap
2. Call the C++ constructor on the cell
3. Call initialize() on the constructed object

The job of initialize() is to define all the initial properties.
Doing it in a second pass guarantees that the Object has a valid Shape
and can find its own GlobalObject.
2020-06-20 15:46:30 +02:00
..
Heap LibJS: Move native objects towards two-pass construction 2020-06-20 15:46:30 +02:00
Runtime LibJS: Move native objects towards two-pass construction 2020-06-20 15:46:30 +02:00
Tests LibJS: Add JSON.parse 2020-06-13 12:43:22 +02:00
AST.cpp LibJS: Remove some more use of Interpreter::global_object() 2020-06-20 15:45:07 +02:00
AST.h LibJS: Pass GlobalObject& to AST node execute() functions 2020-06-08 21:12:20 +02:00
CMakeLists.txt LibJS: Add JSON.stringify 2020-06-13 12:43:22 +02:00
Console.cpp LibJS: Move Interpreter::get_trace() to ConsoleClient 2020-06-02 15:22:34 +02:00
Console.h LibJS: Move Interpreter::get_trace() to ConsoleClient 2020-06-02 15:22:34 +02:00
Forward.h LibJS: Pass GlobalObject& to native functions and property accessors 2020-06-20 15:45:07 +02:00
Interpreter.cpp LibJS: Move native objects towards two-pass construction 2020-06-20 15:46:30 +02:00
Interpreter.h LibJS: Move native objects towards two-pass construction 2020-06-20 15:46:30 +02:00
Lexer.cpp LibJS: Move regex logic to main Lexer if statement 2020-06-08 09:18:27 +02:00
Lexer.h LibJS: Lex and parse regex literals, add RegExp objects 2020-06-07 19:06:55 +02:00
MarkupGenerator.cpp LibJS: Add BigInt 2020-06-07 19:29:40 +02: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: Add BigInt 2020-06-07 19:29:40 +02:00
Parser.h LibJS: Lex and parse regex literals, add RegExp objects 2020-06-07 19:06:55 +02:00
Token.cpp LibJS: Fix out-of-bounds read when parsing escape sequences 2020-06-01 17:37:44 +02:00
Token.h LibJS: Add BigInt 2020-06-07 19:29:40 +02:00