diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2019-09-27 10:20:56 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2019-09-27 10:20:56 +0900 |
commit | 0c6f36668a11902903d85ada61a812d297d02de5 (patch) | |
tree | 0e976fcb5b4291258fa80c8f07249cad99d49cc6 /compile.c | |
parent | 293c6c8cc3cd9a9cb2910672589ee3631e1f1653 (diff) | |
download | ruby-0c6f36668a11902903d85ada61a812d297d02de5.tar.gz |
Adjusted spaces [ci skip]
Diffstat (limited to 'compile.c')
-rw-r--r-- | compile.c | 21 |
1 files changed, 11 insertions, 10 deletions
@@ -3988,7 +3988,7 @@ compile_array(rb_iseq_t *iseq, LINK_ANCHOR *const ret, const NODE *node, int pop if (static_literal_node_p(node, iseq)) { /* count the elements that are optimizable */ const NODE *node_tmp = node->nd_next; - for(; node_tmp && static_literal_node_p(node_tmp, iseq); node_tmp = node_tmp->nd_next) + for (; node_tmp && static_literal_node_p(node_tmp, iseq); node_tmp = node_tmp->nd_next) count++; if ((first_chunk && stack_len == 0 && !node_tmp) || count >= min_tmp_ary_len) { @@ -4117,7 +4117,7 @@ compile_hash(rb_iseq_t *iseq, LINK_ANCHOR *const ret, const NODE *node, int popp if (static_literal_node_pair_p(node, iseq)) { /* count the elements that are optimizable */ const NODE *node_tmp = node->nd_next->nd_next; - for(; node_tmp && static_literal_node_pair_p(node_tmp, iseq); node_tmp = node_tmp->nd_next->nd_next) + for (; node_tmp && static_literal_node_pair_p(node_tmp, iseq); node_tmp = node_tmp->nd_next->nd_next) count++; if ((first_chunk && stack_len == 0 && !node_tmp) || count >= min_tmp_hash_len) { @@ -8968,7 +8968,8 @@ rb_iseq_mark_insn_storage(struct iseq_compile_data_storage *storage) if (offset > storage->size || offset > storage->pos) { pos = 0; storage = storage->next; - } else { + } + else { #ifdef STRICT_ALIGNMENT pos += (int)padding; #endif /* STRICT_ALIGNMENT */ @@ -8979,12 +8980,12 @@ rb_iseq_mark_insn_storage(struct iseq_compile_data_storage *storage) int j; const char *types = insn_op_types(iobj->insn_id); - for(j = 0; types[j]; j++) { + for (j = 0; types[j]; j++) { char type = types[j]; - switch(type) { - case TS_CDHASH: - case TS_ISEQ: - case TS_VALUE: + switch (type) { + case TS_CDHASH: + case TS_ISEQ: + case TS_VALUE: { VALUE op = OPERAND_AT(iobj, j); if (!SPECIAL_CONST_P(op)) { @@ -8992,8 +8993,8 @@ rb_iseq_mark_insn_storage(struct iseq_compile_data_storage *storage) } break; } - default: - break; + default: + break; } } } |