Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mruby
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
mruby
Commits
fe1ad37b
Unverified
Commit
fe1ad37b
authored
Sep 03, 2020
by
Yukihiro "Matz" Matsumoto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use `goto` to avoid problems with `DIRECT_THREADED`.
You can now use `NEXT` within `switch` statement like 7c087eb.
parent
9e842b3a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
src/vm.c
src/vm.c
+3
-4
No files found.
src/vm.c
View file @
fe1ad37b
...
...
@@ -966,9 +966,9 @@ prepare_tagged_break(mrb_state *mrb, uint32_t tag, const struct RProc *proc, mrb
#define INIT_DISPATCH for (;;) { insn = BYTECODE_DECODER(*pc); CODE_FETCH_HOOK(mrb, irep, pc, regs); switch (insn) {
#define CASE(insn,ops) case insn: pc0=pc++; FETCH_ ## ops (); pc_save = pc;
#define NEXT
break
#define NEXT
goto L_END_DISPATCH
#define JUMP NEXT
#define END_DISPATCH }}
#define END_DISPATCH
L_END_DISPATCH:;
}}
#else
...
...
@@ -2324,7 +2324,7 @@ RETRY_TRY_BLOCK:
mrb_int
div
=
mrb_num_div_int
(
mrb
,
x
,
y
);
SET_INT_VALUE
(
mrb
,
regs
[
a
],
div
);
}
goto
L_DIV_OU
T
;
NEX
T
;
#ifndef MRB_NO_FLOAT
case
TYPES2
(
MRB_TT_INTEGER
,
MRB_TT_FLOAT
):
x
=
(
mrb_float
)
mrb_integer
(
regs
[
a
]);
...
...
@@ -2349,7 +2349,6 @@ RETRY_TRY_BLOCK:
f
=
mrb_num_div_flo
(
mrb
,
x
,
y
);
SET_FLOAT_VALUE
(
mrb
,
regs
[
a
],
f
);
#endif
L_DIV_OUT:
NEXT
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment