summaryrefslogtreecommitdiff
path: root/compile.c
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2019-09-27 10:20:56 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2019-09-27 10:20:56 +0900
commit0c6f36668a11902903d85ada61a812d297d02de5 (patch)
tree0e976fcb5b4291258fa80c8f07249cad99d49cc6 /compile.c
parent293c6c8cc3cd9a9cb2910672589ee3631e1f1653 (diff)
Adjusted spaces [ci skip]
Diffstat (limited to 'compile.c')
-rw-r--r--compile.c21
1 files changed, 11 insertions, 10 deletions
diff --git a/compile.c b/compile.c
index 59ee138c0c..68c7e5a71d 100644
--- a/compile.c
+++ b/compile.c
@@ -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;
}
}
}