Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
uPython-mirror
Commits
3410be80
Commit
3410be80
authored
Oct 07, 2013
by
Damien
Browse files
Merge viper types with standard native emitter.
parent
acbf9a50
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
py/Makefile
View file @
3410be80
...
...
@@ -17,7 +17,6 @@ SRC = \
emitbc.c
\
asmx64.c
\
emitx64.c
\
emitviperx64.c
\
emitthumb.c
\
asmthumb.c
\
emitinlinethumb.c
\
...
...
py/compile.c
View file @
3410be80
...
...
@@ -2689,7 +2689,6 @@ void py_compile(py_parse_node_t pn) {
// compile pass 2 and 3
emit_t
*
emit_bc
=
NULL
;
emit_t
*
emit_native
=
NULL
;
emit_t
*
emit_viper
=
NULL
;
emit_inline_asm_t
*
emit_inline_thumb
=
NULL
;
for
(
scope_t
*
s
=
comp
->
scope_head
;
s
!=
NULL
;
s
=
s
->
next
)
{
if
(
s
->
emit_options
==
EMIT_OPT_ASM_THUMB
)
{
...
...
@@ -2705,19 +2704,13 @@ void py_compile(py_parse_node_t pn) {
}
else
{
switch
(
s
->
emit_options
)
{
case
EMIT_OPT_NATIVE_PYTHON
:
case
EMIT_OPT_VIPER
:
if
(
emit_native
==
NULL
)
{
emit_native
=
emit_x64_new
(
max_num_labels
);
}
comp
->
emit
=
emit_native
;
comp
->
emit_method_table
=
&
emit_x64_method_table
;
break
;
case
EMIT_OPT_VIPER
:
if
(
emit_viper
==
NULL
)
{
emit_viper
=
emit_viper_x64_new
(
max_num_labels
);
}
comp
->
emit
=
emit_viper
;
comp
->
emit_method_table
=
&
emit_viper_x64_method_table
;
comp
->
emit_method_table
->
set_native_types
(
comp
->
emit
,
s
->
emit_options
==
EMIT_OPT_VIPER
);
break
;
default:
...
...
py/emitviperx64.c
deleted
100644 → 0
View file @
acbf9a50
This diff is collapsed.
Click to expand it.
py/emitx64.c
View file @
3410be80
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
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