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
3410be80
Commit
3410be80
authored
Oct 7, 2013
by
Damien
Browse files
Options
Downloads
Patches
Plain Diff
Merge viper types with standard native emitter.
parent
acbf9a50
No related branches found
No related tags found
No related merge requests found
Changes
4
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
py/Makefile
+0
-1
0 additions, 1 deletion
py/Makefile
py/compile.c
+2
-9
2 additions, 9 deletions
py/compile.c
py/emitviperx64.c
+0
-989
0 additions, 989 deletions
py/emitviperx64.c
py/emitx64.c
+388
-142
388 additions, 142 deletions
py/emitx64.c
with
390 additions
and
1141 deletions
py/Makefile
+
0
−
1
View file @
3410be80
...
@@ -17,7 +17,6 @@ SRC = \
...
@@ -17,7 +17,6 @@ SRC = \
emitbc.c
\
emitbc.c
\
asmx64.c
\
asmx64.c
\
emitx64.c
\
emitx64.c
\
emitviperx64.c
\
emitthumb.c
\
emitthumb.c
\
asmthumb.c
\
asmthumb.c
\
emitinlinethumb.c
\
emitinlinethumb.c
\
...
...
This diff is collapsed.
Click to expand it.
py/compile.c
+
2
−
9
View file @
3410be80
...
@@ -2689,7 +2689,6 @@ void py_compile(py_parse_node_t pn) {
...
@@ -2689,7 +2689,6 @@ void py_compile(py_parse_node_t pn) {
// compile pass 2 and 3
// compile pass 2 and 3
emit_t
*
emit_bc
=
NULL
;
emit_t
*
emit_bc
=
NULL
;
emit_t
*
emit_native
=
NULL
;
emit_t
*
emit_native
=
NULL
;
emit_t
*
emit_viper
=
NULL
;
emit_inline_asm_t
*
emit_inline_thumb
=
NULL
;
emit_inline_asm_t
*
emit_inline_thumb
=
NULL
;
for
(
scope_t
*
s
=
comp
->
scope_head
;
s
!=
NULL
;
s
=
s
->
next
)
{
for
(
scope_t
*
s
=
comp
->
scope_head
;
s
!=
NULL
;
s
=
s
->
next
)
{
if
(
s
->
emit_options
==
EMIT_OPT_ASM_THUMB
)
{
if
(
s
->
emit_options
==
EMIT_OPT_ASM_THUMB
)
{
...
@@ -2705,19 +2704,13 @@ void py_compile(py_parse_node_t pn) {
...
@@ -2705,19 +2704,13 @@ void py_compile(py_parse_node_t pn) {
}
else
{
}
else
{
switch
(
s
->
emit_options
)
{
switch
(
s
->
emit_options
)
{
case
EMIT_OPT_NATIVE_PYTHON
:
case
EMIT_OPT_NATIVE_PYTHON
:
case
EMIT_OPT_VIPER
:
if
(
emit_native
==
NULL
)
{
if
(
emit_native
==
NULL
)
{
emit_native
=
emit_x64_new
(
max_num_labels
);
emit_native
=
emit_x64_new
(
max_num_labels
);
}
}
comp
->
emit
=
emit_native
;
comp
->
emit
=
emit_native
;
comp
->
emit_method_table
=
&
emit_x64_method_table
;
comp
->
emit_method_table
=
&
emit_x64_method_table
;
break
;
comp
->
emit_method_table
->
set_native_types
(
comp
->
emit
,
s
->
emit_options
==
EMIT_OPT_VIPER
);
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
;
break
;
break
;
default:
default:
...
...
This diff is collapsed.
Click to expand it.
py/emitviperx64.c
deleted
100644 → 0
+
0
−
989
View file @
acbf9a50
This diff is collapsed.
Click to expand it.
py/emitx64.c
+
388
−
142
View file @
3410be80
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