An error occurred fetching the project authors.
- 21 Aug, 2014 1 commit
-
-
Travis Hance authored
-
- 15 Aug, 2014 1 commit
-
-
Kevin Modzelewski authored
Need this to track "softspace" correctly...
-
- 06 Aug, 2014 1 commit
-
-
Kevin Modzelewski authored
Previously the gc header had to be set and managed by the user of the GC, which didn't make much sense. Also took this opportunity to clean up a bunch of old cruft. Also got rid of ObjectFlavors and AllocationKinds, in preference for a GCKind which I think makes more sense. Right now there are only three different GCKinds, but I'm not sure if the previous AllocationKinds should each get their own GCKind.
-
- 30 Jul, 2014 1 commit
-
-
Kevin Modzelewski authored
-
- 29 Jul, 2014 1 commit
-
-
Kevin Modzelewski authored
This commit is a straightforward implementation that doesn't include any speculation-like optimizations. For operations that can overflow, just relax the type-return-specification to UNKNOWN, and do the overflow checks in the runtime. This means that we no longer emit fast native integer instructions even if we know operands are ints. Will have to add optimizations: - range analysis so that we can know there won't be overflow - deopt-on-overflow so that we can work with unboxed ints even if there's potential overflow
-
- 26 Jul, 2014 1 commit
-
-
Kevin Modzelewski authored
-
- 24 Jul, 2014 3 commits
-
-
Kevin Modzelewski authored
-
Kevin Modzelewski authored
-
Kevin Modzelewski authored
Ended up not being too bad, except for some more fun around classdefs having different rules, and making sure to generate the correct error type and messages.
-
- 23 Jul, 2014 4 commits
-
-
https://github.com/xiafan68/pystonKevin Modzelewski authored
Merges #101 Conflicts: src/codegen/runtime_hooks.h
-
Kevin Modzelewski authored
-
Kevin Modzelewski authored
Before was throwing AttributeError, since we were just translating it to: import a b = a.b Now there's a special importFrom runtime function that does essentially the same thing, but throws the proper exception.
-
Kevin Modzelewski authored
Previously, a non-satisfied except filter would cause the traceback to be lost, since we were using the one-argument 'raise exc' form.
-
- 22 Jul, 2014 1 commit
-
-
Kevin Modzelewski authored
The python stdlib apparently uses a bunch of old-style ways of doing things. Instead of doing the throwing directly in the generated IR, call a runtime function raise1 which will take care of the semantics of checking the type of the raised object, etc.
-
- 21 Jul, 2014 1 commit
-
-
Travis Hance authored
Fixed a bug causing unit tests to fail in my installation: the declaration of runtimeCall in stdlib.bc had a different name in place of `class.std::vector`, so looking the type up by hard-coding its name results in a type error when the instruction calling `runtimeCall` is constructed.
-
- 20 Jul, 2014 1 commit
-
-
Marius Wachtler authored
kwargs are unsupported for now
-
- 19 Jul, 2014 1 commit
-
-
Marius Wachtler authored
Currently does not support arguments and only a single generator at a time is allowed In addition added 'StopIteration' iteration support
-
- 24 Jun, 2014 1 commit
-
-
Kevin Modzelewski authored
-
- 19 Jun, 2014 1 commit
-
-
Kevin Modzelewski authored
Implementation is pretty straightforward for now: - find all names that get accessed from a nested function - if any, create a closure object at function entry - any time we set a name accessed from a nested function, update its value in the closure - when evaluating a functiondef that needs a closure, attach the created closure to the created function object. Closures are currently passed as an extra argument before any python-level args, which I'm not convinced is the right strategy. It's works out fine but it feels messy to say that functions can have different C-level calling conventions. It felt worse to include the closure as part of the python-level arg passing. Maybe it should be passed after all the other arguments? Closures are currently just simple objects, on which we set and get Python-level attributes. The performance (which I haven't tested) relies on attribute access being made fast through the hidden-class inline caches. There are a number of ways that this could be improved: - be smarter about when we create the closure object, or when we update it. - not create empty pass-through closures - give the closures a pre-defined shape, since we know at irgen-time what names can get set. could probably avoid the inline cache machinery and also have better code.
-
- 11 Jun, 2014 1 commit
-
-
Kevin Modzelewski authored
Once the GRWL is added, will also be for GC safepoints.
-
- 05 Jun, 2014 1 commit
-
-
Kevin Modzelewski authored
Replace a simple "num_args" argument with a packed struct that takes num_args and adds num_keywords, has_varargs, and has_kwargs. Tried to add asserts in all the places that don't allow keywords/varargs/starargs Started refactoring things; got to the point of attempting argument->parameter shuffling, but it's tricky if we allow every compilation to have a different signature (used by builtins). Really they all have the same signatures but different specializations; to get to that point, need to add defaults.
-
- 30 May, 2014 2 commits
-
-
Kevin Modzelewski authored
Python inheritance is remarkably complicated... this commit implements the basics. There are still a fair number of things that are unimplemented, and some things like inheriting from all the basic types haven't been added yet.
-
Kevin Modzelewski authored
-
- 20 May, 2014 2 commits
-
-
Kevin Modzelewski authored
-
xiafan_linux authored
add the python test file for del statement fix the ic enable macro of delitem make the implementation of del statement exception-aware
-
- 17 May, 2014 1 commit
-
-
Kevin Modzelewski authored
-
- 13 May, 2014 1 commit
-
-
Kevin Modzelewski authored
Changed the indentation of pretty much the entire codebase. It did some things that I don't like that seem not configurable, but overall it seems like an improvement, and nice to have a canonical format going forward.
-
- 05 May, 2014 1 commit
-
-
Marius Wachtler authored
-
- 29 Apr, 2014 1 commit
-
-
Kevin Modzelewski authored
-
- 24 Apr, 2014 1 commit
-
-
Kevin Modzelewski authored
Doesn't handle packages or anything other than importing a .py file (ex zip import, .so, .pyc), but has some basic support for sys.path and sys.modules.
-
- 21 Apr, 2014 1 commit
-
-
Kevin Modzelewski authored
-
- 18 Apr, 2014 1 commit
-
-
Kevin Modzelewski authored
-
- 03 Apr, 2014 2 commits
-
-
Kevin Modzelewski authored
-
Kevin Modzelewski authored
-