Created
January 8, 2019 06:42
-
-
Save xeioex/908ac20035b36bc29d230f7a7fe1df42 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/njs/njs.c b/njs/njs.c | |
| --- a/njs/njs.c | |
| +++ b/njs/njs.c | |
| @@ -461,14 +461,14 @@ nxt_int_t | |
| njs_vm_call(njs_vm_t *vm, njs_function_t *function, const njs_value_t *args, | |
| nxt_uint_t nargs) | |
| { | |
| - u_char *current; | |
| - njs_ret_t ret; | |
| - njs_value_t *this; | |
| + u_char *current; | |
| + njs_ret_t ret; | |
| + njs_value_t *this; | |
| this = (njs_value_t *) &njs_value_void; | |
| current = vm->current; | |
| - | |
| + | |
| vm->current = (u_char *) njs_continuation_nexus; | |
| ret = njs_function_frame_activate(vm, function, this, args, nargs, | |
| diff --git a/njs/njs_function.c b/njs/njs_function.c | |
| --- a/njs/njs_function.c | |
| +++ b/njs/njs_function.c | |
| @@ -979,8 +979,9 @@ njs_function_prototype_apply(njs_vm_t *v | |
| njs_ret_t | |
| -njs_function_frame_activate(njs_vm_t *vm, njs_function_t *function, njs_value_t *this, | |
| - const njs_value_t *args, nxt_uint_t nargs, njs_index_t retval, size_t advance) | |
| +njs_function_frame_activate(njs_vm_t *vm, njs_function_t *function, | |
| + njs_value_t *this, const njs_value_t *args, nxt_uint_t nargs, | |
| + njs_index_t retval, size_t advance) | |
| { | |
| njs_ret_t ret; | |
| njs_continuation_t *cont; | |
| @@ -1021,7 +1022,7 @@ njs_function_activate(njs_vm_t *vm, njs_ | |
| njs_ret_t ret; | |
| ret = njs_function_frame_activate(vm, function, this, args, nargs, retval, | |
| - sizeof(njs_vmcode_function_call_t)); | |
| + sizeof(njs_vmcode_function_call_t)); | |
| if (nxt_slow_path(ret == NXT_ERROR)) { | |
| return ret; | |
| } | |
| diff --git a/njs/njs_vm.c b/njs/njs_vm.c | |
| --- a/njs/njs_vm.c | |
| +++ b/njs/njs_vm.c | |
| @@ -2287,9 +2287,9 @@ const njs_vmcode_generic_t njs_continua | |
| .retval = NJS_VMCODE_NO_RETVAL } }, | |
| { .code = { .operation = njs_vmcode_stop, | |
| - .operands = NJS_VMCODE_1OPERAND, | |
| - .retval = NJS_VMCODE_NO_RETVAL }, | |
| - .operand1 = NJS_INDEX_GLOBAL_RETVAL }, | |
| + .operands = NJS_VMCODE_1OPERAND, | |
| + .retval = NJS_VMCODE_NO_RETVAL }, | |
| + .operand1 = NJS_INDEX_GLOBAL_RETVAL }, | |
| }; | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment