mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 19:07:34 +00:00
Everywhere: Fix spelling mistakes
This commit is contained in:
parent
168063819d
commit
10ec98dd38
56 changed files with 90 additions and 90 deletions
|
@ -7,7 +7,7 @@
|
|||
#include <AK/Types.h>
|
||||
#include <fenv.h>
|
||||
|
||||
// This is the size of the floating point envinronment image in protected mode
|
||||
// This is the size of the floating point environment image in protected mode
|
||||
static_assert(sizeof(__x87_floating_point_environment) == 28);
|
||||
|
||||
static u16 read_status_register()
|
||||
|
|
|
@ -212,9 +212,9 @@ int posix_spawnattr_getschedparam(const posix_spawnattr_t* attr, struct sched_pa
|
|||
}
|
||||
|
||||
// https://pubs.opengroup.org/onlinepubs/9699919799/functions/posix_spawnattr_getschedpolicy.html
|
||||
int posix_spawnattr_getschedpolicy(const posix_spawnattr_t* attr, int* out_schedpolicty)
|
||||
int posix_spawnattr_getschedpolicy(const posix_spawnattr_t* attr, int* out_schedpolicy)
|
||||
{
|
||||
*out_schedpolicty = attr->schedpolicy;
|
||||
*out_schedpolicy = attr->schedpolicy;
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
@ -27,7 +27,7 @@ __BEGIN_DECLS
|
|||
#define AT_EGID 14 /* a_val holds effective group id of process */
|
||||
#define AT_PLATFORM 15 /* a_val points to a string containing platform name */
|
||||
#define AT_HWCAP 16 /* a_val contains bitmask of CPU features. Equivalent to CPUID 1.EDX*/
|
||||
#define AT_CLKTCK 17 /* a_val contains frequence at which times() increments. (Re: Spec. What is times()?) */
|
||||
#define AT_CLKTCK 17 /* a_val contains frequency at which times() increments. (Re: Spec. What is times()?) */
|
||||
#define AT_SECURE 23 /* a_val holds 1 if program in secure mode (e.g. suid). Otherwise 0 */
|
||||
#define AT_BASE_PLATFORM 24 /* a_ptr points to a string identifying base platform name, which might be different from platform (e.g x86_64 when in i386 compat) */
|
||||
#define AT_RANDOM 25 /* a_ptr points to 16 securely generated random bytes */
|
||||
|
|
|
@ -237,7 +237,7 @@ ALWAYS_INLINE UnsignedBigInteger::Word UnsignedBigIntegerAlgorithms::shift_left_
|
|||
size_t result_word_index)
|
||||
{
|
||||
// "<= length()" (rather than length() - 1) is intentional,
|
||||
// The result inedx of length() is used when calculating the carry word
|
||||
// The result index of length() is used when calculating the carry word
|
||||
VERIFY(result_word_index <= number.length());
|
||||
VERIFY(num_bits <= UnsignedBigInteger::BITS_IN_WORD);
|
||||
u32 result = 0;
|
||||
|
|
|
@ -60,7 +60,7 @@ u64 SignedBigInteger::to_u64() const
|
|||
u64 unsigned_value = m_unsigned_data.to_u64();
|
||||
if (!m_sign)
|
||||
return unsigned_value;
|
||||
return ~(unsigned_value - 1); // equivalent to `-unsigned_value`, but doesnt trigger UBSAN
|
||||
return ~(unsigned_value - 1); // equivalent to `-unsigned_value`, but doesn't trigger UBSAN
|
||||
}
|
||||
|
||||
double SignedBigInteger::to_double() const
|
||||
|
|
|
@ -37,9 +37,9 @@ void AbbreviationsMap::populate_map()
|
|||
u8 has_children = 0;
|
||||
abbreviation_stream >> has_children;
|
||||
|
||||
AbbreviationEntry abbrevation_entry {};
|
||||
abbrevation_entry.tag = static_cast<EntryTag>(tag);
|
||||
abbrevation_entry.has_children = (has_children == 1);
|
||||
AbbreviationEntry abbreviation_entry {};
|
||||
abbreviation_entry.tag = static_cast<EntryTag>(tag);
|
||||
abbreviation_entry.has_children = (has_children == 1);
|
||||
|
||||
AttributeSpecification current_attribute_specification {};
|
||||
do {
|
||||
|
@ -58,11 +58,11 @@ void AbbreviationsMap::populate_map()
|
|||
}
|
||||
|
||||
if (current_attribute_specification.attribute != Attribute::None) {
|
||||
abbrevation_entry.attribute_specifications.append(current_attribute_specification);
|
||||
abbreviation_entry.attribute_specifications.append(current_attribute_specification);
|
||||
}
|
||||
} while (current_attribute_specification.attribute != Attribute::None || current_attribute_specification.form != AttributeDataForm::None);
|
||||
|
||||
m_entries.set((u32)abbreviation_code, move(abbrevation_entry));
|
||||
m_entries.set((u32)abbreviation_code, move(abbreviation_entry));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -27,7 +27,7 @@ Optional<ProcessInspector::SymbolicationResult> ProcessInspector::symbolicate(Fl
|
|||
auto* lib = library_at(address);
|
||||
if (!lib)
|
||||
return {};
|
||||
// FIXME: ELF::Image symlicate() API should return String::empty() if symbol is not found (It currently returns ??)
|
||||
// FIXME: ELF::Image symbolicate() API should return String::empty() if symbol is not found (It currently returns ??)
|
||||
auto symbol = lib->debug_info->elf().symbolicate(address - lib->base_address);
|
||||
return { { lib->name, symbol } };
|
||||
}
|
||||
|
|
|
@ -48,7 +48,7 @@ private:
|
|||
bool uses_alpha() const
|
||||
{
|
||||
// We don't care about the title_stripes_color or title_shadow_color alpha channels because they are
|
||||
// effectively rendered on top of the borders and don't mean whether the frame itself atually has
|
||||
// effectively rendered on top of the borders and don't mean whether the frame itself actually has
|
||||
// any alpha channels that would require the entire frame to be rendered as transparency.
|
||||
return title_color.alpha() != 0xff || border_color.alpha() != 0xff || border_color2.alpha() != 0xff;
|
||||
}
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
|
||||
namespace JS::Intl {
|
||||
|
||||
// 13 ListFomat Objects, https://tc39.es/ecma402/#listformat-objects
|
||||
// 13 ListFormat Objects, https://tc39.es/ecma402/#listformat-objects
|
||||
ListFormat::ListFormat(Object& prototype)
|
||||
: Object(prototype)
|
||||
{
|
||||
|
|
|
@ -1589,7 +1589,7 @@ int compute_exponent(NumberFormat& number_format, double number)
|
|||
int magnitude = log10floor(number);
|
||||
|
||||
// 4. Let exponent be ComputeExponentForMagnitude(numberFormat, magnitude).
|
||||
int exponent = compute_exponent_for_magniude(number_format, magnitude);
|
||||
int exponent = compute_exponent_for_magnitude(number_format, magnitude);
|
||||
|
||||
// 5. Let x be x × 10^(-exponent).
|
||||
number *= pow(10, -exponent);
|
||||
|
@ -1613,11 +1613,11 @@ int compute_exponent(NumberFormat& number_format, double number)
|
|||
}
|
||||
|
||||
// 10. Return ComputeExponentForMagnitude(numberFormat, magnitude + 1).
|
||||
return compute_exponent_for_magniude(number_format, magnitude + 1);
|
||||
return compute_exponent_for_magnitude(number_format, magnitude + 1);
|
||||
}
|
||||
|
||||
// 15.1.17 ComputeExponentForMagnitude ( numberFormat, magnitude ), https://tc39.es/ecma402/#sec-computeexponentformagnitude
|
||||
int compute_exponent_for_magniude(NumberFormat& number_format, int magnitude)
|
||||
int compute_exponent_for_magnitude(NumberFormat& number_format, int magnitude)
|
||||
{
|
||||
// 1. Let notation be numberFormat.[[Notation]].
|
||||
switch (number_format.notation()) {
|
||||
|
|
|
@ -220,6 +220,6 @@ ThrowCompletionOr<void> set_number_format_unit_options(GlobalObject& global_obje
|
|||
Optional<Variant<StringView, String>> get_number_format_pattern(NumberFormat& number_format, double number, Unicode::NumberFormat& found_pattern);
|
||||
Optional<StringView> get_notation_sub_pattern(NumberFormat& number_format, int exponent);
|
||||
int compute_exponent(NumberFormat& number_format, double number);
|
||||
int compute_exponent_for_magniude(NumberFormat& number_format, int magnitude);
|
||||
int compute_exponent_for_magnitude(NumberFormat& number_format, int magnitude);
|
||||
|
||||
}
|
||||
|
|
|
@ -563,7 +563,7 @@ JS_DEFINE_NATIVE_FUNCTION(RegExpPrototype::symbol_match)
|
|||
|
||||
// 3. If matchStr is the empty String, then
|
||||
if (match_str.is_empty()) {
|
||||
// Stepsp 3a-3c are implemented by increment_last_index.
|
||||
// Steps 3a-3c are implemented by increment_last_index.
|
||||
TRY(increment_last_index(global_object, *regexp_object, string.view(), full_unicode));
|
||||
}
|
||||
|
||||
|
@ -682,7 +682,7 @@ JS_DEFINE_NATIVE_FUNCTION(RegExpPrototype::symbol_replace)
|
|||
|
||||
// 2. If matchStr is the empty String, then
|
||||
if (match_str.is_empty()) {
|
||||
// Stepsp 2a-2c are implemented by increment_last_index.
|
||||
// Steps 2a-2c are implemented by increment_last_index.
|
||||
TRY(increment_last_index(global_object, *regexp_object, string.view(), full_unicode));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -273,7 +273,7 @@ describe("dayPeriod", () => {
|
|||
|
||||
describe("hour", () => {
|
||||
// prettier-ignore
|
||||
// FIXME: The 2-digit results are supposed to include {ampm}. These results are acheived from the "HH"
|
||||
// FIXME: The 2-digit results are supposed to include {ampm}. These results are achieved from the "HH"
|
||||
// pattern, which should only be applied to 24-hour cycles.
|
||||
const data = [
|
||||
{ hour: "2-digit", en0: "05", en1: "07", ar0: "٠٥", ar1: "٠٧" },
|
||||
|
|
|
@ -3,7 +3,7 @@ test("length is 2", () => {
|
|||
});
|
||||
|
||||
describe("errors", () => {
|
||||
test("non-object protpotype value", () => {
|
||||
test("non-object prototype value", () => {
|
||||
expect(() => Object.create(42)).toThrowWithMessage(
|
||||
TypeError,
|
||||
"Prototype must be an object or null"
|
||||
|
|
|
@ -64,7 +64,7 @@ describe("only allowed in async functions", () => {
|
|||
expect("(function* () { for await (const v of []) return v; })").not.toEval();
|
||||
});
|
||||
|
||||
test("async genrator functions", () => {
|
||||
test("async generator functions", () => {
|
||||
expect("async function* foo() { for await (const v of []) yield v; }").toEval();
|
||||
expect("(async function* () { for await (const v of []) yield v; })").toEval();
|
||||
});
|
||||
|
|
|
@ -139,7 +139,7 @@ private:
|
|||
bool punct_before;
|
||||
bool punct_after;
|
||||
// is_run indicates that this token is a 'delimiter run'. A delimiter
|
||||
// run occurs when several of the same sytactical character ('`', '_',
|
||||
// run occurs when several of the same syntactical character ('`', '_',
|
||||
// or '*') occur in a row.
|
||||
bool is_run;
|
||||
|
||||
|
|
|
@ -615,12 +615,12 @@ void Device::draw_primitives(PrimitiveType primitive_type, FloatMatrix4x4 const&
|
|||
// At this point, the user has effectively specified that they are done with defining the geometry
|
||||
// of what they want to draw. We now need to do a few things (https://www.khronos.org/opengl/wiki/Rendering_Pipeline_Overview):
|
||||
//
|
||||
// 1. Transform all of the vertices in the current vertex list into eye space by mulitplying the model-view matrix
|
||||
// 1. Transform all of the vertices in the current vertex list into eye space by multiplying the model-view matrix
|
||||
// 2. Transform all of the vertices from eye space into clip space by multiplying by the projection matrix
|
||||
// 3. If culling is enabled, we cull the desired faces (https://learnopengl.com/Advanced-OpenGL/Face-culling)
|
||||
// 4. Each element of the vertex is then divided by w to bring the positions into NDC (Normalized Device Coordinates)
|
||||
// 5. The vertices are sorted (for the rasteriser, how are we doing this? 3Dfx did this top to bottom in terms of vertex y coordinates)
|
||||
// 6. The vertices are then sent off to the rasteriser and drawn to the screen
|
||||
// 5. The vertices are sorted (for the rasterizer, how are we doing this? 3Dfx did this top to bottom in terms of vertex y coordinates)
|
||||
// 6. The vertices are then sent off to the rasterizer and drawn to the screen
|
||||
|
||||
float scr_width = m_render_target->width();
|
||||
float scr_height = m_render_target->height();
|
||||
|
|
|
@ -177,7 +177,7 @@ public:
|
|||
JS::Value run_javascript(StringView source, StringView filename = "(unknown)");
|
||||
|
||||
NonnullRefPtr<Element> create_element(const String& tag_name);
|
||||
NonnullRefPtr<Element> create_element_ns(const String& namespace_, const String& qualifed_name);
|
||||
NonnullRefPtr<Element> create_element_ns(const String& namespace_, const String& qualified_name);
|
||||
NonnullRefPtr<DocumentFragment> create_document_fragment();
|
||||
NonnullRefPtr<Text> create_text_node(const String& data);
|
||||
NonnullRefPtr<Comment> create_comment(const String& data);
|
||||
|
|
|
@ -546,7 +546,7 @@ static void build_sse_f3(u8 op, const char* mnemonic, InstructionFormat format,
|
|||
build_slash_rm(0xD9, 5, 0xED, "FLDLN2", OP_FPU, &Interpreter::FLDLN2);
|
||||
build_slash_rm(0xD9, 5, 0xEE, "FLDZ", OP_FPU, &Interpreter::FLDZ);
|
||||
build_slash(0xD9, 6, "FNSTENV", OP_FPU_RM32, &Interpreter::FNSTENV);
|
||||
// FIXME: Extraodinary prefix 0x9B + 0xD9/6: FSTENV
|
||||
// FIXME: Extraordinary prefix 0x9B + 0xD9/6: FSTENV
|
||||
build_slash_rm(0xD9, 6, 0xF0, "F2XM1", OP_FPU, &Interpreter::F2XM1);
|
||||
build_slash_rm(0xD9, 6, 0xF1, "FYL2X", OP_FPU, &Interpreter::FYL2X);
|
||||
build_slash_rm(0xD9, 6, 0xF2, "FPTAN", OP_FPU, &Interpreter::FPTAN);
|
||||
|
@ -556,7 +556,7 @@ static void build_sse_f3(u8 op, const char* mnemonic, InstructionFormat format,
|
|||
build_slash_rm(0xD9, 6, 0xF6, "FDECSTP", OP_FPU, &Interpreter::FDECSTP);
|
||||
build_slash_rm(0xD9, 6, 0xF7, "FINCSTP", OP_FPU, &Interpreter::FINCSTP);
|
||||
build_slash(0xD9, 7, "FNSTCW", OP_FPU_RM16, &Interpreter::FNSTCW);
|
||||
// FIXME: Extraodinary prefix 0x9B + 0xD9/7: FSTCW
|
||||
// FIXME: Extraordinary prefix 0x9B + 0xD9/7: FSTCW
|
||||
build_slash_rm(0xD9, 7, 0xF8, "FPREM", OP_FPU, &Interpreter::FPREM);
|
||||
build_slash_rm(0xD9, 7, 0xF9, "FYL2XP1", OP_FPU, &Interpreter::FYL2XP1);
|
||||
build_slash_rm(0xD9, 7, 0xFA, "FSQRT", OP_FPU, &Interpreter::FSQRT);
|
||||
|
@ -592,9 +592,9 @@ static void build_sse_f3(u8 op, const char* mnemonic, InstructionFormat format,
|
|||
build_slash_rm(0xDB, 4, 0xE0, "FNENI", OP_FPU_reg, &Interpreter::FNENI);
|
||||
build_slash_rm(0xDB, 4, 0xE1, "FNDISI", OP_FPU_reg, &Interpreter::FNDISI);
|
||||
build_slash_rm(0xDB, 4, 0xE2, "FNCLEX", OP_FPU_reg, &Interpreter::FNCLEX);
|
||||
// FIXME: Extraodinary prefix 0x9B + 0xDB/4: FCLEX
|
||||
// FIXME: Extraordinary prefix 0x9B + 0xDB/4: FCLEX
|
||||
build_slash_rm(0xDB, 4, 0xE3, "FNINIT", OP_FPU_reg, &Interpreter::FNINIT);
|
||||
// FIXME: Extraodinary prefix 0x9B + 0xDB/4: FINIT
|
||||
// FIXME: Extraordinary prefix 0x9B + 0xDB/4: FINIT
|
||||
build_slash_rm(0xDB, 4, 0xE4, "FNSETPM", OP_FPU_reg, &Interpreter::FNSETPM);
|
||||
build_slash(0xDB, 5, "FLD", OP_FPU_M80, &Interpreter::FLD_RM80);
|
||||
build_slash_reg(0xDB, 5, "FUCOMI", OP_FPU_reg, &Interpreter::FUCOMI);
|
||||
|
@ -622,9 +622,9 @@ static void build_sse_f3(u8 op, const char* mnemonic, InstructionFormat format,
|
|||
build_slash(0xDD, 5, "FUCOMP", OP_FPU_reg, &Interpreter::FUCOMP);
|
||||
// FIXME: DD/5 E9 (...but isn't this what DD/5 does naturally, with E9 just being normal R/M?)
|
||||
build_slash(0xDD, 6, "FNSAVE", OP_FPU_mem, &Interpreter::FNSAVE);
|
||||
// FIXME: Extraodinary prefix 0x9B + 0xDD/6: FSAVE
|
||||
// FIXME: Extraordinary prefix 0x9B + 0xDD/6: FSAVE
|
||||
build_slash(0xDD, 7, "FNSTSW", OP_FPU_RM16, &Interpreter::FNSTSW);
|
||||
// FIXME: Extraodinary prefix 0x9B + 0xDD/7: FSTSW
|
||||
// FIXME: Extraordinary prefix 0x9B + 0xDD/7: FSTSW
|
||||
|
||||
build_slash(0xDE, 0, "FIADD", OP_FPU_RM16, &Interpreter::FIADD_RM16);
|
||||
build_slash_reg(0xDE, 0, "FADDP", OP_FPU_reg, &Interpreter::FADDP);
|
||||
|
@ -659,7 +659,7 @@ static void build_sse_f3(u8 op, const char* mnemonic, InstructionFormat format,
|
|||
build_slash_reg(0xDF, 3, "FSTP9", OP_FPU_reg, &Interpreter::FSTP_RM32);
|
||||
build_slash(0xDF, 4, "FBLD", OP_FPU_M80, &Interpreter::FBLD_M80);
|
||||
build_slash_reg(0xDF, 4, "FNSTSW", OP_FPU_AX16, &Interpreter::FNSTSW_AX);
|
||||
// FIXME: Extraodinary prefix 0x9B + 0xDF/e: FSTSW_AX
|
||||
// FIXME: Extraordinary prefix 0x9B + 0xDF/e: FSTSW_AX
|
||||
build_slash(0xDF, 5, "FILD", OP_FPU_RM64, &Interpreter::FILD_RM64);
|
||||
build_slash_reg(0xDF, 5, "FUCOMIP", OP_FPU_reg, &Interpreter::FUCOMIP);
|
||||
build_slash(0xDF, 6, "FBSTP", OP_FPU_M80, &Interpreter::FBSTP_M80);
|
||||
|
@ -828,7 +828,7 @@ static void build_sse_f3(u8 op, const char* mnemonic, InstructionFormat format,
|
|||
build_0f_slash(0x18, 2, "PREFETCHT1", OP_RM8, &Interpreter::PREFETCHT1);
|
||||
build_0f_slash(0x18, 3, "PREFETCHT2", OP_RM8, &Interpreter::PREFETCHT2);
|
||||
|
||||
// FIXME: Techinically NoPrefix (sse_np_slash?)
|
||||
// FIXME: Technically NoPrefix (sse_np_slash?)
|
||||
build_0f_slash(0xAE, 2, "LDMXCSR", OP_RM32, &Interpreter::LDMXCSR);
|
||||
build_0f_slash(0xAE, 3, "STMXCSR", OP_RM32, &Interpreter::STMXCSR);
|
||||
// FIXME: SFENCE: NP 0F AE F8
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue