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
b9282cb6
Commit
b9282cb6
authored
Feb 04, 2015
by
Kevin Modzelewski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Small fixes
parent
69c4486f
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
4 deletions
+8
-4
src/codegen/ast_interpreter.cpp
src/codegen/ast_interpreter.cpp
+2
-2
src/core/options.cpp
src/core/options.cpp
+3
-1
src/core/stringpool.h
src/core/stringpool.h
+3
-1
No files found.
src/codegen/ast_interpreter.cpp
View file @
b9282cb6
...
...
@@ -575,7 +575,7 @@ Value ASTInterpreter::visit_yield(AST_Yield* node) {
return
yield
(
generator
,
value
.
o
);
}
Value
__attribute__
((
flatten
))
ASTInterpreter
::
visit_stmt
(
AST_stmt
*
node
)
{
Value
ASTInterpreter
::
visit_stmt
(
AST_stmt
*
node
)
{
if
(
0
)
{
printf
(
"%20s % 2d "
,
source_info
->
getName
().
c_str
(),
current_block
->
idx
);
print_ast
(
node
);
...
...
@@ -833,7 +833,7 @@ Value ASTInterpreter::visit_compare(AST_Compare* node) {
return
doBinOp
(
visit_expr
(
node
->
left
).
o
,
visit_expr
(
node
->
comparators
[
0
]).
o
,
node
->
ops
[
0
],
BinExpType
::
Compare
);
}
Value
__attribute__
((
flatten
))
ASTInterpreter
::
visit_expr
(
AST_expr
*
node
)
{
Value
ASTInterpreter
::
visit_expr
(
AST_expr
*
node
)
{
switch
(
node
->
type
)
{
case
AST_TYPE
:
:
Attribute
:
return
visit_attribute
((
AST_Attribute
*
)
node
);
...
...
src/core/options.cpp
View file @
b9282cb6
...
...
@@ -64,5 +64,7 @@ bool ENABLE_RUNTIME_ICS = 1 && _GLOBAL_ENABLE;
bool
ENABLE_FRAME_INTROSPECTION
=
1
;
bool
BOOLS_AS_I64
=
ENABLE_FRAME_INTROSPECTION
;
extern
"C"
int
Py_IgnoreEnvironmentFlag
=
1
;
extern
"C"
{
int
Py_IgnoreEnvironmentFlag
=
1
;
}
}
src/core/stringpool.h
View file @
b9282cb6
...
...
@@ -132,7 +132,8 @@ template <> struct less<pyston::InternedString> {
};
}
template
<
>
struct
llvm
::
DenseMapInfo
<
pyston
::
InternedString
>
{
namespace
llvm
{
template
<
>
struct
DenseMapInfo
<
pyston
::
InternedString
>
{
static
inline
pyston
::
InternedString
getEmptyKey
()
{
return
pyston
::
InternedString
();
}
static
inline
pyston
::
InternedString
getTombstoneKey
()
{
pyston
::
InternedString
str
;
...
...
@@ -145,5 +146,6 @@ template <> struct llvm::DenseMapInfo<pyston::InternedString> {
return
lhs
.
_str
==
rhs
.
_str
;
}
};
}
#endif
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