From 15bf830abed08902eb41ce7942c55cf794e2f17c Mon Sep 17 00:00:00 2001 From: Maher Jendoubi Date: Tue, 14 Jan 2020 22:30:06 +0100 Subject: [PATCH] Contributing: fixing some typos (mono/mono#18453) Commit migrated from https://github.com/mono/mono/commit/f4567e83dde9393fe19d4cb7e315c21899c67a3f --- src/mono/mono/metadata/threads.c | 2 +- src/mono/mono/mini/driver.c | 2 +- src/mono/mono/mini/exceptions-amd64.c | 4 ++-- src/mono/mono/mini/exceptions-arm.c | 2 +- src/mono/mono/mini/exceptions-arm64.c | 2 +- src/mono/mono/mini/method-to-ir.c | 8 ++++---- 6 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/mono/mono/metadata/threads.c b/src/mono/mono/metadata/threads.c index 34824da..1915f58 100644 --- a/src/mono/mono/metadata/threads.c +++ b/src/mono/mono/metadata/threads.c @@ -2070,7 +2070,7 @@ byte_array_to_domain (MonoArrayHandle arr, MonoDomain *domain, MonoError *error) // Capture arrays into common representation for repetitious code. // These two variables could also be an array of size 2 and - // repitition implemented with a loop. + // repetition implemented with a loop. struct { MonoArrayHandle handle; gpointer p; diff --git a/src/mono/mono/mini/driver.c b/src/mono/mono/mini/driver.c index aa99889..d351d1f 100644 --- a/src/mono/mono/mini/driver.c +++ b/src/mono/mono/mini/driver.c @@ -779,7 +779,7 @@ interp_regression_step (MonoImage *image, int verbose, int *total_run, int *tota cfailed++; g_print ("Test '%s' execution failed.\n", method->name); } else if (exc != NULL) { - g_print ("Exception in Test '%s' occured:\n", method->name); + g_print ("Exception in Test '%s' occurred:\n", method->name); mono_object_describe (exc); run++; failed++; diff --git a/src/mono/mono/mini/exceptions-amd64.c b/src/mono/mono/mini/exceptions-amd64.c index ebf9a7a..a551ea0 100644 --- a/src/mono/mono/mini/exceptions-amd64.c +++ b/src/mono/mono/mini/exceptions-amd64.c @@ -1105,7 +1105,7 @@ mono_arch_unwindinfo_add_alloc_stack (PUNWIND_INFO unwindinfo, MonoUnwindOp *unw if (codesneeded == 3) { /*the unscaled size of the allocation is recorded in the next two slots in little-endian format. - NOTE, unwind codes are allocated from end to begining of list so + NOTE, unwind codes are allocated from end to beginning of list so unwind code will have right execution order. List is sorted on CodeOffset using descending sort order.*/ unwindcode->UnwindOp = UWOP_ALLOC_LARGE; @@ -1115,7 +1115,7 @@ mono_arch_unwindinfo_add_alloc_stack (PUNWIND_INFO unwindinfo, MonoUnwindOp *unw else { /*the size of the allocation divided by 8 is recorded in the next slot. - NOTE, unwind codes are allocated from end to begining of list so + NOTE, unwind codes are allocated from end to beginning of list so unwind code will have right execution order. List is sorted on CodeOffset using descending sort order.*/ unwindcode->UnwindOp = UWOP_ALLOC_LARGE; diff --git a/src/mono/mono/mini/exceptions-arm.c b/src/mono/mono/mini/exceptions-arm.c index 1492e1c..4433324 100644 --- a/src/mono/mono/mini/exceptions-arm.c +++ b/src/mono/mono/mini/exceptions-arm.c @@ -392,7 +392,7 @@ mono_arm_get_exception_trampolines (gboolean aot) MonoTrampInfo *info; GSList *tramps = NULL; - // FIXME Macro to make one line per trampoline and less repitition of names. + // FIXME Macro to make one line per trampoline and less repetition of names. /* LLVM uses the normal trampolines, but with a different name */ get_throw_trampoline (168, TRUE, FALSE, FALSE, FALSE, "llvm_throw_corlib_exception_trampoline", &info, aot, FALSE); diff --git a/src/mono/mono/mini/exceptions-arm64.c b/src/mono/mono/mini/exceptions-arm64.c index 51a20fc..11cb6cc 100644 --- a/src/mono/mono/mini/exceptions-arm64.c +++ b/src/mono/mono/mini/exceptions-arm64.c @@ -139,7 +139,7 @@ mono_arch_get_call_filter (MonoTrampInfo **info, gboolean aot) /* Load ctx */ arm_ldrx (code, ARMREG_IP0, ARMREG_FP, ctx_offset); /* Save registers back to ctx */ - /* This isn't strictly neccessary since we don't allocate variables used in eh clauses to registers */ + /* This isn't strictly necessary since we don't allocate variables used in eh clauses to registers */ code = mono_arm_emit_store_regarray (code, MONO_ARCH_CALLEE_SAVED_REGS, ARMREG_IP0, MONO_STRUCT_OFFSET (MonoContext, regs)); /* Restore regs */ diff --git a/src/mono/mono/mini/method-to-ir.c b/src/mono/mono/mini/method-to-ir.c index 2f8a586..0183421 100644 --- a/src/mono/mono/mini/method-to-ir.c +++ b/src/mono/mono/mini/method-to-ir.c @@ -4299,7 +4299,7 @@ mono_save_args (MonoCompile *cfg, MonoMethodSignature *sig, MonoInst **sp) */ temp = mono_compile_create_var (cfg, argtype, OP_LOCAL); cfg->args [i] = temp; - /* This uses cfg->args [i] which is set by the preceeding line */ + /* This uses cfg->args [i] which is set by the preceding line */ EMIT_NEW_ARGSTORE (cfg, store, i, *sp); store->cil_code = sp [0]->cil_code; sp++; @@ -5690,7 +5690,7 @@ handle_constrained_call (MonoCompile *cfg, MonoMethod *cmethod, MonoMethodSignat if (mono_class_is_interface (cmethod->klass) && mono_class_is_ginst (cmethod->klass) && (cmethod->flags & METHOD_ATTRIBUTE_ABSTRACT)) { /* - * The parent classes implement no generic interfaces, so the called method will be a vtype method, so no boxing neccessary. + * The parent classes implement no generic interfaces, so the called method will be a vtype method, so no boxing necessary. */ /* If the method is not abstract, it's a default interface method, and we need to box */ need_box = FALSE; @@ -7924,7 +7924,7 @@ calli_end: /* return from inlined method */ /* * If in_count == 0, that means the ret is unreachable due to - * being preceeded by a throw. In that case, inline_method () will + * being preceded by a throw. In that case, inline_method () will * handle setting the return value * (test case: test_0_inline_throw ()). */ @@ -12815,7 +12815,7 @@ NOTES - When to decompose opcodes: - earlier: this makes some optimizations hard to implement, since the low level IR - no longer contains the neccessary information. But it is easier to do. + no longer contains the necessary information. But it is easier to do. - later: harder to implement, enables more optimizations. - Branches inside bblocks: - created when decomposing complex opcodes. -- 2.7.4