mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 21:57:43 +00:00
Everywhere: Add sv suffix to strings relying on StringView(char const*)
Each of these strings would previously rely on StringView's char const* constructor overload, which would call __builtin_strlen on the string. Since we now have operator ""sv, we can replace these with much simpler versions. This opens the door to being able to remove StringView(char const*). No functional changes.
This commit is contained in:
parent
e5f09ea170
commit
3f3f45580a
762 changed files with 8315 additions and 8316 deletions
|
@ -65,7 +65,7 @@ MmapRegion::~MmapRegion()
|
|||
ValueWithShadow<u8> MmapRegion::read8(FlatPtr offset)
|
||||
{
|
||||
if (!is_readable()) {
|
||||
reportln("8-bit read from unreadable MmapRegion @ {:p}", base() + offset);
|
||||
reportln("8-bit read from unreadable MmapRegion @ {:p}"sv, base() + offset);
|
||||
emulator().dump_backtrace();
|
||||
TODO();
|
||||
}
|
||||
|
@ -82,7 +82,7 @@ ValueWithShadow<u8> MmapRegion::read8(FlatPtr offset)
|
|||
ValueWithShadow<u16> MmapRegion::read16(u32 offset)
|
||||
{
|
||||
if (!is_readable()) {
|
||||
reportln("16-bit read from unreadable MmapRegion @ {:p}", base() + offset);
|
||||
reportln("16-bit read from unreadable MmapRegion @ {:p}"sv, base() + offset);
|
||||
emulator().dump_backtrace();
|
||||
TODO();
|
||||
}
|
||||
|
@ -103,7 +103,7 @@ ValueWithShadow<u16> MmapRegion::read16(u32 offset)
|
|||
ValueWithShadow<u32> MmapRegion::read32(u32 offset)
|
||||
{
|
||||
if (!is_readable()) {
|
||||
reportln("32-bit read from unreadable MmapRegion @ {:p}", base() + offset);
|
||||
reportln("32-bit read from unreadable MmapRegion @ {:p}"sv, base() + offset);
|
||||
emulator().dump_backtrace();
|
||||
TODO();
|
||||
}
|
||||
|
@ -124,7 +124,7 @@ ValueWithShadow<u32> MmapRegion::read32(u32 offset)
|
|||
ValueWithShadow<u64> MmapRegion::read64(u32 offset)
|
||||
{
|
||||
if (!is_readable()) {
|
||||
reportln("64-bit read from unreadable MmapRegion @ {:p}", base() + offset);
|
||||
reportln("64-bit read from unreadable MmapRegion @ {:p}"sv, base() + offset);
|
||||
emulator().dump_backtrace();
|
||||
TODO();
|
||||
}
|
||||
|
@ -145,7 +145,7 @@ ValueWithShadow<u64> MmapRegion::read64(u32 offset)
|
|||
ValueWithShadow<u128> MmapRegion::read128(u32 offset)
|
||||
{
|
||||
if (!is_readable()) {
|
||||
reportln("128-bit read from unreadable MmapRegion @ {:p}", base() + offset);
|
||||
reportln("128-bit read from unreadable MmapRegion @ {:p}"sv, base() + offset);
|
||||
emulator().dump_backtrace();
|
||||
TODO();
|
||||
}
|
||||
|
@ -165,7 +165,7 @@ ValueWithShadow<u128> MmapRegion::read128(u32 offset)
|
|||
ValueWithShadow<u256> MmapRegion::read256(u32 offset)
|
||||
{
|
||||
if (!is_readable()) {
|
||||
reportln("256-bit read from unreadable MmapRegion @ {:p}", base() + offset);
|
||||
reportln("256-bit read from unreadable MmapRegion @ {:p}"sv, base() + offset);
|
||||
emulator().dump_backtrace();
|
||||
TODO();
|
||||
}
|
||||
|
@ -185,7 +185,7 @@ ValueWithShadow<u256> MmapRegion::read256(u32 offset)
|
|||
void MmapRegion::write8(u32 offset, ValueWithShadow<u8> value)
|
||||
{
|
||||
if (!is_writable()) {
|
||||
reportln("8-bit write from unwritable MmapRegion @ {:p}", base() + offset);
|
||||
reportln("8-bit write from unwritable MmapRegion @ {:p}"sv, base() + offset);
|
||||
emulator().dump_backtrace();
|
||||
TODO();
|
||||
}
|
||||
|
@ -203,7 +203,7 @@ void MmapRegion::write8(u32 offset, ValueWithShadow<u8> value)
|
|||
void MmapRegion::write16(u32 offset, ValueWithShadow<u16> value)
|
||||
{
|
||||
if (!is_writable()) {
|
||||
reportln("16-bit write from unwritable MmapRegion @ {:p}", base() + offset);
|
||||
reportln("16-bit write from unwritable MmapRegion @ {:p}"sv, base() + offset);
|
||||
emulator().dump_backtrace();
|
||||
TODO();
|
||||
}
|
||||
|
@ -221,7 +221,7 @@ void MmapRegion::write16(u32 offset, ValueWithShadow<u16> value)
|
|||
void MmapRegion::write32(u32 offset, ValueWithShadow<u32> value)
|
||||
{
|
||||
if (!is_writable()) {
|
||||
reportln("32-bit write from unwritable MmapRegion @ {:p}", base() + offset);
|
||||
reportln("32-bit write from unwritable MmapRegion @ {:p}"sv, base() + offset);
|
||||
emulator().dump_backtrace();
|
||||
TODO();
|
||||
}
|
||||
|
@ -240,7 +240,7 @@ void MmapRegion::write32(u32 offset, ValueWithShadow<u32> value)
|
|||
void MmapRegion::write64(u32 offset, ValueWithShadow<u64> value)
|
||||
{
|
||||
if (!is_writable()) {
|
||||
reportln("64-bit write from unwritable MmapRegion @ {:p}", base() + offset);
|
||||
reportln("64-bit write from unwritable MmapRegion @ {:p}"sv, base() + offset);
|
||||
emulator().dump_backtrace();
|
||||
TODO();
|
||||
}
|
||||
|
@ -259,7 +259,7 @@ void MmapRegion::write64(u32 offset, ValueWithShadow<u64> value)
|
|||
void MmapRegion::write128(u32 offset, ValueWithShadow<u128> value)
|
||||
{
|
||||
if (!is_writable()) {
|
||||
reportln("128-bit write from unwritable MmapRegion @ {:p}", base() + offset);
|
||||
reportln("128-bit write from unwritable MmapRegion @ {:p}"sv, base() + offset);
|
||||
emulator().dump_backtrace();
|
||||
TODO();
|
||||
}
|
||||
|
@ -277,7 +277,7 @@ void MmapRegion::write128(u32 offset, ValueWithShadow<u128> value)
|
|||
void MmapRegion::write256(u32 offset, ValueWithShadow<u256> value)
|
||||
{
|
||||
if (!is_writable()) {
|
||||
reportln("256-bit write from unwritable MmapRegion @ {:p}", base() + offset);
|
||||
reportln("256-bit write from unwritable MmapRegion @ {:p}"sv, base() + offset);
|
||||
emulator().dump_backtrace();
|
||||
TODO();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue