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
4a311a47
Commit
4a311a47
authored
Apr 20, 2013
by
Yukihiro "Matz" Matsumoto
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1196 from monaka/pr-use-mrb_aspec
Cleanup around mrb_code, mrb_aspec.
parents
d9d404e3
ec4892c7
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
include/mruby.h
include/mruby.h
+2
-2
src/codegen.c
src/codegen.c
+3
-3
src/vm.c
src/vm.c
+1
-1
No files found.
include/mruby.h
View file @
4a311a47
...
...
@@ -36,8 +36,8 @@ extern "C" {
#include "mruby/value.h"
typedef
int32_t
mrb_code
;
typedef
int32_t
mrb_aspec
;
typedef
u
int32_t
mrb_code
;
typedef
u
int32_t
mrb_aspec
;
struct
mrb_state
;
...
...
src/codegen.c
View file @
4a311a47
...
...
@@ -586,7 +586,7 @@ lambda_body(codegen_scope *s, node *tree, int blk)
}
tree
=
tree
->
cdr
;
if
(
tree
->
car
)
{
int32_t
a
;
mrb_aspec
a
;
int
ma
,
oa
,
ra
,
pa
,
ka
,
kd
,
ba
;
int
pos
,
i
;
node
*
n
,
*
opt
;
...
...
@@ -602,8 +602,8 @@ lambda_body(codegen_scope *s, node *tree, int blk)
ka
=
kd
=
0
;
ba
=
tree
->
car
->
cdr
->
cdr
->
cdr
->
cdr
?
1
:
0
;
a
=
((
int32_t
)(
ma
&
0x1f
)
<<
18
)
|
((
int32_t
)(
oa
&
0x1f
)
<<
13
)
a
=
((
mrb_aspec
)(
ma
&
0x1f
)
<<
18
)
|
((
mrb_aspec
)(
oa
&
0x1f
)
<<
13
)
|
((
ra
&
1
)
<<
12
)
|
((
pa
&
0x1f
)
<<
7
)
|
((
ka
&
0x1f
)
<<
2
)
...
...
src/vm.c
View file @
4a311a47
...
...
@@ -1117,7 +1117,7 @@ mrb_run(mrb_state *mrb, struct RProc *proc, mrb_value self)
CASE
(
OP_ENTER
)
{
/* Ax arg setup according to flags (24=5:5:1:5:5:1:1) */
/* number of optional arguments times OP_JMP should follow */
int32_t
ax
=
GETARG_Ax
(
i
);
mrb_aspec
ax
=
GETARG_Ax
(
i
);
int
m1
=
(
ax
>>
18
)
&
0x1f
;
int
o
=
(
ax
>>
13
)
&
0x1f
;
int
r
=
(
ax
>>
12
)
&
0x1
;
...
...
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