Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
Pyston
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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
Pyston
Commits
18c6b30c
Commit
18c6b30c
authored
Jun 21, 2016
by
Kevin Modzelewski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Convert type_analysis to vregs
parent
19e073e7
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
89 additions
and
51 deletions
+89
-51
src/analysis/function_analysis.cpp
src/analysis/function_analysis.cpp
+2
-1
src/analysis/type_analysis.cpp
src/analysis/type_analysis.cpp
+82
-49
src/codegen/unwinding.cpp
src/codegen/unwinding.cpp
+4
-0
src/core/cfg.h
src/core/cfg.h
+1
-1
No files found.
src/analysis/function_analysis.cpp
View file @
18c6b30c
...
...
@@ -298,7 +298,8 @@ public:
&&
name
->
lookup_type
!=
ScopeInfo
::
VarScopeType
::
NAME
)
{
assert
(
name
->
vreg
!=
-
1
);
state
[
name
->
vreg
]
=
DefinednessAnalysis
::
Undefined
;
}
}
else
assert
(
name
->
vreg
==
-
1
);
}
else
{
// The CFG pass should reduce all deletes to the "basic" deletes on names/attributes/subscripts.
// If not, probably the best way to do this would be to just do a full AST traversal
...
...
src/analysis/type_analysis.cpp
View file @
18c6b30c
This diff is collapsed.
Click to expand it.
src/codegen/unwinding.cpp
View file @
18c6b30c
...
...
@@ -1093,6 +1093,10 @@ extern "C" void abort() {
// In case displaying the traceback recursively calls abort:
static
bool
recursive
=
false
;
if
(
recursive
)
{
fprintf
(
stderr
,
"Recursively called abort! Make sure to check the stack trace
\n
"
);
}
if
(
!
recursive
&&
!
IN_SHUTDOWN
)
{
recursive
=
true
;
Stats
::
dump
();
...
...
src/core/cfg.h
View file @
18c6b30c
...
...
@@ -124,7 +124,7 @@ public:
int
getVReg
(
InternedString
name
)
const
{
assert
(
hasVRegsAssigned
());
assert
(
sym_vreg_map
.
count
(
name
));
ASSERT
(
sym_vreg_map
.
count
(
name
),
"%s"
,
name
.
c_str
(
));
auto
it
=
sym_vreg_map
.
find
(
name
);
assert
(
it
!=
sym_vreg_map
.
end
());
assert
(
it
->
second
!=
-
1
);
...
...
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