Contributing: fixing some typos (mono/mono#18453)
authorMaher Jendoubi <maher.jendoubi@gmail.com>
Tue, 14 Jan 2020 21:30:06 +0000 (22:30 +0100)
committerAlexander Köplinger <alex.koeplinger@outlook.com>
Tue, 14 Jan 2020 21:30:06 +0000 (22:30 +0100)
Commit migrated from https://github.com/mono/mono/commit/f4567e83dde9393fe19d4cb7e315c21899c67a3f

src/mono/mono/metadata/threads.c
src/mono/mono/mini/driver.c
src/mono/mono/mini/exceptions-amd64.c
src/mono/mono/mini/exceptions-arm.c
src/mono/mono/mini/exceptions-arm64.c
src/mono/mono/mini/method-to-ir.c

index 34824da..1915f58 100644 (file)
@@ -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;
index aa99889..d351d1f 100644 (file)
@@ -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++;
index ebf9a7a..a551ea0 100644 (file)
@@ -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;
index 1492e1c..4433324 100644 (file)
@@ -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);
index 51a20fc..11cb6cc 100644 (file)
@@ -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 */
index 2f8a586..0183421 100644 (file)
@@ -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.