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
aec54d64
Commit
aec54d64
authored
Apr 21, 2014
by
Kevin Modzelewski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
clean up whitespace
parent
0aef0d2b
Changes
124
Show whitespace changes
Inline
Side-by-side
Showing
124 changed files
with
438 additions
and
366 deletions
+438
-366
include/Python.h
include/Python.h
+14
-0
src/analysis/fpc.h
src/analysis/fpc.h
+3
-3
src/analysis/function_analysis.cpp
src/analysis/function_analysis.cpp
+3
-3
src/analysis/function_analysis.h
src/analysis/function_analysis.h
+3
-3
src/analysis/scoping_analysis.cpp
src/analysis/scoping_analysis.cpp
+3
-3
src/analysis/scoping_analysis.h
src/analysis/scoping_analysis.h
+3
-3
src/analysis/type_analysis.cpp
src/analysis/type_analysis.cpp
+3
-3
src/analysis/type_analysis.h
src/analysis/type_analysis.h
+3
-3
src/asm_writing/assembler.cpp
src/asm_writing/assembler.cpp
+3
-3
src/asm_writing/assembler.h
src/asm_writing/assembler.h
+3
-3
src/asm_writing/icinfo.cpp
src/asm_writing/icinfo.cpp
+3
-3
src/asm_writing/icinfo.h
src/asm_writing/icinfo.h
+3
-3
src/asm_writing/mc_writer.cpp
src/asm_writing/mc_writer.cpp
+3
-3
src/asm_writing/mc_writer.h
src/asm_writing/mc_writer.h
+3
-3
src/asm_writing/rewriter.cpp
src/asm_writing/rewriter.cpp
+3
-3
src/asm_writing/rewriter.h
src/asm_writing/rewriter.h
+3
-3
src/asm_writing/rewriter2.cpp
src/asm_writing/rewriter2.cpp
+3
-3
src/asm_writing/rewriter2.h
src/asm_writing/rewriter2.h
+3
-3
src/asm_writing/types.h
src/asm_writing/types.h
+3
-3
src/codegen/codegen.cpp
src/codegen/codegen.cpp
+3
-3
src/codegen/codegen.h
src/codegen/codegen.h
+3
-3
src/codegen/compvars.cpp
src/codegen/compvars.cpp
+3
-3
src/codegen/compvars.h
src/codegen/compvars.h
+3
-3
src/codegen/dis.cpp
src/codegen/dis.cpp
+3
-3
src/codegen/dis.h
src/codegen/dis.h
+3
-3
src/codegen/entry.cpp
src/codegen/entry.cpp
+3
-3
src/codegen/entry.h
src/codegen/entry.h
+3
-3
src/codegen/gcbuilder.cpp
src/codegen/gcbuilder.cpp
+3
-3
src/codegen/gcbuilder.h
src/codegen/gcbuilder.h
+3
-3
src/codegen/irgen.cpp
src/codegen/irgen.cpp
+3
-3
src/codegen/irgen.h
src/codegen/irgen.h
+3
-3
src/codegen/irgen/hooks.cpp
src/codegen/irgen/hooks.cpp
+3
-3
src/codegen/irgen/hooks.h
src/codegen/irgen/hooks.h
+3
-3
src/codegen/irgen/irgenerator.cpp
src/codegen/irgen/irgenerator.cpp
+3
-3
src/codegen/irgen/irgenerator.h
src/codegen/irgen/irgenerator.h
+3
-3
src/codegen/irgen/util.cpp
src/codegen/irgen/util.cpp
+3
-3
src/codegen/irgen/util.h
src/codegen/irgen/util.h
+3
-3
src/codegen/llvm_interpreter.cpp
src/codegen/llvm_interpreter.cpp
+3
-3
src/codegen/llvm_interpreter.h
src/codegen/llvm_interpreter.h
+3
-3
src/codegen/memmgr.cpp
src/codegen/memmgr.cpp
+3
-3
src/codegen/memmgr.h
src/codegen/memmgr.h
+3
-3
src/codegen/opt/aa.cpp
src/codegen/opt/aa.cpp
+3
-3
src/codegen/opt/const_classes.cpp
src/codegen/opt/const_classes.cpp
+3
-3
src/codegen/opt/dead_allocs.cpp
src/codegen/opt/dead_allocs.cpp
+3
-3
src/codegen/opt/escape_analysis.cpp
src/codegen/opt/escape_analysis.cpp
+3
-3
src/codegen/opt/escape_analysis.h
src/codegen/opt/escape_analysis.h
+3
-3
src/codegen/opt/inliner.cpp
src/codegen/opt/inliner.cpp
+3
-3
src/codegen/opt/inliner.h
src/codegen/opt/inliner.h
+3
-3
src/codegen/opt/mallocs_nonnull.cpp
src/codegen/opt/mallocs_nonnull.cpp
+3
-3
src/codegen/opt/passes.h
src/codegen/opt/passes.h
+3
-3
src/codegen/opt/util.cpp
src/codegen/opt/util.cpp
+3
-3
src/codegen/opt/util.h
src/codegen/opt/util.h
+3
-3
src/codegen/osrentry.h
src/codegen/osrentry.h
+3
-3
src/codegen/parser.cpp
src/codegen/parser.cpp
+3
-3
src/codegen/parser.h
src/codegen/parser.h
+3
-3
src/codegen/patchpoints.cpp
src/codegen/patchpoints.cpp
+3
-3
src/codegen/patchpoints.h
src/codegen/patchpoints.h
+3
-3
src/codegen/profiling/dumprof.cpp
src/codegen/profiling/dumprof.cpp
+3
-3
src/codegen/profiling/oprofile.cpp
src/codegen/profiling/oprofile.cpp
+3
-3
src/codegen/profiling/pprof.cpp
src/codegen/profiling/pprof.cpp
+3
-3
src/codegen/profiling/profiling.cpp
src/codegen/profiling/profiling.cpp
+3
-3
src/codegen/profiling/profiling.h
src/codegen/profiling/profiling.h
+3
-3
src/codegen/runtime_hooks.cpp
src/codegen/runtime_hooks.cpp
+3
-3
src/codegen/runtime_hooks.h
src/codegen/runtime_hooks.h
+3
-3
src/codegen/stackmaps.cpp
src/codegen/stackmaps.cpp
+3
-3
src/codegen/stackmaps.h
src/codegen/stackmaps.h
+3
-3
src/codegen/type_recording.cpp
src/codegen/type_recording.cpp
+3
-3
src/codegen/type_recording.h
src/codegen/type_recording.h
+3
-3
src/codegen/unwinding.cpp
src/codegen/unwinding.cpp
+3
-3
src/core/ast.cpp
src/core/ast.cpp
+3
-3
src/core/ast.h
src/core/ast.h
+3
-3
src/core/cfg.cpp
src/core/cfg.cpp
+3
-3
src/core/cfg.h
src/core/cfg.h
+3
-3
src/core/common.h
src/core/common.h
+3
-3
src/core/options.cpp
src/core/options.cpp
+3
-3
src/core/options.h
src/core/options.h
+3
-3
src/core/stats.cpp
src/core/stats.cpp
+3
-3
src/core/stats.h
src/core/stats.h
+3
-3
src/core/types.h
src/core/types.h
+3
-3
src/core/util.cpp
src/core/util.cpp
+3
-3
src/core/util.h
src/core/util.h
+3
-3
src/gc/collector.cpp
src/gc/collector.cpp
+3
-3
src/gc/collector.h
src/gc/collector.h
+3
-3
src/gc/gc_alloc.h
src/gc/gc_alloc.h
+3
-3
src/gc/heap.cpp
src/gc/heap.cpp
+3
-3
src/gc/heap.h
src/gc/heap.h
+3
-3
src/gc/root_finder.cpp
src/gc/root_finder.cpp
+3
-3
src/gc/root_finder.h
src/gc/root_finder.h
+3
-3
src/jit.cpp
src/jit.cpp
+3
-3
src/runtime/bool.cpp
src/runtime/bool.cpp
+3
-3
src/runtime/builtin_modules/builtins.cpp
src/runtime/builtin_modules/builtins.cpp
+3
-3
src/runtime/builtin_modules/math.cpp
src/runtime/builtin_modules/math.cpp
+3
-3
src/runtime/builtin_modules/time.cpp
src/runtime/builtin_modules/time.cpp
+3
-3
src/runtime/dict.cpp
src/runtime/dict.cpp
+3
-3
src/runtime/file.cpp
src/runtime/file.cpp
+3
-3
src/runtime/float.cpp
src/runtime/float.cpp
+3
-3
src/runtime/float.h
src/runtime/float.h
+3
-3
src/runtime/gc_runtime.h
src/runtime/gc_runtime.h
+3
-3
src/runtime/importing.cpp
src/runtime/importing.cpp
+3
-3
src/runtime/importing.h
src/runtime/importing.h
+3
-3
src/runtime/inline/boxing.cpp
src/runtime/inline/boxing.cpp
+3
-3
src/runtime/inline/boxing.h
src/runtime/inline/boxing.h
+3
-3
src/runtime/inline/gc_runtime.cpp
src/runtime/inline/gc_runtime.cpp
+3
-3
src/runtime/inline/link_forcer.cpp
src/runtime/inline/link_forcer.cpp
+3
-3
src/runtime/inline/list.cpp
src/runtime/inline/list.cpp
+3
-3
src/runtime/inline/xrange.cpp
src/runtime/inline/xrange.cpp
+3
-3
src/runtime/inline/xrange.h
src/runtime/inline/xrange.h
+3
-3
src/runtime/int.cpp
src/runtime/int.cpp
+3
-3
src/runtime/int.h
src/runtime/int.h
+3
-3
src/runtime/list.cpp
src/runtime/list.cpp
+3
-3
src/runtime/list.h
src/runtime/list.h
+3
-3
src/runtime/objmodel.cpp
src/runtime/objmodel.cpp
+3
-3
src/runtime/objmodel.h
src/runtime/objmodel.h
+3
-3
src/runtime/stacktrace.cpp
src/runtime/stacktrace.cpp
+3
-3
src/runtime/str.cpp
src/runtime/str.cpp
+3
-3
src/runtime/tuple.cpp
src/runtime/tuple.cpp
+3
-3
src/runtime/types.cpp
src/runtime/types.cpp
+3
-3
src/runtime/types.h
src/runtime/types.h
+3
-3
src/runtime/util.cpp
src/runtime/util.cpp
+3
-3
src/runtime/util.h
src/runtime/util.h
+3
-3
tools/demangle.cpp
tools/demangle.cpp
+14
-0
tools/mcjitcache.cpp
tools/mcjitcache.cpp
+14
-0
tools/publicize.cpp
tools/publicize.cpp
+14
-0
tools/tester.py
tools/tester.py
+25
-9
No files found.
include/Python.h
View file @
aec54d64
// Copyright (c) 2014 Dropbox, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
#ifndef PYSTON_EXTINCLUDE_PYTHON_H
#define PYSTON_EXTINCLUDE_PYTHON_H
...
...
src/analysis/fpc.h
View file @
aec54d64
src/analysis/function_analysis.cpp
View file @
aec54d64
src/analysis/function_analysis.h
View file @
aec54d64
src/analysis/scoping_analysis.cpp
View file @
aec54d64
src/analysis/scoping_analysis.h
View file @
aec54d64
src/analysis/type_analysis.cpp
View file @
aec54d64
src/analysis/type_analysis.h
View file @
aec54d64
src/asm_writing/assembler.cpp
View file @
aec54d64
src/asm_writing/assembler.h
View file @
aec54d64
src/asm_writing/icinfo.cpp
View file @
aec54d64
src/asm_writing/icinfo.h
View file @
aec54d64
src/asm_writing/mc_writer.cpp
View file @
aec54d64
src/asm_writing/mc_writer.h
View file @
aec54d64
src/asm_writing/rewriter.cpp
View file @
aec54d64
src/asm_writing/rewriter.h
View file @
aec54d64
src/asm_writing/rewriter2.cpp
View file @
aec54d64
src/asm_writing/rewriter2.h
View file @
aec54d64
src/asm_writing/types.h
View file @
aec54d64
src/codegen/codegen.cpp
View file @
aec54d64
src/codegen/codegen.h
View file @
aec54d64
src/codegen/compvars.cpp
View file @
aec54d64
src/codegen/compvars.h
View file @
aec54d64
src/codegen/dis.cpp
View file @
aec54d64
src/codegen/dis.h
View file @
aec54d64
src/codegen/entry.cpp
View file @
aec54d64
src/codegen/entry.h
View file @
aec54d64
src/codegen/gcbuilder.cpp
View file @
aec54d64
src/codegen/gcbuilder.h
View file @
aec54d64
src/codegen/irgen.cpp
View file @
aec54d64
src/codegen/irgen.h
View file @
aec54d64
src/codegen/irgen/hooks.cpp
View file @
aec54d64
src/codegen/irgen/hooks.h
View file @
aec54d64
src/codegen/irgen/irgenerator.cpp
View file @
aec54d64
src/codegen/irgen/irgenerator.h
View file @
aec54d64
src/codegen/irgen/util.cpp
View file @
aec54d64
src/codegen/irgen/util.h
View file @
aec54d64
src/codegen/llvm_interpreter.cpp
View file @
aec54d64
src/codegen/llvm_interpreter.h
View file @
aec54d64
src/codegen/memmgr.cpp
View file @
aec54d64
src/codegen/memmgr.h
View file @
aec54d64
src/codegen/opt/aa.cpp
View file @
aec54d64
src/codegen/opt/const_classes.cpp
View file @
aec54d64
src/codegen/opt/dead_allocs.cpp
View file @
aec54d64
src/codegen/opt/escape_analysis.cpp
View file @
aec54d64
src/codegen/opt/escape_analysis.h
View file @
aec54d64
src/codegen/opt/inliner.cpp
View file @
aec54d64
src/codegen/opt/inliner.h
View file @
aec54d64
src/codegen/opt/mallocs_nonnull.cpp
View file @
aec54d64
src/codegen/opt/passes.h
View file @
aec54d64
src/codegen/opt/util.cpp
View file @
aec54d64
src/codegen/opt/util.h
View file @
aec54d64
src/codegen/osrentry.h
View file @
aec54d64
src/codegen/parser.cpp
View file @
aec54d64
src/codegen/parser.h
View file @
aec54d64
src/codegen/patchpoints.cpp
View file @
aec54d64
src/codegen/patchpoints.h
View file @
aec54d64
src/codegen/profiling/dumprof.cpp
View file @
aec54d64
src/codegen/profiling/oprofile.cpp
View file @
aec54d64
src/codegen/profiling/pprof.cpp
View file @
aec54d64
src/codegen/profiling/profiling.cpp
View file @
aec54d64
src/codegen/profiling/profiling.h
View file @
aec54d64
src/codegen/runtime_hooks.cpp
View file @
aec54d64
src/codegen/runtime_hooks.h
View file @
aec54d64
src/codegen/stackmaps.cpp
View file @
aec54d64
src/codegen/stackmaps.h
View file @
aec54d64
src/codegen/type_recording.cpp
View file @
aec54d64
src/codegen/type_recording.h
View file @
aec54d64
src/codegen/unwinding.cpp
View file @
aec54d64
src/core/ast.cpp
View file @
aec54d64
src/core/ast.h
View file @
aec54d64
src/core/cfg.cpp
View file @
aec54d64
src/core/cfg.h
View file @
aec54d64
src/core/common.h
View file @
aec54d64
src/core/options.cpp
View file @
aec54d64
src/core/options.h
View file @
aec54d64
src/core/stats.cpp
View file @
aec54d64
src/core/stats.h
View file @
aec54d64
src/core/types.h
View file @
aec54d64
src/core/util.cpp
View file @
aec54d64
src/core/util.h
View file @
aec54d64
src/gc/collector.cpp
View file @
aec54d64
src/gc/collector.h
View file @
aec54d64
src/gc/gc_alloc.h
View file @
aec54d64
src/gc/heap.cpp
View file @
aec54d64
src/gc/heap.h
View file @
aec54d64
src/gc/root_finder.cpp
View file @
aec54d64
src/gc/root_finder.h
View file @
aec54d64
src/jit.cpp
View file @
aec54d64
src/runtime/bool.cpp
View file @
aec54d64
src/runtime/builtin_modules/builtins.cpp
View file @
aec54d64
src/runtime/builtin_modules/math.cpp
View file @
aec54d64
src/runtime/builtin_modules/time.cpp
View file @
aec54d64
src/runtime/dict.cpp
View file @
aec54d64
src/runtime/file.cpp
View file @
aec54d64
src/runtime/float.cpp
View file @
aec54d64
src/runtime/float.h
View file @
aec54d64
src/runtime/gc_runtime.h
View file @
aec54d64
src/runtime/importing.cpp
View file @
aec54d64
src/runtime/importing.h
View file @
aec54d64
src/runtime/inline/boxing.cpp
View file @
aec54d64
src/runtime/inline/boxing.h
View file @
aec54d64
src/runtime/inline/gc_runtime.cpp
View file @
aec54d64
src/runtime/inline/link_forcer.cpp
View file @
aec54d64
src/runtime/inline/list.cpp
View file @
aec54d64
src/runtime/inline/xrange.cpp
View file @
aec54d64
src/runtime/inline/xrange.h
View file @
aec54d64
src/runtime/int.cpp
View file @
aec54d64
src/runtime/int.h
View file @
aec54d64
src/runtime/list.cpp
View file @
aec54d64
src/runtime/list.h
View file @
aec54d64
src/runtime/objmodel.cpp
View file @
aec54d64
src/runtime/objmodel.h
View file @
aec54d64
src/runtime/stacktrace.cpp
View file @
aec54d64
src/runtime/str.cpp
View file @
aec54d64
src/runtime/tuple.cpp
View file @
aec54d64
src/runtime/types.cpp
View file @
aec54d64
src/runtime/types.h
View file @
aec54d64
src/runtime/util.cpp
View file @
aec54d64
src/runtime/util.h
View file @
aec54d64
tools/demangle.cpp
View file @
aec54d64
// Copyright (c) 2014 Dropbox, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
#include <cstdio>
#include <cstdlib>
#include <cxxabi.h>
...
...
tools/mcjitcache.cpp
View file @
aec54d64
// Copyright (c) 2014 Dropbox, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
#include <cstdio>
#include <iostream>
#include <unordered_map>
...
...
tools/publicize.cpp
View file @
aec54d64
// Copyright (c) 2014 Dropbox, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
#include <cstdio>
#include <iostream>
#include <unordered_map>
...
...
tools/tester.py
View file @
aec54d64
#!/usr/bin/env python
# Copyright (c) 2014 Dropbox, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#
This file is distributed under the MIT License; see LICENSE for details.
#
http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#!/usr/bin/env python
import
cPickle
import
datetime
...
...
@@ -224,11 +234,6 @@ def verify_include(_, dir, files):
for
bn
in
files
:
fn
=
os
.
path
.
join
(
dir
,
bn
)
if
bn
.
endswith
(
".h"
)
or
bn
.
endswith
(
".cpp"
):
s
=
open
(
fn
).
read
(
1024
)
assert
"Copyright (c) 2014 Dropbox, Inc."
in
s
,
fn
assert
"Apache License, Version 2.0"
in
s
,
fn
if
not
bn
.
endswith
(
".h"
):
continue
...
...
@@ -242,12 +247,23 @@ def verify_include(_, dir, files):
gotten_guard
=
l
.
split
()[
1
]
assert
gotten_guard
==
expected_guard
,
(
fn
,
gotten_guard
,
expected_guard
)
def
verify_license
(
_
,
dir
,
files
):
for
bn
in
files
:
fn
=
os
.
path
.
join
(
dir
,
bn
)
if
bn
.
endswith
(
".h"
)
or
bn
.
endswith
(
".cpp"
):
s
=
open
(
fn
).
read
(
1024
)
assert
"Copyright (c) 2014 Dropbox, Inc."
in
s
,
fn
assert
"Apache License, Version 2.0"
in
s
,
fn
def
fileSize
(
fn
):
return
os
.
stat
(
fn
).
st_size
# return len(list(open(fn)))
if
__name__
==
"__main__"
:
os
.
path
.
walk
(
'.'
,
verify_include
,
None
)
os
.
path
.
walk
(
'.'
,
verify_license
,
None
)
os
.
path
.
walk
(
'../tools'
,
verify_license
,
None
)
run_memcheck
=
False
start
=
1
...
...
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