summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2020-08-08 15:57:42 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2020-10-12 16:21:35 +0900
commit107c777341c4768f0208e590a9ec6c8b9a241060 (patch)
tree23731010e8c7c5d4e91e4fabad2ee4f713ffc931 /src
parent500f721f7080e79c2e41e306cc1d94471c10f173 (diff)
downloadmruby-107c777341c4768f0208e590a9ec6c8b9a241060.tar.gz
mruby-107c777341c4768f0208e590a9ec6c8b9a241060.zip
Rename `OP_JUW` instruction to `OP_JMPUW`.
Diffstat (limited to 'src')
-rw-r--r--src/codedump.c4
-rw-r--r--src/vm.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/codedump.c b/src/codedump.c
index 389ed3c8f..3f0801929 100644
--- a/src/codedump.c
+++ b/src/codedump.c
@@ -261,8 +261,8 @@ codedump(mrb_state *mrb, const mrb_irep *irep)
CASE(OP_JMP, S);
printf("OP_JMP\t\t%03d\n", a);
break;
- CASE(OP_JUW, S);
- printf("OP_JUW\t\t%03d\n", a);
+ CASE(OP_JMPUW, S);
+ printf("OP_JMPUW\t\t%03d\n", a);
break;
CASE(OP_JMPIF, BS);
printf("OP_JMPIF\tR%d\t%03d\t", a, b);
diff --git a/src/vm.c b/src/vm.c
index 727c37d53..82301aaf4 100644
--- a/src/vm.c
+++ b/src/vm.c
@@ -1298,7 +1298,7 @@ RETRY_TRY_BLOCK:
NEXT;
}
- CASE(OP_JUW, S) {
+ CASE(OP_JMPUW, S) {
CHECKPOINT_RESTORE(RBREAK_TAG_JUMP) {
struct RBreak *brk = (struct RBreak*)mrb->exc;
mrb_value target = mrb_break_value_get(brk);