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
0971100d
Commit
0971100d
authored
Aug 23, 2016
by
Marius Wachtler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove lazy scoping analysis option
parent
0814d218
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
2 additions
and
25 deletions
+2
-25
src/codegen/ast_interpreter.cpp
src/codegen/ast_interpreter.cpp
+1
-2
src/core/options.cpp
src/core/options.cpp
+0
-1
src/core/options.h
src/core/options.h
+1
-2
src/runtime/builtin_modules/pyston.cpp
src/runtime/builtin_modules/pyston.cpp
+0
-1
test/tests/del_closure_var_syntax_error.py
test/tests/del_closure_var_syntax_error.py
+0
-6
test/tests/global_and_local.py
test/tests/global_and_local.py
+0
-7
test/tests/name_forcing_syntax_error.py
test/tests/name_forcing_syntax_error.py
+0
-6
No files found.
src/codegen/ast_interpreter.cpp
View file @
0971100d
...
@@ -1160,7 +1160,6 @@ Value ASTInterpreter::createFunction(AST* node, AST_arguments* args) {
...
@@ -1160,7 +1160,6 @@ Value ASTInterpreter::createFunction(AST* node, AST_arguments* args) {
u
.
d
.
s
=
defaults
.
size
()
-
1
;
u
.
d
.
s
=
defaults
.
size
()
-
1
;
bool
takes_closure
;
bool
takes_closure
;
if
(
!
LAZY_SCOPING_ANALYSIS
)
source_info
->
scoping
->
getScopeInfoForNode
(
node
);
source_info
->
scoping
->
getScopeInfoForNode
(
node
);
// Optimization: when compiling a module, it's nice to not have to run analyses into the
// Optimization: when compiling a module, it's nice to not have to run analyses into the
...
...
src/core/options.cpp
View file @
0971100d
...
@@ -80,7 +80,6 @@ bool ENABLE_PYSTON_PASSES = 0 && _GLOBAL_ENABLE;
...
@@ -80,7 +80,6 @@ bool ENABLE_PYSTON_PASSES = 0 && _GLOBAL_ENABLE;
bool
ENABLE_TYPE_FEEDBACK
=
1
&&
_GLOBAL_ENABLE
;
bool
ENABLE_TYPE_FEEDBACK
=
1
&&
_GLOBAL_ENABLE
;
bool
ENABLE_RUNTIME_ICS
=
1
&&
_GLOBAL_ENABLE
;
bool
ENABLE_RUNTIME_ICS
=
1
&&
_GLOBAL_ENABLE
;
bool
ENABLE_JIT_OBJECT_CACHE
=
1
&&
_GLOBAL_ENABLE
;
bool
ENABLE_JIT_OBJECT_CACHE
=
1
&&
_GLOBAL_ENABLE
;
bool
LAZY_SCOPING_ANALYSIS
=
1
;
bool
ENABLE_FRAME_INTROSPECTION
=
1
;
bool
ENABLE_FRAME_INTROSPECTION
=
1
;
...
...
src/core/options.h
View file @
0971100d
...
@@ -44,8 +44,7 @@ extern bool LOG_IC_ASSEMBLY, LOG_BJIT_ASSEMBLY;
...
@@ -44,8 +44,7 @@ extern bool LOG_IC_ASSEMBLY, LOG_BJIT_ASSEMBLY;
extern
bool
ENABLE_ICS
,
ENABLE_ICGENERICS
,
ENABLE_ICGETITEMS
,
ENABLE_ICSETITEMS
,
ENABLE_ICDELITEMS
,
ENABLE_ICBINEXPS
,
extern
bool
ENABLE_ICS
,
ENABLE_ICGENERICS
,
ENABLE_ICGETITEMS
,
ENABLE_ICSETITEMS
,
ENABLE_ICDELITEMS
,
ENABLE_ICBINEXPS
,
ENABLE_ICNONZEROS
,
ENABLE_ICCALLSITES
,
ENABLE_ICSETATTRS
,
ENABLE_ICGETATTRS
,
ENALBE_ICDELATTRS
,
ENABLE_ICGETGLOBALS
,
ENABLE_ICNONZEROS
,
ENABLE_ICCALLSITES
,
ENABLE_ICSETATTRS
,
ENABLE_ICGETATTRS
,
ENALBE_ICDELATTRS
,
ENABLE_ICGETGLOBALS
,
ENABLE_SPECULATION
,
ENABLE_OSR
,
ENABLE_LLVMOPTS
,
ENABLE_INLINING
,
ENABLE_REOPT
,
ENABLE_PYSTON_PASSES
,
ENABLE_SPECULATION
,
ENABLE_OSR
,
ENABLE_LLVMOPTS
,
ENABLE_INLINING
,
ENABLE_REOPT
,
ENABLE_PYSTON_PASSES
,
ENABLE_TYPE_FEEDBACK
,
ENABLE_FRAME_INTROSPECTION
,
ENABLE_RUNTIME_ICS
,
ENABLE_JIT_OBJECT_CACHE
,
ENABLE_TYPE_FEEDBACK
,
ENABLE_FRAME_INTROSPECTION
,
ENABLE_RUNTIME_ICS
,
ENABLE_JIT_OBJECT_CACHE
;
LAZY_SCOPING_ANALYSIS
;
// Due to a temporary LLVM limitation, represent bools as i64's instead of i1's.
// Due to a temporary LLVM limitation, represent bools as i64's instead of i1's.
#define BOOLS_AS_I64 1
#define BOOLS_AS_I64 1
...
...
src/runtime/builtin_modules/pyston.cpp
View file @
0971100d
...
@@ -45,7 +45,6 @@ static Box* setOption(Box* option, Box* value) {
...
@@ -45,7 +45,6 @@ static Box* setOption(Box* option, Box* value) {
else
CHECK
(
SPECULATION_THRESHOLD
);
else
CHECK
(
SPECULATION_THRESHOLD
);
else
CHECK
(
ENABLE_ICS
);
else
CHECK
(
ENABLE_ICS
);
else
CHECK
(
ENABLE_ICGETATTRS
);
else
CHECK
(
ENABLE_ICGETATTRS
);
else
CHECK
(
LAZY_SCOPING_ANALYSIS
);
else
raiseExcHelper
(
ValueError
,
"unknown option name '%s"
,
option_string
->
data
());
else
raiseExcHelper
(
ValueError
,
"unknown option name '%s"
,
option_string
->
data
());
Py_RETURN_NONE
;
Py_RETURN_NONE
;
...
...
test/tests/del_closure_var_syntax_error.py
View file @
0971100d
try
:
import
__pyston__
__pyston__
.
setOption
(
"LAZY_SCOPING_ANALYSIS"
,
0
)
except
ImportError
:
pass
cases
=
[
cases
=
[
"""
"""
...
...
test/tests/global_and_local.py
View file @
0971100d
# I would have expected this to be valid, but cPython and pypy err out saying "name 'x' is local and global"
# I would have expected this to be valid, but cPython and pypy err out saying "name 'x' is local and global"
try
:
import
__pyston__
__pyston__
.
setOption
(
"LAZY_SCOPING_ANALYSIS"
,
0
)
except
ImportError
:
pass
try
:
try
:
exec
"""
exec
"""
x = 1
x = 1
...
...
test/tests/name_forcing_syntax_error.py
View file @
0971100d
...
@@ -4,12 +4,6 @@
...
@@ -4,12 +4,6 @@
# The logic beyond this error message is oddly complicated.
# The logic beyond this error message is oddly complicated.
try
:
import
__pyston__
__pyston__
.
setOption
(
"LAZY_SCOPING_ANALYSIS"
,
0
)
except
ImportError
:
pass
cases
=
[
cases
=
[
# protip: delete this first """ to get your editor to syntax-highlight the code
# protip: delete this first """ to get your editor to syntax-highlight the code
...
...
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