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
dbd46f86
Commit
dbd46f86
authored
Oct 16, 2015
by
Marius Wachtler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pypa: enable optimizations
This converts a lot of -(int) into (-int)
parent
1f220725
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
src/codegen/parser.cpp
src/codegen/parser.cpp
+2
-2
src/codegen/pypa-parser.cpp
src/codegen/pypa-parser.cpp
+1
-0
No files found.
src/codegen/parser.cpp
View file @
dbd46f86
...
@@ -1074,9 +1074,9 @@ AST_Module* parse_file(const char* fn, FutureFlags inherited_flags) {
...
@@ -1074,9 +1074,9 @@ AST_Module* parse_file(const char* fn, FutureFlags inherited_flags) {
const
char
*
getMagic
()
{
const
char
*
getMagic
()
{
if
(
ENABLE_PYPA_PARSER
)
if
(
ENABLE_PYPA_PARSER
)
return
"a
\n
c
N
"
;
return
"a
\n
c
O
"
;
else
else
return
"a
\n
c
n
"
;
return
"a
\n
c
o
"
;
}
}
#define MAGIC_STRING_LENGTH 4
#define MAGIC_STRING_LENGTH 4
...
...
src/codegen/pypa-parser.cpp
View file @
dbd46f86
...
@@ -1169,6 +1169,7 @@ static AST_Module* parse_with_reader(std::unique_ptr<pypa::Reader> reader, Futur
...
@@ -1169,6 +1169,7 @@ static AST_Module* parse_with_reader(std::unique_ptr<pypa::Reader> reader, Futur
pypa
::
AstModulePtr
module
;
pypa
::
AstModulePtr
module
;
pypa
::
ParserOptions
options
;
pypa
::
ParserOptions
options
;
options
.
perform_inline_optimizations
=
true
;
options
.
printerrors
=
false
;
options
.
printerrors
=
false
;
options
.
python3allowed
=
false
;
options
.
python3allowed
=
false
;
options
.
python3only
=
false
;
options
.
python3only
=
false
;
...
...
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