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
b2f61492
Commit
b2f61492
authored
Jul 06, 2016
by
Kevin Modzelewski
Committed by
Kevin Modzelewski
Jul 06, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Incorporate Marius's feedback
parent
43992f58
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
5 additions
and
12 deletions
+5
-12
src/analysis/fpc.h
src/analysis/fpc.h
+0
-1
src/analysis/function_analysis.cpp
src/analysis/function_analysis.cpp
+1
-5
src/analysis/function_analysis.h
src/analysis/function_analysis.h
+1
-3
src/core/cfg.h
src/core/cfg.h
+2
-2
src/core/types.h
src/core/types.h
+1
-1
No files found.
src/analysis/fpc.h
View file @
b2f61492
...
...
@@ -36,7 +36,6 @@ public:
virtual
~
BBAnalyzer
()
{}
virtual
T
merge
(
T
from
,
T
into
)
const
=
0
;
virtual
T
mergeBlank
(
T
into
)
const
=
0
;
virtual
void
processBB
(
Map
&
starting
,
CFGBlock
*
block
)
const
=
0
;
};
...
...
src/analysis/function_analysis.cpp
View file @
b2f61492
...
...
@@ -36,7 +36,7 @@ namespace pyston {
class
LivenessBBVisitor
:
public
NoopASTVisitor
{
private:
struct
Status
{
enum
Usage
{
enum
Usage
:
char
{
NONE
,
USED
,
DEFINED
,
...
...
@@ -231,10 +231,6 @@ public:
return
DefinednessAnalysis
::
PotentiallyDefined
;
}
virtual
void
processBB
(
Map
&
starting
,
CFGBlock
*
block
)
const
;
virtual
DefinitionLevel
mergeBlank
(
DefinitionLevel
into
)
const
{
assert
(
into
!=
DefinednessAnalysis
::
Undefined
);
return
DefinednessAnalysis
::
PotentiallyDefined
;
}
};
class
DefinednessVisitor
:
public
ASTVisitor
{
...
...
src/analysis/function_analysis.h
View file @
b2f61492
...
...
@@ -58,7 +58,7 @@ class PhiAnalysis;
class
DefinednessAnalysis
{
public:
enum
DefinitionLevel
{
enum
DefinitionLevel
:
char
{
Unknown
,
Undefined
,
PotentiallyDefined
,
...
...
@@ -96,12 +96,10 @@ public:
PhiAnalysis
(
VRegMap
<
DefinednessAnalysis
::
DefinitionLevel
>
initial_map
,
CFGBlock
*
initial_block
,
bool
initials_need_phis
,
LivenessAnalysis
*
liveness
,
ScopeInfo
*
scope_info
);
// TODO: convert these to taking vregs
bool
isRequired
(
int
vreg
,
CFGBlock
*
block
);
bool
isRequiredAfter
(
int
vreg
,
CFGBlock
*
block
);
const
VRegSet
&
getAllRequiredAfter
(
CFGBlock
*
block
);
const
VRegSet
&
getAllRequiredFor
(
CFGBlock
*
block
);
// TODO: convert these to taking vregs
// If "name" may be undefined at the beginning of any immediate successor block of "block":
bool
isPotentiallyUndefinedAfter
(
int
vreg
,
CFGBlock
*
block
);
// If "name" may be undefined at the beginning of "block"
...
...
src/core/cfg.h
View file @
b2f61492
...
...
@@ -203,7 +203,7 @@ public:
class
VRegSet
{
private:
// TODO: switch just to a bool*
// TODO: switch just to a bool*
?
std
::
vector
<
bool
>
v
;
public:
...
...
@@ -259,7 +259,7 @@ public:
template
<
typename
T
>
class
VRegMap
{
private:
// TODO: switch just to a T*
// TODO: switch just to a T*
?
std
::
vector
<
T
>
v
;
public:
...
...
src/core/types.h
View file @
b2f61492
...
...
@@ -347,7 +347,7 @@ public:
// The function pointer to the generated code. For convenience, it can be accessed
// as one of many different types.
// TODO: we instead make these
functions that make sure that the function
actually
// TODO: we instead make these
accessor-functions that make sure that the code
actually
// matches the C signature that we would return.
union
{
Box
*
(
*
call
)(
Box
*
,
Box
*
,
Box
*
,
Box
**
);
...
...
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