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
280b774e
Commit
280b774e
authored
Sep 17, 2014
by
Kevin Modzelewski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
New clang-format results
parent
02712d79
Changes
11
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
19 additions
and
20 deletions
+19
-20
src/Makefile
src/Makefile
+1
-1
src/codegen/codegen.cpp
src/codegen/codegen.cpp
+2
-2
src/codegen/entry.cpp
src/codegen/entry.cpp
+1
-1
src/codegen/irgen/irgenerator.cpp
src/codegen/irgen/irgenerator.cpp
+1
-1
src/codegen/llvm_interpreter.cpp
src/codegen/llvm_interpreter.cpp
+5
-6
src/codegen/opt/const_classes.cpp
src/codegen/opt/const_classes.cpp
+2
-2
src/core/ast.h
src/core/ast.h
+1
-1
src/core/cfg.cpp
src/core/cfg.cpp
+2
-2
src/core/stats.h
src/core/stats.h
+2
-2
src/core/types.h
src/core/types.h
+1
-1
src/runtime/objmodel.cpp
src/runtime/objmodel.cpp
+1
-1
No files found.
src/Makefile
View file @
280b774e
...
...
@@ -364,7 +364,7 @@ check:
$(MAKE)
check_dbg
#
$(MAKE) check_format
$(MAKE)
check_format
$(MAKE)
run_unittests
@# jit_prof forces the use of GCC as the compiler, which can expose other errors, so just build it and see what happens
:
...
...
src/codegen/codegen.cpp
View file @
280b774e
...
...
@@ -146,7 +146,7 @@ public:
#else
++
I
#endif
)
{
)
{
llvm
::
object
::
section_iterator
section
(
Obj
.
end_sections
());
code
=
I
->
getSection
(
section
);
assert
(
!
code
);
...
...
@@ -173,7 +173,7 @@ public:
}
};
GlobalState
::
GlobalState
()
:
context
(
llvm
::
getGlobalContext
())
{};
GlobalState
::
GlobalState
()
:
context
(
llvm
::
getGlobalContext
()){};
llvm
::
JITEventListener
*
makeRegistryListener
()
{
return
new
RegistryEventListener
();
...
...
src/codegen/entry.cpp
View file @
280b774e
...
...
@@ -126,7 +126,7 @@ public:
#endif
#if LLVMREV < 215566
virtual
llvm
::
MemoryBuffer
*
getObject
(
const
llvm
::
Module
*
M
)
{
virtual
llvm
::
MemoryBuffer
*
getObject
(
const
llvm
::
Module
*
M
){
#else
virtual
std
::
unique_ptr
<
llvm
::
MemoryBuffer
>
getObject
(
const
llvm
::
Module
*
M
)
{
#endif
...
...
src/codegen/irgen/irgenerator.cpp
View file @
280b774e
...
...
@@ -1862,7 +1862,7 @@ private:
// prevent us from having two OSR exits point to the same OSR entry; not something that
// we're doing right now but something that would be nice in the future.
llvm
::
Value
*
arg_array
=
NULL
,
*
malloc_save
=
NULL
;
llvm
::
Value
*
arg_array
=
NULL
,
*
malloc_save
=
NULL
;
if
(
sorted_symbol_table
.
size
()
>
3
)
{
// Leave in the ability to use malloc but I guess don't use it.
// Maybe if there are a ton of live variables it'd be nice to have them be
...
...
src/codegen/llvm_interpreter.cpp
View file @
280b774e
...
...
@@ -675,15 +675,14 @@ Box* interpretFunction(llvm::Function* f, int nargs, Box* closure, Box* generato
break
;
case
0b1000000000
:
// 512
r
=
reinterpret_cast
<
int64_t
(
*
)(
int64_t
,
int64_t
,
int64_t
,
int64_t
,
int64_t
,
int64_t
,
int64_t
,
int64_t
)
>
(
f
)(
args
[
0
].
n
,
args
[
1
].
n
,
args
[
2
].
n
,
args
[
3
].
n
,
args
[
4
].
n
,
args
[
5
].
n
,
args
[
6
].
n
,
args
[
7
].
n
);
int64_t
,
int64_t
)
>
(
f
)(
args
[
0
].
n
,
args
[
1
].
n
,
args
[
2
].
n
,
args
[
3
].
n
,
args
[
4
].
n
,
args
[
5
].
n
,
args
[
6
].
n
,
args
[
7
].
n
);
break
;
case
0b10000000000
:
// 1024
r
=
reinterpret_cast
<
int64_t
(
*
)(
int64_t
,
int64_t
,
int64_t
,
int64_t
,
int64_t
,
int64_t
,
int64_t
,
int64_t
,
int64_t
)
>
(
f
)(
args
[
0
].
n
,
args
[
1
].
n
,
args
[
2
].
n
,
args
[
3
].
n
,
args
[
4
].
n
,
args
[
5
].
n
,
args
[
6
].
n
,
args
[
7
].
n
,
args
[
8
].
n
);
int64_t
,
int64_t
,
int64_t
)
>
(
f
)(
args
[
0
].
n
,
args
[
1
].
n
,
args
[
2
].
n
,
args
[
3
].
n
,
args
[
4
].
n
,
args
[
5
].
n
,
args
[
6
].
n
,
args
[
7
].
n
,
args
[
8
].
n
);
break
;
default:
inst
->
dump
();
...
...
src/codegen/opt/const_classes.cpp
View file @
280b774e
...
...
@@ -197,5 +197,5 @@ FunctionPass* createConstClassesPass() {
}
static
RegisterPass
<
pyston
::
ConstClassesPass
>
X
(
"const_classes"
,
"Use the fact that builtin classes are constant and their attributes can be constant-folded"
,
true
,
false
);
X
(
"const_classes"
,
"Use the fact that builtin classes are constant and their attributes can be constant-folded"
,
true
,
false
);
src/core/ast.h
View file @
280b774e
...
...
@@ -394,7 +394,7 @@ public:
virtual
void
accept
(
ASTVisitor
*
v
);
virtual
void
accept_stmt
(
StmtVisitor
*
v
);
AST_Delete
()
:
AST_stmt
(
AST_TYPE
::
Delete
)
{};
AST_Delete
()
:
AST_stmt
(
AST_TYPE
::
Delete
){};
static
const
AST_TYPE
::
AST_TYPE
TYPE
=
AST_TYPE
::
Delete
;
};
...
...
src/core/cfg.cpp
View file @
280b774e
...
...
@@ -1846,8 +1846,8 @@ public:
push_back
(
makeExpr
(
enter
));
}
CFGBlock
*
continue_dest
=
NULL
,
*
break_dest
=
NULL
;
CFGBlock
*
orig_continue_dest
=
NULL
,
*
orig_break_dest
=
NULL
;
CFGBlock
*
continue_dest
=
NULL
,
*
break_dest
=
NULL
;
CFGBlock
*
orig_continue_dest
=
NULL
,
*
orig_break_dest
=
NULL
;
if
(
loops
.
size
())
{
continue_dest
=
cfg
->
addDeferredBlock
();
continue_dest
->
info
=
"with_continue"
;
...
...
src/core/stats.h
View file @
280b774e
...
...
@@ -68,11 +68,11 @@ struct Stats {
};
struct
StatCounter
{
StatCounter
(
const
char
*
name
)
{}
void
log
(
int
count
=
1
)
{};
void
log
(
int
count
=
1
){};
};
struct
StatPerThreadCounter
{
StatPerThreadCounter
(
const
char
*
name
)
{}
void
log
(
int
count
=
1
)
{};
void
log
(
int
count
=
1
){};
};
#endif
}
...
...
src/core/types.h
View file @
280b774e
...
...
@@ -227,7 +227,7 @@ public:
SourceInfo
*
source
;
FunctionList
versions
;
// any compiled versions along with their type parameters; in order from most preferred to least
versions
;
// any compiled versions along with their type parameters; in order from most preferred to least
std
::
unordered_map
<
const
OSREntryDescriptor
*
,
CompiledFunction
*>
osr_versions
;
// Functions can provide an "internal" version, which will get called instead
...
...
src/runtime/objmodel.cpp
View file @
280b774e
...
...
@@ -2324,7 +2324,7 @@ Box* callFunc(BoxedFunction* func, CallRewriteArgs* rewrite_args, ArgPassSpec ar
}
// The "output" args that we will pass to the called function:
Box
*
oarg1
=
NULL
,
*
oarg2
=
NULL
,
*
oarg3
=
NULL
;
Box
*
oarg1
=
NULL
,
*
oarg2
=
NULL
,
*
oarg3
=
NULL
;
Box
**
oargs
=
NULL
;
if
(
num_output_args
>
3
)
{
...
...
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