Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
micropython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
micropython
Commits
8cd4911e
Commit
8cd4911e
authored
Mar 15, 2017
by
Damien George
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
py/emitnative: Remove obsolete commented out code.
parent
e29f704b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
38 deletions
+0
-38
py/emitnative.c
py/emitnative.c
+0
-38
No files found.
py/emitnative.c
View file @
8cd4911e
...
...
@@ -591,38 +591,9 @@ STATIC void emit_native_set_source_line(emit_t *emit, mp_uint_t source_line) {
(
void
)
source_line
;
}
/*
STATIC void emit_pre_raw(emit_t *emit, int stack_size_delta) {
adjust_stack(emit, stack_size_delta);
emit->last_emit_was_return_value = false;
}
*/
// this must be called at start of emit functions
STATIC
void
emit_native_pre
(
emit_t
*
emit
)
{
emit
->
last_emit_was_return_value
=
false
;
// settle the stack
/*
if (regs_needed != 0) {
for (int i = 0; i < emit->stack_size; i++) {
switch (emit->stack_info[i].kind) {
case STACK_VALUE:
break;
case STACK_REG:
// TODO only push reg if in regs_needed
emit->stack_info[i].kind = STACK_VALUE;
ASM_MOV_REG_TO_LOCAL(emit->as, emit->stack_info[i].data.u_reg, emit->stack_start + i);
break;
case STACK_IMM:
// don't think we ever need to push imms for settling
//ASM_MOV_IMM_TO_LOCAL(emit->last_imm, emit->stack_start + i);
break;
}
}
}
*/
}
// depth==0 is top, depth==1 is before top, etc
...
...
@@ -1007,9 +978,7 @@ STATIC void emit_native_load_const_str(emit_t *emit, qstr qst) {
// do native array access. For now we just load them as any other object.
/*
if (emit->do_viper_types) {
// not implemented properly
// load a pointer to the asciiz string?
assert(0);
emit_post_push_imm(emit, VTYPE_PTR, (mp_uint_t)qstr_str(qst));
} else
*/
...
...
@@ -1839,12 +1808,6 @@ STATIC void emit_native_pop_block(emit_t *emit) {
STATIC
void
emit_native_pop_except
(
emit_t
*
emit
)
{
(
void
)
emit
;
/*
emit_native_pre(emit);
emit_call(emit, MP_F_NLR_POP);
adjust_stack(emit, -(mp_int_t)(sizeof(nlr_buf_t) / sizeof(mp_uint_t)));
emit_post(emit);
*/
}
STATIC
void
emit_native_unary_op
(
emit_t
*
emit
,
mp_unary_op_t
op
)
{
...
...
@@ -2256,7 +2219,6 @@ STATIC void emit_native_return_value(emit_t *emit) {
assert
(
vtype
==
VTYPE_PYOBJ
);
}
emit
->
last_emit_was_return_value
=
true
;
//ASM_BREAK_POINT(emit->as); // to insert a break-point for debugging
ASM_EXIT
(
emit
->
as
);
}
...
...
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