ladybird/Userland/Libraries/LibJS/Bytecode
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
..
Pass LibJS: Remove FinishUnwind instruction 2022-12-06 16:09:24 +03:30
ASTCodegen.cpp LibJS: Intercept returns through finally blocks in Bytecode 2022-12-06 16:09:24 +03:30
BasicBlock.cpp Everywhere: Rename to_{string => deprecated_string}() where applicable 2022-12-06 08:54:33 +01:00
BasicBlock.h AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
CodeGenerationError.h Everywhere: Rename to_{string => deprecated_string}() where applicable 2022-12-06 08:54:33 +01:00
Executable.cpp LibJS: Add a separate "identifier table" to bytecode executables 2021-10-24 17:18:07 +02:00
Executable.h AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
Generator.cpp LibJS: Intercept returns through finally blocks in Bytecode 2022-12-06 16:09:24 +03:30
Generator.h LibJS: Intercept returns through finally blocks in Bytecode 2022-12-06 16:09:24 +03:30
IdentifierTable.cpp LibJS: Add a separate "identifier table" to bytecode executables 2021-10-24 17:18:07 +02:00
IdentifierTable.h AK+Everywhere: Replace DistinctNumeric bool parameters with named ones 2022-11-11 17:50:53 +03:30
Instruction.cpp LibJS: Move Instruction::length() to the Op.h header 2021-06-09 09:24:32 +02:00
Instruction.h LibJS: Remove FinishUnwind instruction 2022-12-06 16:09:24 +03:30
Interpreter.cpp LibJS: Intercept returns through finally blocks in Bytecode 2022-12-06 16:09:24 +03:30
Interpreter.h LibJS: Intercept returns through finally blocks in Bytecode 2022-12-06 16:09:24 +03:30
Label.h Everywhere: Add sv suffix to strings relying on StringView(char const*) 2022-07-12 23:11:35 +02:00
Op.cpp LibJS: Replace standalone js_bigint() with BigInt::create() 2022-12-07 16:43:06 +00:00
Op.h LibJS: Remove FinishUnwind instruction 2022-12-06 16:09:24 +03:30
PassManager.h LibJS: Add an EliminateLoads pass to Bytecode 2022-12-03 15:25:05 +00:00
Register.h LibJS: Make Register comparable 2022-12-03 15:25:05 +00:00
StringTable.cpp AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
StringTable.h AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00