ladybird/Userland/Libraries/LibJS
Linus Groh 5db38d7ba1 LibJS: Replace standalone js_bigint() with BigInt::create()
Three standalone Cell creation functions remain in the JS namespace:

- js_bigint()
- js_string()
- js_symbol()

All of them are leftovers from early iterations when LibJS still took
inspiration from JSC, which itself has jsString(). Nowadays, we pretty
much exclusively use static create() functions to construct types
allocated on the JS heap, and there's no reason to not do the same for
these.
Also change the return type from BigInt* to NonnullGCPtr<BigInt> while
we're here.

This is patch 1/3, replacement of js_string() and js_symbol() follow.
2022-12-07 16:43:06 +00:00
..
Bytecode LibJS: Replace standalone js_bigint() with BigInt::create() 2022-12-07 16:43:06 +00:00
Contrib/Test262 Everywhere: Rename to_{string => deprecated_string}() where applicable 2022-12-06 08:54:33 +01:00
Heap Everywhere: Run clang-format 2022-12-03 23:52:23 +00:00
Runtime LibJS: Replace standalone js_bigint() with BigInt::create() 2022-12-07 16:43:06 +00:00
Tests LibJS: Add a function to ensure calls are made within the same second 2022-12-03 23:04:08 +00:00
AST.cpp LibJS: Replace standalone js_bigint() with BigInt::create() 2022-12-07 16:43:06 +00:00
AST.h AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
CMakeLists.txt LibJS: Add an EliminateLoads pass to Bytecode 2022-12-03 15:25:05 +00:00
Console.cpp Everywhere: Rename to_{string => deprecated_string}() where applicable 2022-12-06 08:54:33 +01:00
Console.h Everywhere: Rename to_{string => deprecated_string}() where applicable 2022-12-06 08:54:33 +01:00
CyclicModule.cpp AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
CyclicModule.h LibJS+LibWeb: Make CyclicModule.h not include AST.h 2022-11-23 16:05:59 +00:00
Forward.h LibJS+LibWeb: Move JS::ModuleRequest to its own header file 2022-11-23 16:05:59 +00:00
Interpreter.cpp LibJS: Make Script and Module GC-allocated 2022-09-06 00:27:09 +02:00
Interpreter.h AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
Lexer.cpp AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
Lexer.h AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
MarkupGenerator.cpp LibJS: Convert MarkupGenerator to the new String 2022-12-07 09:58:38 +00:00
MarkupGenerator.h LibJS: Convert MarkupGenerator to the new String 2022-12-07 09:58:38 +00:00
Module.cpp AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
Module.h AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
Parser.cpp Everywhere: Rename to_{string => deprecated_string}() where applicable 2022-12-06 08:54:33 +01:00
Parser.h Everywhere: Rename to_{string => deprecated_string}() where applicable 2022-12-06 08:54:33 +01:00
ParserError.cpp Everywhere: Rename to_{string => deprecated_string}() where applicable 2022-12-06 08:54:33 +01:00
ParserError.h Everywhere: Rename to_{string => deprecated_string}() where applicable 2022-12-06 08:54:33 +01:00
Print.cpp Everywhere: Rename to_{string => deprecated_string}() where applicable 2022-12-06 08:54:33 +01:00
Print.h LibJS+js: Move the value print implementation to LibJS 2022-11-26 02:23:15 +03:30
SafeFunction.h Everywhere: Run clang-format 2022-12-03 23:52:23 +00:00
Script.cpp LibJS: Make Parser::Error a standalone ParserError class 2022-11-23 16:05:59 +00:00
Script.h AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
SourceCode.cpp AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
SourceCode.h AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
SourceRange.h AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
SourceTextModule.cpp AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
SourceTextModule.h LibJS: Make SourceTextModule.h not include AST.h or Parser.h 2022-11-23 16:05:59 +00:00
SyntaxHighlighter.cpp LibJS: Remove a bunch of gratuitous JS namespace qualifiers 2022-04-03 15:19:33 +01:00
SyntaxHighlighter.h LibSyntax: Teach each highlighter about it's comment syntax 2022-11-27 18:28:43 -07:00
SyntheticModule.cpp LibJS: Make Script and Module GC-allocated 2022-09-06 00:27:09 +02:00
SyntheticModule.h LibJS: Make Script and Module GC-allocated 2022-09-06 00:27:09 +02:00
Token.cpp Everywhere: Rename to_{string => deprecated_string}() where applicable 2022-12-06 08:54:33 +01:00
Token.h AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00