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
dd7aa0d5
Commit
dd7aa0d5
authored
Jul 31, 2015
by
Marius Wachtler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cache SourceInfo::getScopeInfo
parent
ceb3e449
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
1 deletion
+5
-1
src/codegen/codegen.cpp
src/codegen/codegen.cpp
+1
-0
src/codegen/irgen/hooks.cpp
src/codegen/irgen/hooks.cpp
+3
-1
src/core/types.h
src/core/types.h
+1
-0
No files found.
src/codegen/codegen.cpp
View file @
dd7aa0d5
...
...
@@ -63,6 +63,7 @@ SourceInfo::SourceInfo(BoxedModule* m, ScopingAnalysis* scoping, FutureFlags fut
std
::
vector
<
AST_stmt
*>
body
,
std
::
string
fn
)
:
parent_module
(
m
),
scoping
(
scoping
),
scope_info
(
NULL
),
future_flags
(
future_flags
),
ast
(
ast
),
cfg
(
NULL
),
...
...
src/codegen/irgen/hooks.cpp
View file @
dd7aa0d5
...
...
@@ -127,7 +127,9 @@ Box* SourceInfo::getDocString() {
}
ScopeInfo
*
SourceInfo
::
getScopeInfo
()
{
return
scoping
->
getScopeInfoForNode
(
ast
);
if
(
!
scope_info
)
scope_info
=
scoping
->
getScopeInfoForNode
(
ast
);
return
scope_info
;
}
LivenessAnalysis
*
SourceInfo
::
getLiveness
()
{
...
...
src/core/types.h
View file @
dd7aa0d5
...
...
@@ -328,6 +328,7 @@ class SourceInfo {
public:
BoxedModule
*
parent_module
;
ScopingAnalysis
*
scoping
;
ScopeInfo
*
scope_info
;
FutureFlags
future_flags
;
AST
*
ast
;
CFG
*
cfg
;
...
...
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