зеркало из https://github.com/github/ruby.git
* expand tabs.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65108 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
e88fd0606b
Коммит
61634b6768
10
compile.c
10
compile.c
|
@ -5382,7 +5382,7 @@ compile_break(rb_iseq_t *iseq, LINK_ANCHOR *const ret, const NODE *const node, i
|
|||
break_by_insn:
|
||||
/* escape from block */
|
||||
CHECK(COMPILE(ret, "break val (block)", node->nd_stts));
|
||||
ADD_INSN1(ret, line, throw, INT2FIX(throw_flag | TAG_BREAK));
|
||||
ADD_INSN1(ret, line, throw, INT2FIX(throw_flag | TAG_BREAK));
|
||||
if (popped) {
|
||||
ADD_INSN(ret, line, pop);
|
||||
}
|
||||
|
@ -5402,7 +5402,7 @@ compile_break(rb_iseq_t *iseq, LINK_ANCHOR *const ret, const NODE *const node, i
|
|||
}
|
||||
|
||||
if (ISEQ_COMPILE_DATA(ip)->redo_label != 0) {
|
||||
throw_flag = VM_THROW_NO_ESCAPE_FLAG;
|
||||
throw_flag = VM_THROW_NO_ESCAPE_FLAG;
|
||||
goto break_by_insn;
|
||||
}
|
||||
else if (ip->body->type == ISEQ_TYPE_BLOCK) {
|
||||
|
@ -5468,7 +5468,7 @@ compile_next(rb_iseq_t *iseq, LINK_ANCHOR *const ret, const NODE *const node, in
|
|||
break;
|
||||
}
|
||||
|
||||
throw_flag = VM_THROW_NO_ESCAPE_FLAG;
|
||||
throw_flag = VM_THROW_NO_ESCAPE_FLAG;
|
||||
if (ISEQ_COMPILE_DATA(ip)->redo_label != 0) {
|
||||
/* while loop */
|
||||
break;
|
||||
|
@ -5484,7 +5484,7 @@ compile_next(rb_iseq_t *iseq, LINK_ANCHOR *const ret, const NODE *const node, in
|
|||
}
|
||||
if (ip != 0) {
|
||||
CHECK(COMPILE(ret, "next val", node->nd_stts));
|
||||
ADD_INSN1(ret, line, throw, INT2FIX(throw_flag | TAG_NEXT));
|
||||
ADD_INSN1(ret, line, throw, INT2FIX(throw_flag | TAG_NEXT));
|
||||
|
||||
if (popped) {
|
||||
ADD_INSN(ret, line, pop);
|
||||
|
@ -5557,7 +5557,7 @@ compile_redo(rb_iseq_t *iseq, LINK_ANCHOR *const ret, const NODE *const node, in
|
|||
}
|
||||
if (ip != 0) {
|
||||
ADD_INSN(ret, line, putnil);
|
||||
ADD_INSN1(ret, line, throw, INT2FIX(VM_THROW_NO_ESCAPE_FLAG | TAG_REDO));
|
||||
ADD_INSN1(ret, line, throw, INT2FIX(VM_THROW_NO_ESCAPE_FLAG | TAG_REDO));
|
||||
|
||||
if (popped) {
|
||||
ADD_INSN(ret, line, pop);
|
||||
|
|
|
@ -1086,7 +1086,7 @@ vm_throw_continue(const rb_execution_context_t *ec, VALUE err)
|
|||
|
||||
static VALUE
|
||||
vm_throw_start(const rb_execution_context_t *ec, rb_control_frame_t *const reg_cfp, enum ruby_tag_type state,
|
||||
const int flag, const VALUE throwobj)
|
||||
const int flag, const VALUE throwobj)
|
||||
{
|
||||
const rb_control_frame_t *escape_cfp = NULL;
|
||||
const rb_control_frame_t * const eocfp = RUBY_VM_END_CONTROL_FRAME(ec); /* end of control frame pointer */
|
||||
|
@ -1241,7 +1241,7 @@ vm_throw(const rb_execution_context_t *ec, rb_control_frame_t *reg_cfp,
|
|||
const int flag = (int)(throw_state & VM_THROW_NO_ESCAPE_FLAG);
|
||||
|
||||
if (state != 0) {
|
||||
return vm_throw_start(ec, reg_cfp, state, flag, throwobj);
|
||||
return vm_throw_start(ec, reg_cfp, state, flag, throwobj);
|
||||
}
|
||||
else {
|
||||
return vm_throw_continue(ec, throwobj);
|
||||
|
|
Загрузка…
Ссылка в новой задаче