Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
M
micropython
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
card10
micropython
Commits
25042b19
Commit
25042b19
authored
Jan 11, 2014
by
Damien George
Browse files
Options
Downloads
Patches
Plain Diff
py: Make arg to MP_BC_RAISE_VARARGS a byte.
parent
ad97f2a4
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
py/bc0.h
+1
-1
1 addition, 1 deletion
py/bc0.h
py/emitbc.c
+2
-2
2 additions, 2 deletions
py/emitbc.c
py/vm.c
+0
-1
0 additions, 1 deletion
py/vm.c
with
3 additions
and
4 deletions
py/bc0.h
+
1
−
1
View file @
25042b19
...
@@ -81,7 +81,7 @@
...
@@ -81,7 +81,7 @@
#define MP_BC_UNPACK_EX (0x7a) // uint
#define MP_BC_UNPACK_EX (0x7a) // uint
#define MP_BC_RETURN_VALUE (0x80)
#define MP_BC_RETURN_VALUE (0x80)
#define MP_BC_RAISE_VARARGS (0x81) //
uint
#define MP_BC_RAISE_VARARGS (0x81) //
byte
#define MP_BC_YIELD_VALUE (0x82)
#define MP_BC_YIELD_VALUE (0x82)
#define MP_BC_YIELD_FROM (0x83)
#define MP_BC_YIELD_FROM (0x83)
...
...
This diff is collapsed.
Click to expand it.
py/emitbc.c
+
2
−
2
View file @
25042b19
...
@@ -672,9 +672,9 @@ static void emit_bc_return_value(emit_t *emit) {
...
@@ -672,9 +672,9 @@ static void emit_bc_return_value(emit_t *emit) {
}
}
static
void
emit_bc_raise_varargs
(
emit_t
*
emit
,
int
n_args
)
{
static
void
emit_bc_raise_varargs
(
emit_t
*
emit
,
int
n_args
)
{
assert
(
n_args
>
=
0
);
assert
(
0
<=
n_args
&&
n_args
<
=
2
);
emit_pre
(
emit
,
-
n_args
);
emit_pre
(
emit
,
-
n_args
);
emit_write_byte_1_
uint
(
emit
,
MP_BC_RAISE_VARARGS
,
n_args
);
emit_write_byte_1_
byte
(
emit
,
MP_BC_RAISE_VARARGS
,
n_args
);
}
}
static
void
emit_bc_yield_value
(
emit_t
*
emit
)
{
static
void
emit_bc_yield_value
(
emit_t
*
emit
)
{
...
...
This diff is collapsed.
Click to expand it.
py/vm.c
+
0
−
1
View file @
25042b19
...
@@ -479,7 +479,6 @@ bool mp_execute_byte_code_2(const byte **ip_in_out, mp_obj_t *fastn, mp_obj_t **
...
@@ -479,7 +479,6 @@ bool mp_execute_byte_code_2(const byte **ip_in_out, mp_obj_t *fastn, mp_obj_t **
assert
(
unum
==
1
);
assert
(
unum
==
1
);
obj1
=
POP
();
obj1
=
POP
();
nlr_jump
(
obj1
);
nlr_jump
(
obj1
);
return
false
;
case
MP_BC_YIELD_VALUE
:
case
MP_BC_YIELD_VALUE
:
nlr_pop
();
nlr_pop
();
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment